/* Privacy and Terms. Two standalone documents, outside the app: no map, no
   bundle, no tokens pipeline — a text page that renders if everything else is
   broken, which is exactly when someone goes looking for it.
   Its own file, not a <style> block, because the CSP is `style-src 'self'`
   (deploy/headers.sh). The palette is Night Market, copied from
   src/tokens/primitives.css, as values rather than an import: it does not change,
   and a legal page should not depend on the app's build to be readable. */
:root {
  --bg: #12110f;
  --surface: #1a1917;
  --border: #2c2a26;
  --text: #f5f2ea;
  --text-muted: #a7a299;
  --text-faint: #75716a;
  --accent: #ffb23e;
  --measure: 34rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 16px 96px;
  background: var(--bg);
  color: var(--text-muted);
  font: 400 16px / 1.65 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* One column, measured for reading and centred, on a phone as on a desktop. */
main, header { max-width: var(--measure); margin: 0 auto; }

header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.home {
  display: inline-block;
  margin-bottom: 28px;
  min-height: 44px;
  line-height: 44px;
  color: var(--text-faint);
  font-size: 14px;
  text-decoration: none;
}
.home:hover { color: var(--accent); }

h1 {
  margin: 0 0 8px;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.15;
  color: var(--text);
}
.asof { margin: 0; font-size: 14px; color: var(--text-faint); }

h2 {
  margin: 44px 0 12px;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(19px, 4.5vw, 22px);
  line-height: 1.25;
  color: var(--text);
}

p, li { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 22px; }
li::marker { color: var(--text-faint); }
strong { color: var(--text); font-weight: 600; }

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

/* The one thing on these pages worth reading if nothing else is: what leaves
   the device, and what does not. */
.lede {
  padding: 18px 20px;
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
  background: var(--surface);
  color: var(--text);
  font-size: 17px;
}
.lede p:last-child { margin-bottom: 0; }

footer {
  max-width: var(--measure);
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-faint);
}

@media (min-width: 768px) {
  body { padding: 0 32px 128px; }
  header { padding-top: 72px; }
}
