/* Astral Edge Studios — shared design for app policy pages.
   The page content is the original markup; these rules style it generically. */
:root {
  --night: #0A0F2C;
  --ink: #10163A;
  --text: #2B3256;
  --muted: #5F6788;
  --paper: #F4F6FC;
  --white: #FFFFFF;
  --line: #DCE1EF;
  --indigo: #3F5EF0;
  --indigo-dark: #2E49D6;
  --indigo-soft: #EEF1FF;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --body: "Manrope", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.lg { margin: 0; background: var(--paper); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.lg-skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; color: var(--ink); }
.lg-skip:focus { left: 16px; }

/* Top bar */
.lg-top { background: var(--night); color: var(--white); position: sticky; top: 0; z-index: 50; }
.lg-top-in { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); height: 68px; display: flex; align-items: center; gap: 16px; }
.lg-brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 17px; white-space: nowrap; }
.lg-brand img { width: 30px; height: 30px; }
.lg-sep { width: 1px; height: 26px; background: rgba(255,255,255,.18); flex: none; }
.lg-app { display: flex; align-items: center; gap: 10px; min-width: 0; color: rgba(255,255,255,.85); font-weight: 700; font-size: 15px; }
.lg-app img { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.lg-app span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-links { margin-left: auto; display: flex; gap: 4px; }
.lg-links a { color: rgba(255,255,255,.78); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; transition: background .2s, color .2s; }
.lg-links a:hover { color: var(--white); background: rgba(255,255,255,.08); }

/* Page band + document card */
.lg-band { background: radial-gradient(700px 300px at 85% 0%, rgba(63,94,240,.35), transparent 60%), var(--night); height: 120px; }
.lg-page { max-width: 920px; margin: -88px auto 0; padding: 0 var(--gutter) clamp(56px, 8vw, 96px); position: relative; }
.lg-doc { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 5vw, 56px); box-shadow: 0 30px 60px -40px rgba(16,22,58,.35); overflow-wrap: anywhere; }

/* Neutralise the old layout wrappers */
.lg-doc .wrap, .lg-doc .container, .lg-doc .page-shell, .lg-doc .hero-inner, .lg-doc .app-heading, .lg-doc main { max-width: none; width: auto; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.lg-doc main { display: block; }
.lg-doc .card:not(.summary) { background: none; border: 0; box-shadow: none; padding: 0; }
.lg-doc .wrap.card { padding: 0; }

/* Original headers / hero blocks */
.lg-doc header, .lg-doc .hero, .lg-doc .app-banner, .lg-doc .site-header { background: none; color: inherit; padding: 0; margin: 0 0 8px; border: 0; position: static; box-shadow: none; }
.lg-doc header > *:not(nav):not(h1):not(.meta):not(.muted) { font-size: 14px; }
.lg-doc .brand, .lg-doc .eyebrow { color: var(--indigo); font-weight: 700; font-size: 14px; letter-spacing: 0; text-transform: none; margin: 0 0 6px; }
.lg-doc .hero-mark { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--indigo-soft); color: var(--indigo); font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.lg-doc img { max-width: 56px; height: auto; border-radius: 14px; display: inline-block; vertical-align: middle; margin: 0 10px 10px 0; }

/* Navigation rows inside the content become pill links */
.lg-doc nav, .lg-doc p.nav, .lg-doc .section-nav, .lg-doc .summary-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 24px; padding: 0; background: none; border: 0; font-size: 0; }
.lg-doc nav ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.lg-doc nav li { margin: 0; padding: 0; }
.lg-doc nav li::marker { content: none; }
.lg-doc nav a, .lg-doc p.nav a, .lg-doc .section-nav a { display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; background: var(--paper); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; line-height: 1.2; transition: border-color .2s, background .2s; }
.lg-doc nav a:hover, .lg-doc p.nav a:hover, .lg-doc .section-nav a:hover { border-color: var(--indigo); background: var(--indigo-soft); }
.lg-doc nav a[aria-current="page"], .lg-doc .section-nav a[aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.lg-doc nav > :not(a):not(ul) { font-size: 14px; }

/* Typography */
.lg-doc h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); margin: 4px 0 14px; }
.lg-doc h2 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); margin: 44px 0 12px; scroll-margin-top: 90px; }
.lg-doc h3 { font-family: var(--body); font-weight: 800; font-size: 18px; color: var(--ink); margin: 28px 0 8px; }
.lg-doc h4 { font-weight: 800; font-size: 16px; color: var(--ink); margin: 20px 0 6px; }
.lg-doc p { margin: 0 0 14px; }
.lg-doc ul, .lg-doc ol { margin: 0 0 16px; padding-left: 22px; }
.lg-doc li { margin: 6px 0; padding-left: 2px; }
.lg-doc li::marker { color: var(--indigo); font-weight: 700; }
.lg-doc a { color: var(--indigo); font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lg-doc a:hover { color: var(--indigo-dark); text-decoration-thickness: 2px; }
.lg-doc strong, .lg-doc b { color: var(--ink); }
.lg-doc code { font-size: .88em; background: var(--indigo-soft); color: var(--indigo-dark); padding: 2px 6px; border-radius: 6px; }
.lg-doc hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.lg-doc .meta, .lg-doc .muted, .lg-doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 20px; }

/* Callouts */
.lg-doc .summary, .lg-doc .note, .lg-doc .notice, .lg-doc .callout, .lg-doc .highlight, .lg-doc .card.summary, .lg-doc .box {
  background: var(--indigo-soft); border: 0; border-left: 4px solid var(--indigo); border-radius: 0 16px 16px 0; padding: 18px 22px; margin: 8px 0 24px; color: var(--ink);
}
.lg-doc .summary h2, .lg-doc .note h2 { margin-top: 0; font-size: 20px; }
.lg-doc .summary ul:last-child, .lg-doc .summary p:last-child, .lg-doc .note p:last-child { margin-bottom: 0; }
.lg-doc section.card { border-top: 1px solid var(--line); padding-top: 8px; }
.lg-doc section.card.summary { border-top: 0; }
.lg-doc .contact-block, .lg-doc .contact { background: var(--night); color: rgba(255,255,255,.82); border-radius: 20px; padding: 24px 28px; margin-top: 40px; }
.lg-doc .contact-block h2, .lg-doc .contact h2 { color: var(--white); margin-top: 0; }
.lg-doc .contact-block a, .lg-doc .contact a { color: #AFC0FF; }

/* Tables */
.lg-doc table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; display: block; overflow-x: auto; }
.lg-doc thead, .lg-doc tbody, .lg-doc tr { width: 100%; }
.lg-doc th, .lg-doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); min-width: 120px; }
.lg-doc th { background: var(--paper); color: var(--ink); font-weight: 800; }
.lg-doc tr:first-child { display: table-row; }

/* Original footers inside the content */
.lg-doc footer, .lg-doc .site-footer { margin-top: 44px; padding: 20px 0 0; border-top: 1px solid var(--line); background: none; color: var(--muted); font-size: 14px; }
.lg-doc footer * { color: inherit; }
.lg-doc footer a { color: var(--indigo); }
.lg-doc footer .container, .lg-doc footer .footer-grid { display: block; }
.lg-doc footer h2, .lg-doc footer h3, .lg-doc footer h4 { font-size: 14px; margin: 12px 0 4px; }
.lg-doc footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* Multilingual sections keep their language font */
.lg-doc [lang="mr"], .lg-doc [lang="hi"] { font-family: "Noto Sans Devanagari", var(--body); }
.lg-doc section[id][lang] + section[id][lang] { margin-top: 48px; padding-top: 32px; border-top: 2px solid var(--line); }

/* Bottom footer */
.lg-foot { background: var(--night); color: rgba(255,255,255,.6); font-size: 14px; }
.lg-foot-in { max-width: 1180px; margin: 0 auto; padding: 28px var(--gutter); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.lg-foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.lg-foot a { color: rgba(255,255,255,.75); text-decoration: none; padding: 6px 0; display: inline-block; }
.lg-foot a:hover { color: var(--white); }

@media (max-width: 720px) {
  .lg-links { display: none; }
  .lg-brand span { display: none; }
  .lg-top-in { height: 60px; gap: 12px; }
  .lg-band { height: 96px; }
  .lg-page { margin-top: -72px; }
  .lg-doc { border-radius: 22px; }
  body.lg { font-size: 16px; }
}
@media print {
  .lg-top, .lg-band, .lg-foot { display: none; }
  .lg-page { margin: 0; padding: 0; max-width: none; }
  .lg-doc { border: 0; box-shadow: none; padding: 0; }
}

/* Old page chrome that the shared layout replaces (kept in the DOM, hidden visually) */
.lg-doc .skip-link, .lg-doc a.skip { position: absolute; left: -9999px; }
.lg-doc .skip-link:focus, .lg-doc a.skip:focus { left: 16px; top: 80px; z-index: 60; background: #fff; padding: 8px 14px; border-radius: 8px; }
.lg-doc > header.site-header { display: none; }
.lg-doc .hero-mark { display: none; }

/* Tables: scroll sideways on small screens instead of breaking words */
.lg-doc table, .lg-doc th, .lg-doc td { overflow-wrap: normal; word-break: normal; }
@media (max-width: 720px) {
  .lg-doc table { margin-left: -4px; margin-right: -4px; width: calc(100% + 8px); font-size: 14px; border: 1px solid var(--line); border-radius: 12px; }
  .lg-doc th, .lg-doc td { min-width: 170px; padding: 10px 12px; }
  .lg-doc th:first-child, .lg-doc td:first-child { min-width: 130px; position: sticky; left: 0; background: var(--white); box-shadow: 1px 0 0 var(--line); }
  .lg-doc th:first-child { background: var(--paper); }
}
