/* Shared look of the landing page and the legal pages (#45): the Public Link
   pages' warm colours, Georgia headings, system fonts; no external fonts. */
:root {
  --bg: #faf6f1;
  --surface: #ffffff;
  --text: #2a211c;
  --muted: #7a6b61;
  --line: #e8ddd2;
  --accent: #d66a4a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14100e;
    --surface: #1e1815;
    --text: #f6efe6;
    --muted: #b3a69b;
    --line: #2b221d;
    --accent: #ffb5a0;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
h1, h2, h3, .brand { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }

.site-header, .site-footer { max-width: 1120px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; gap: 12px; }
.site-header { border-bottom: 1px solid var(--line); max-width: none; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.site-footer { border-top: 1px solid var(--line); max-width: none; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.site-footer nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a[aria-current="page"] { color: var(--text); }

/* Legal pages: a contents column beside a narrow text column. */
.legal { max-width: 1120px; margin: 0 auto; padding: 40px 24px 64px; display: grid; grid-template-columns: 220px minmax(0, 680px); gap: 64px; }
.legal nav { position: sticky; top: 24px; align-self: start; font-size: 14px; line-height: 2.1; }
.legal nav p { margin: 0 0 4px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.legal nav a { display: block; color: var(--muted); text-decoration: none; }
.legal h1 { font-size: 42px; letter-spacing: -0.8px; line-height: 1.1; margin: 0 0 6px; }
.legal h2 { font-size: 24px; margin: 32px 0 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.legal li { margin-bottom: 6px; }
.draft { border: 1px solid var(--accent); border-radius: 12px; padding: 12px 16px; margin: 0 0 24px; font-size: 14px; }
.placeholder { background: color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 4px; padding: 0 4px; }

@media (max-width: 760px) {
  .legal { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .legal nav { position: static; }
  .legal h1 { font-size: 34px; }
  .site-footer nav { margin-left: 0; }
}
