/* The four legal pages (ticket 112): /privacy, /terms, /how-whittle-picks, /delete-account.
   Tokens: prototypes/visual-identity/tokens.json (#43), the same values as index.html. Light or dark
   follows the visitor's own setting. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(/fonts/inter-800.woff2) format("woff2"); }

:root {
  --ink: #182236; --muted: #59667c; --base: #e9f1fc; --surface: #ffffff; --surface-soft: #f2f6fc;
  --outline: #d9e2ef; --accent: #155cec; --selected: #eaf2ff;
  --page: linear-gradient(165deg, var(--surface) 8%, var(--base) 62%);
  --gutter: max(16px, env(safe-area-inset-left));
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f5f7; --muted: #a8adb8; --base: #050506; --surface: #16181d; --surface-soft: #20232b;
    --outline: #353a44; --accent: #6da7ec; --selected: #112448;
    --page: radial-gradient(ellipse 70% 40% at 50% 0%, #1a2536 0%, transparent 70%), #050506;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; color: var(--ink); background: var(--base); background-image: var(--page);
  background-attachment: fixed; font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }

header { padding: 28px 0 8px; }
header a { display: inline-block; }
header .lockup { height: 30px; width: auto; display: block; }

main { padding: 32px 0 56px; }
h1 { font-size: clamp(32px, 6vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 10px; }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin: 40px 0 10px; }
h3 { font-size: 17px; font-weight: 600; margin: 24px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
li::marker { color: var(--muted); }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 600; }

/* The short version at the top of a page. */
.summary { background: var(--surface); border: 1px solid var(--outline); border-radius: 16px; padding: 18px 20px 6px; margin: 0 0 8px; }
.summary h2 { margin-top: 0; font-size: 17px; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; margin-bottom: 12px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px; font-weight: 600; color: #fff; background: var(--accent);
}
@media (prefers-color-scheme: dark) { .steps li::before { color: #050506; } }

footer { border-top: 1px solid var(--outline); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }
footer a { color: inherit; text-decoration: none; }
footer a:hover, footer a[aria-current] { color: var(--ink); text-decoration: underline; }
