/* Shared styles for the static legal pages (privacy.html, terms.html).
 * Token values are copied from src/tokens.css. The app flips themes with a
 * data-theme attribute set by JS; these pages have no JS, so the dark block
 * rides prefers-color-scheme instead. If tokens.css changes, re-copy. */

:root {
  color-scheme: light;
  --paper: oklch(0.979 0.008 88);
  --ink-200: oklch(0.878 0.013 78);
  --ink-500: oklch(0.518 0.019 62);
  --ink-600: oklch(0.428 0.019 60);
  --ink-700: oklch(0.344 0.018 58);
  --ink-900: oklch(0.2 0.014 58);
  --accent-600: oklch(0.563 0.199 31);
  --accent-700: oklch(0.487 0.178 30);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: oklch(0.174 0.012 58);
    --ink-200: oklch(0.352 0.014 62);
    --ink-500: oklch(0.702 0.012 75);
    --ink-600: oklch(0.792 0.01 78);
    --ink-700: oklch(0.862 0.009 80);
    --ink-900: oklch(0.95 0.007 85);
    --accent-600: oklch(0.712 0.168 46);
    --accent-700: oklch(0.775 0.15 50);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-700);
  /* System stack, not a webfont: these pages are static HTML outside the Vite
     build, so a webfont here means a CDN request — on the very page that
     promises no third-party requests. The OS font is free and instant. */
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--ink-900);
  padding-bottom: 0.75rem;
}

.top a {
  color: var(--ink-600);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.top a:hover {
  color: var(--ink-900);
  text-decoration: underline;
  text-decoration-color: var(--accent-600);
  text-underline-offset: 4px;
}

.wordmark {
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

h1 {
  margin: 2.5rem 0 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.meta {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--ink-500);
}

/* The landing's section device: number + uppercase label over a hairline. */
section {
  margin-top: 3rem;
  border-top: 1px solid var(--ink-200);
  padding-top: 1.25rem;
}

section > h2 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-500);
}

section > h2 .n {
  color: var(--accent-700);
  font-variant-numeric: tabular-nums;
  margin-right: 0.75rem;
}

h3 {
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

p,
ul {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin-top: 0.375rem;
}

strong {
  color: var(--ink-900);
  font-weight: 600;
}

a {
  color: var(--accent-700);
}

footer {
  margin-top: 4rem;
  border-top: 1px solid var(--ink-900);
  padding-top: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-500);
}
