/*
  Shared styling for the standalone legal pages (privacy.html, terms.html).

  These pages exist because Facebook Login and X require publicly reachable
  Privacy Policy / Terms URLs, which a React modal cannot provide. They are
  plain static HTML served straight from public/ — no bundler, no framework.

  Loaded via <link> rather than inlined per page so the two never drift apart
  visually. CSP allows this: style-src is 'self' 'unsafe-inline'.

  Theme follows prefers-color-scheme, not the app's stored .dark class — these
  pages carry no JavaScript (script-src permits only 'self' plus the one sha256
  hash for the anti-FOUC IIFE in index.html).

  Colors mirror the tokens in src/index.css.
*/

:root {
  --bg: #FFFFFF;
  --text: #1A1A1B;
  --muted: #6B7177;
  --border: #D3D6DA;
  --accent: #185FA5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121213;
    --text: #FFFFFF;
    --muted: #9CA0A4;
    --border: #3A3A3C;
    --accent: #2273C2;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2.5rem 1.25rem 4rem;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 34rem; margin: 0 auto; }

header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.01em;
  color: var(--text);
  text-decoration: none;
}
.brand .mark {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: .5rem;
  background: var(--accent);
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1;
}

h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin: 1.25rem 0 .35rem; }
h2 { font-size: .95rem; font-weight: 700; margin: 1.75rem 0 .4rem; }

p { margin: 0 0 .7rem; color: var(--muted); }
p.lead { color: var(--text); }
.updated { font-size: .8rem; margin-bottom: 0; }

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

ol, ul { margin: 0 0 .7rem; padding-left: 1.2rem; color: var(--muted); }
li { margin-bottom: .35rem; }

a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent); }

footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--muted);
}
/* Separator between the footer's cross-links. */
footer .sep { margin: 0 .5rem; opacity: .5; }
