/* Shared styles for the legal pages (/privacy, /terms, /consumer-health-data,
   /delete-account). Design tokens are copied from index.html so these pages
   match the marketing site, including its dark mode. No JS needed. */

:root {
  --bg: #ffffff;
  --surface: #F4F7FB;
  --soft: #FAFCFE;
  --ink: #0A1628;
  --sub: rgba(10,22,40,.72);
  --muted: rgba(10,22,40,.5);
  --line: rgba(10,22,40,.12);
  --accent: #0A1F6E;
  --accent-2: #4F5BFF;
  --green: #1D9A57;
  --danger: #B3261E;
  --warn-bg: #FFF7E0;
  --warn-line: #E8C25A;
  --warn-ink: #5C4300;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06101F; --surface: #0E1A2E; --soft: #0A1426;
    --ink: #EAF2FF; --sub: rgba(234,242,255,.72); --muted: rgba(234,242,255,.5);
    --line: rgba(234,242,255,.14); --green: #3DD68C; --accent: #9DB1FF;
    --warn-bg: #2A2208; --warn-line: #7A6420; --warn-ink: #F3DC93;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  letter-spacing: -.005em; line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); }
@media (prefers-color-scheme: dark) { a { color: #9DB1FF; } }
a:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* draft banner: remove from each page before publishing */
.draft-banner {
  background: var(--warn-bg); color: var(--warn-ink); border-bottom: 1px solid var(--warn-line);
  padding: 10px clamp(20px, 5vw, 80px); font-size: 14px; text-align: center;
}
/* placeholders Brian must fill in */
mark.todo {
  background: var(--warn-bg); color: var(--warn-ink); border: 1px dashed var(--warn-line);
  border-radius: 4px; padding: 0 4px;
}

/* nav */
.site-nav {
  max-width: 1440px; margin-inline: auto;
  padding: 24px clamp(20px, 5vw, 80px); display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img {
  width: 28px; height: 28px; border-radius: 7px; background: #fff;
  box-shadow: 0 2px 10px rgba(31,111,255,.22);
}
.brand span { font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.nav-links { display: flex; gap: 28px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--sub); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* document */
.doc {
  max-width: 780px; margin-inline: auto;
  padding: clamp(8px, 3vw, 32px) clamp(20px, 5vw, 40px) clamp(48px, 8vw, 96px);
}
.eyebrow {
  font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 14px;
}
.doc h1 {
  font-size: clamp(34px, 5vw, 52px); font-weight: 600; letter-spacing: -.035em;
  line-height: 1.05; margin: 0; text-wrap: balance;
}
.doc-meta { font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.lede { font-size: clamp(17px, 2vw, 19px); color: var(--sub); margin: 24px 0 0; line-height: 1.5; }

.doc h2 {
  font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; letter-spacing: -.025em;
  line-height: 1.2; margin: 56px 0 0; padding-top: 24px; border-top: .5px solid var(--line);
  scroll-margin-top: 16px;
}
.doc h3 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; margin: 32px 0 0; scroll-margin-top: 16px; }
.doc p, .doc li { font-size: 16.5px; color: var(--sub); }
.doc p { margin: 14px 0 0; }
.doc ul, .doc ol { margin: 14px 0 0; padding-left: 22px; }
.doc li { margin-top: 8px; }
.doc li > ul { margin-top: 4px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .caps { text-transform: none; font-size: 15px; letter-spacing: 0; }

/* summary card and callouts */
.card {
  margin-top: 32px; padding: clamp(20px, 3vw, 28px); border-radius: 20px;
  background: var(--surface); border: .5px solid var(--line);
}
.card h2 { margin: 0; padding: 0; border: 0; font-size: 20px; }
.card ul { margin-top: 12px; }
.callout {
  margin-top: 20px; padding: 16px 20px; border-radius: 14px;
  background: var(--soft); border: .5px solid var(--line); border-left: 3px solid var(--accent-2);
}
.callout p:first-child { margin-top: 0; }

/* table of contents */
.toc { margin-top: 32px; padding: 20px 24px; border-radius: 16px; border: .5px solid var(--line); }
.toc p { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 10px 0 0; columns: 2 260px; column-gap: 32px; }
.toc li { font-size: 15px; margin-top: 6px; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* steps on the deletion page */
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 44px; margin-top: 16px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
}
@media (prefers-color-scheme: dark) { .steps > li::before { background: #4F5BFF; } }

/* tables */
.table-wrap { overflow-x: auto; margin-top: 18px; border: .5px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: .5px solid var(--line); color: var(--sub); }
th { color: var(--ink); font-weight: 600; background: var(--surface); }
tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink); }

/* footer (matches index.html) */
.site-footer {
  max-width: 1440px; margin-inline: auto;
  padding: 48px clamp(20px, 5vw, 80px); border-top: .5px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  color: var(--sub); font-size: 13px;
}
.site-footer .brand span { font-size: 13px; font-weight: 600; color: var(--ink); }
.site-footer .brand img { width: 22px; height: 22px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--sub); }
.footer-links a:hover { color: var(--ink); }
.footer-disclaimer { width: 100%; font-size: 12px; color: var(--muted); text-align: center; padding-top: 4px; margin: 0; }
