/* Privacy and terms pages. The landing page's tokens (PlumPalette), its top
   bar and its footer, around one reading column; tables scroll inside
   themselves on a phone. Keep the bar and footer in step with index.html. */
:root {
  --surface-page: oklch(0.9846 0.0017 247.84);
  --surface-raised: oklch(1.0000 0.0000 0.00);
  --surface-border: oklch(0.9220 0.0042 271.37);
  --text-fg: oklch(0.2088 0.0042 264.48);
  --text-bg: oklch(1.0000 0.0000 0.00);
  --plum: oklch(0.4703 0.1354 337.04);
  --plum-ink: var(--plum);
  --plum-tint: color-mix(in srgb, var(--plum) 9%, transparent);
  --shadow-raised: 0 1px 2px oklch(0 0 0 / 0.04), 0 2px 6px -1px oklch(0 0 0 / 0.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface-page: oklch(0.2088 0.0042 264.48);
    --surface-raised: oklch(0.2605 0.0058 271.19);
    --surface-border: oklch(0.3084 0.0061 258.35);
    --text-fg: oklch(0.9637 0.0017 247.84);
    --plum: oklch(0.4997 0.1323 336.34);
    --plum-ink: color-mix(in srgb, oklch(0.4997 0.1323 336.34) 45%, white);
    --plum-tint: color-mix(in srgb, oklch(0.4997 0.1323 336.34) 22%, transparent);
    --shadow-raised: none;
    color-scheme: dark;
  }
}
:root {
  --text-secondary: color-mix(in srgb, var(--text-fg) 72%, transparent);
  --text-muted: color-mix(in srgb, var(--text-fg) 56%, transparent);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --wrap: 1440px;
  --gutter: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--surface-page); color: var(--text-fg);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.65; letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--plum-ink); text-underline-offset: 2px; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--plum-ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--plum); color: var(--text-bg); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Top bar: the landing page's, on the page surface ─────────────────── */
.topbar {
  display: flex; align-items: center; gap: 28px;
  max-width: var(--wrap); height: 80px; margin: 0 auto; padding: 0 40px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text-fg); text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand svg { width: 26px; height: 26px; }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.topbar nav a { font-size: 15px; color: var(--text-secondary); text-decoration: none; transition: color 200ms var(--ease); }
.topbar nav a:hover { color: var(--text-fg); }
.topbar nav a.go {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 8px;
  background: var(--plum); color: var(--text-bg); font-weight: 600; box-shadow: var(--shadow-raised);
}
.topbar nav a.go:hover { background: color-mix(in srgb, var(--plum) 88%, black); color: var(--text-bg); }

/* ── The reading column ───────────────────────────────────────────────── */
main { max-width: 760px; margin: 0 auto; padding: 40px 16px 72px; }
h1 { margin: 0 0 8px; font-size: clamp(32px, 6vw, 44px); line-height: 1.1; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; }
.updated { margin: 0 0 32px; color: var(--text-muted); font-size: 14px; }
.lede { margin: 0 0 16px; font-size: 18px; line-height: 1.6; color: var(--text-secondary); text-wrap: pretty; }
.summary { margin: 32px 0 8px; padding: 20px 22px; border-radius: 16px; background: var(--plum-tint); }
.summary h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: 15px; }
.summary ul { margin: 0; padding-left: 20px; }
main h2 { margin: 48px 0 12px; padding-top: 24px; border-top: 1px solid var(--surface-border); font-size: 22px; line-height: 1.3; letter-spacing: -.025em; font-weight: 600; text-wrap: balance; }
main h3 { margin: 24px 0 8px; font-size: 17px; font-weight: 600; }
main p, main ul, main ol { margin: 0 0 14px; text-wrap: pretty; }
main li { margin-bottom: 6px; }
.note { margin: 0 0 14px; padding: 12px 16px; border-left: 3px solid var(--plum); background: var(--surface-raised); border-radius: 0 8px 8px 0; color: var(--text-secondary); font-size: 15px; }
.table { overflow-x: auto; margin: 8px 0 18px; border: 1px solid var(--surface-border); border-radius: 12px; background: var(--surface-raised); }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--surface-border); }
tr:last-child td { border-bottom: 0; }
th { font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--text-muted); }

/* ── Footer: the landing page's ───────────────────────────────────────── */
footer { padding: 72px 0 24px; border-top: 1px solid var(--surface-border); line-height: 1.55; }
footer h2, footer p { margin: 0; }
footer a { color: inherit; }
.footer-intro { font-size: 18px; font-weight: 500; line-height: 1.45; letter-spacing: -.025em; }
.foot { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 64px; margin-top: 72px; }
.footer-label { margin-bottom: 16px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; font-weight: 400; letter-spacing: .025em; text-transform: uppercase; color: var(--text-muted); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.foot a { text-decoration: none; font-size: 16px; font-weight: 500; transition: color 150ms var(--ease); }
.foot a:hover, .foot a[aria-current] { color: var(--plum-ink); }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer-status p { max-width: 28ch; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.pill { display: inline-flex; align-items: center; margin-top: 20px; border-radius: 6px; background: var(--plum-tint); color: var(--plum-ink); font-size: 11px; font-weight: 600; padding: 5px 9px; white-space: nowrap; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; line-height: 1.6; letter-spacing: .025em; text-transform: uppercase; color: var(--text-muted); margin-top: 72px; }
.legal a { text-decoration: none; }
.footer-lockup { container-type: inline-size; display: grid; grid-template-columns: 1fr 3.4fr; align-items: center; gap: 2%; margin-top: 44px; text-decoration: none; }
.footer-sprite { width: 100%; height: auto; aspect-ratio: 1; }
/* Dots echo the reference's oversized imprint without introducing a font. */
.footer-wordmark { display: block; padding-bottom: .12em; font-size: 32cqw; font-weight: 600; line-height: .85; letter-spacing: -.075em; background: radial-gradient(circle, var(--text-muted) 1px, transparent 1.2px) 0 0 / 4px 4px; background-clip: text; -webkit-background-clip: text; color: transparent; }

/* ── Plum, the mascot ─────────────────────────────────────────────────── */
.mascot .rig { transform-origin: 120px 212px; transform-box: view-box; }
.mascot .leaf { transform-origin: 131px 42px; transform-box: view-box; }
.mascot .eye { transform-origin: center; transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
  .mascot.alive .rig { animation: breathe 3.6s ease-in-out infinite; }
  .mascot.alive .leaf { animation: sway 4.8s ease-in-out infinite; }
  .mascot.alive .eye { animation: blink 5.2s infinite; }
  @keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.015, 0.985); } }
  @keyframes sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-7deg); } }
  @keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
}

/* ── Phone ────────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .topbar { height: 64px; padding: 0 16px; }
  .topbar nav a:not(.go) { display: none; }
  footer { padding-top: 48px; }
  .foot { grid-template-columns: 1fr; gap: 36px; margin-top: 40px; }
  .footer-links { gap: 20px; }
  .footer-label { font-size: 11px; }
  .foot a { font-size: 14px; }
  .footer-status p { max-width: 44ch; }
  .legal { margin-top: 48px; }
  .footer-lockup { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .footer-sprite { width: 45%; justify-self: center; }
  .footer-wordmark { font-size: 43cqw; text-align: center; background-size: 3px 3px; }
}
@media (max-width: 400px) {
  .footer-links { grid-template-columns: 1fr 1fr; gap: 28px; }
}
