/*
  Shared styling for the static legal pages (/privacy, /delete-account).

  These sit outside React — the app has no router, so they ship as real files
  under public/ and win over the SPA rewrite in netlify.toml. That means no
  useTheme(), so they are pinned to the sunset palette from src/palette.js,
  the same compromise the favicon and the launcher icons make.
*/

:root {
  --cream: #F7F2EC;
  --ink: #0E0B14;
  --coral: #FF5A5F;
  /* The app's own muted token is ink at 55%, which lands at 4.2:1 on cream.
     Every use of it here is 10-11px label text, so it needs the 4.5:1 floor
     for small text, not the large-text exemption. 65% gives ~6:1. */
  --muted: rgba(14, 11, 20, .65);
  --rule: rgba(14, 11, 20, .15);
  --tile: rgba(255, 255, 255, .5);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter Tight', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 22px 64px;
}

/* ── Masthead ─────────────────────────────────────────────────────────── */

.mast {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  width: fit-content;
}

.mast svg { display: block; flex-shrink: 0; }

.wordmark {
  display: flex;
  align-items: baseline;
  font-size: 26px;
  line-height: 1;
}

.wordmark .sans { font-weight: 800; letter-spacing: -.03em; }

.wordmark .serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  margin-left: .16em;
}

.wordmark .dot {
  width: .15em;
  height: .15em;
  background: var(--coral);
  margin-left: .14em;
}

/* ── Type ─────────────────────────────────────────────────────────────── */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 44px 0 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--muted);
  flex-shrink: 0;
}

h1 {
  font-size: clamp(40px, 11vw, 64px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.035em;
  margin: 0 0 10px;
}

h1 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 44px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 24px 0 6px;
}

p, li { font-size: 15px; }

.updated {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
}

.lede { font-size: 17px; }

ul { padding-left: 20px; }
li { margin-bottom: 8px; }

a { color: var(--ink); text-decoration-color: var(--coral); text-underline-offset: 3px; }
a:hover { color: var(--coral); }

code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: .88em;
  background: var(--tile);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1px 5px;
}

/* ── Callout ──────────────────────────────────────────────────────────── */

.callout {
  background: var(--tile);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--coral);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 24px 0;
}

.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }

/* ── Table ────────────────────────────────────────────────────────────── */

.scroll { overflow-x: auto; margin: 18px 0; }

table { border-collapse: collapse; width: 100%; min-width: 460px; }

th, td {
  text-align: left;
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  vertical-align: top;
}

th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Footer ───────────────────────────────────────────────────────────── */

footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

footer a { color: var(--muted); }
footer a:hover { color: var(--coral); }
