/* Layout concept: a highway roadmap — navy road bands, Indian milestone stones mark each step, yellow signage for every action. */
:root {
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --ink: #0E1A33;
  --muted: #56617B;
  --line: #DCE2EE;
  --road: #13254B;
  --road-ink: #F3F6FC;
  --road-muted: #AEB9D3;
  --sign: #F5C400;
  --sign-ink: #1B1500;
  --go: #17834D;
  --go-soft: #E3F4EA;
  --focus: #2A63E8;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --body: "Hind", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09112A; --surface: #101B38; --ink: #EDF1FA; --muted: #A0ABC4; --line: #233257;
    --road: #14244D; --road-ink: #F3F6FC; --road-muted: #A6B2CD;
    --sign: #FFD23F; --sign-ink: #1B1500; --go: #44C985; --go-soft: #12332A; --focus: #7FA5FF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09112A; --surface: #101B38; --ink: #EDF1FA; --muted: #A0ABC4; --line: #233257;
  --road: #14244D; --road-ink: #F3F6FC; --road-muted: #A6B2CD;
  --sign: #FFD23F; --sign-ink: #1B1500; --go: #44C985; --go-soft: #12332A; --focus: #7FA5FF;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--road); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--mono); }
.label { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--road); color: var(--road-ink); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-mark { flex: none; width: 34px; height: 40px; border-radius: 17px 17px 4px 4px; background: linear-gradient(var(--sign) 0 46%, #fff 46% 100%); display: grid; place-items: end center; padding-bottom: 3px; font: 700 10px/1 var(--mono); color: #13254B; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text b { font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: .04em; }
.brand-text span { font-size: 12px; color: var(--road-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--road-muted); }
.nav a:hover { color: var(--road-ink); }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-weight: 700; border-radius: 10px; padding: 12px 20px; border: 0; cursor: pointer; font-family: var(--body); font-size: 16px; line-height: 1.2; transition: transform .15s ease, box-shadow .15s ease; }
.btn-sign { background: var(--sign); color: var(--sign-ink); box-shadow: 0 3px 0 #B38F00; }
.btn-sign:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #B38F00; }
.btn-sign:active { transform: translateY(1px); box-shadow: 0 1px 0 #B38F00; }
.btn-big { font-size: 19px; padding: 17px 28px; border-radius: 12px; }
.btn-ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; opacity: .9; }
.nav .btn { color: var(--sign-ink); padding: 9px 16px; font-size: 15px; }

/* ---------- footer ---------- */
.footer { background: var(--road); color: var(--road-muted); font-size: 15px; }
.footer .wrap { padding-block: 44px 28px; display: grid; gap: 28px; grid-template-columns: 1.4fr 1fr 1fr; }
.footer h4 { margin: 0 0 10px; color: var(--road-ink); font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--road-ink); text-decoration: underline; }
.footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.footer .biz { display: grid; gap: 4px; }
.footer .biz b { color: var(--road-ink); }
@media (max-width: 760px) { .footer .wrap { grid-template-columns: 1fr; } }

/* ---------- policy pages ---------- */
.doc-head { background: var(--road); color: var(--road-ink); }
.doc-head .wrap { padding-block: 44px 40px; display: grid; gap: 12px; }
.doc-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: .01em; }
.doc-head p { color: var(--road-muted); max-width: 60ch; }
.doc-head .label { color: var(--sign); }
.doc { padding-block: 40px 64px; }
.doc .grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.doc aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); display: grid; gap: 4px; font-size: 15px; }
.doc aside a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.doc aside a:hover { background: var(--surface); color: var(--ink); }
.doc aside a[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: inset 3px 0 0 var(--sign); }
.doc article { max-width: 70ch; display: grid; gap: 30px; min-width: 0; }
.doc article section { display: grid; gap: 10px; }
.doc article h2 { font-size: 22px; line-height: 1.3; }
.doc article ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.doc article p, .doc article li { color: var(--ink); }
.doc .summary { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; display: grid; gap: 8px; }
.doc .summary .label { color: var(--muted); }
.doc .meta { color: var(--muted); font-size: 14px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.kv dt { color: var(--muted); font-size: 14px; padding-top: 2px; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 820px) { .doc .grid { grid-template-columns: 1fr; gap: 24px; } .doc aside { position: static; display: flex; flex-wrap: wrap; gap: 6px; } .doc aside a { background: var(--surface); border: 1px solid var(--line); } }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }
