/* Shared styles for the Terms and Privacy pages. Tokens match index.html. */
:root {
  --paper: #F1F4F7; --surface: #FFFFFF; --ink: #182B49; --ink-soft: #596579;
  --primary: #182B49; --hero-end: #24416A; --accent: #C18A3A; --accent-light: #E2BE85;
  --secondary-text: #3C6E9E; --line: #DDE3EA;
  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Karla", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0C1524; --surface: #132036; --ink: #E8EEF5; --ink-soft: #A9B4C4;
    --secondary-text: #8FB4DA; --line: #22324A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0C1524; --surface: #132036; --ink: #E8EEF5; --ink-soft: #A9B4C4;
  --secondary-text: #8FB4DA; --line: #22324A; color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.7; }
a { color: var(--secondary-text); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 820px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

header { background: linear-gradient(160deg, var(--primary) 0%, var(--primary) 35%, var(--hero-end) 100%); color: #FFFFFF; }
header nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
header .mark { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: #FFFFFF; text-decoration: none; }
header .back { color: #FFFFFF; text-decoration: none; font-weight: 700; opacity: .9; white-space: nowrap; }
header .back:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
header .title { padding-block: 40px 56px; }
header .kicker { font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-light); }
header h1 { font-family: var(--display); font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; line-height: 1.08; margin: 12px 0 0; }
header .updated { margin: 14px 0 0; opacity: .8; font-size: .95rem; }

main .doc { background: var(--surface); border-radius: 24px; padding: clamp(24px, 5vw, 48px); margin-block: -28px 64px; position: relative; }
main h2 { font-family: var(--display); font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin: 32px 0 8px; }
main h2:first-child { margin-top: 0; }
main p, main li { color: var(--ink-soft); }
main p { margin: 0 0 12px; }
main ul { margin: 0 0 12px; padding-left: 1.2em; }
main li { margin-bottom: 6px; }
main strong { color: var(--ink); }

footer .wrap { padding-block: 0 48px; color: var(--ink-soft); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { color: var(--ink-soft); }
