/* The privacy policy and terms pages. Same fonts, tokens, header and footer
   as the landing page (index.html keeps its own copy inline, so it stays one
   file with no extra request). Tokens: docs/design/tokens.json, pop.*. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-800-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
  --pop-surface-paper: #FDFBF7;
  --pop-surface-ink: #15130F;
  --pop-surface-ink-soft: #3A3832;
  --pop-surface-ink-muted: #5E5A52;
  --pop-accent-lime: #D6F24B;
  --pop-accent-blue: #2B4BFF;
  --pop-on-ink: #FDFBF7;
  --pop-outline-width: 2.5px;
  --pop-radius-feature: 20px;
  --pop-radius-sheet: 28px;

  --display: "Bricolage Grotesque", "Arial Black", "Helvetica Neue", Arial, system-ui, sans-serif;
  --ui: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --ink-line: var(--pop-outline-width) solid var(--pop-surface-ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--pop-surface-paper);
  color: var(--pop-surface-ink-soft);
  font-family: var(--ui);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
svg { display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; color: var(--pop-surface-ink); margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
a { color: var(--pop-accent-blue); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--pop-accent-blue); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 10; background: var(--pop-surface-ink); color: var(--pop-on-ink); padding: 10px 16px; border-radius: 999px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header: the name, and the way back. */
.site-header { padding: 16px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pop-surface-ink); font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.03em; }
.brand svg { width: 34px; height: 34px; border-radius: 9px; border: 2px solid var(--pop-surface-ink); }
.back {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: var(--ink-line); color: var(--pop-surface-ink); font-weight: 800; font-size: 15px; text-decoration: none;
}
.back:hover { background: var(--pop-accent-lime); }

/* The document */
.doc { padding-top: clamp(16px, 4vw, 48px); padding-bottom: clamp(48px, 7vw, 96px); }
.doc article { max-width: 42em; }
.eyebrow { font-weight: 800; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pop-surface-ink-muted); margin: 0 0 12px; }
.doc h1 { font-size: clamp(40px, 6.4vw, 72px); }
.doc .lede { margin-top: 18px; font-size: clamp(17px, 1.6vw, 20px); }
.meta { margin-top: 14px; font-size: 14px; color: var(--pop-surface-ink-muted); }
.toc { margin: 32px 0 0; padding: 20px 22px; border: var(--ink-line); border-radius: var(--pop-radius-feature); }
.toc h2 { font-family: var(--ui); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pop-surface-ink-muted); }
.toc ol { margin: 10px 0 0; padding-left: 1.4em; font-size: 16px; }
.toc li { margin: 2px 0; }
.doc section { margin-top: 44px; scroll-margin-top: 16px; }
.doc h2 { font-size: clamp(26px, 3.2vw, 34px); }
.doc h3 { font-family: var(--ui); font-size: 18px; letter-spacing: 0; margin-top: 24px; }
.doc p { margin: 14px 0 0; }
.doc ul, .doc ol.list { margin: 14px 0 0; padding-left: 1.3em; }
.doc li { margin: 8px 0 0; }
.doc li::marker { color: var(--pop-surface-ink); }
.doc strong { color: var(--pop-surface-ink); font-weight: 800; }
.table-wrap { margin-top: 16px; overflow-x: auto; border: var(--ink-line); border-radius: var(--pop-radius-feature); }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 2px solid rgba(21, 19, 15, 0.12); }
thead th { border-top: 0; color: var(--pop-surface-ink); font-weight: 800; background: rgba(21, 19, 15, 0.04); }
td:first-child { color: var(--pop-surface-ink); font-weight: 800; min-width: 8em; }
.note { margin-top: 14px; padding: 12px 16px; border-left: 4px solid var(--pop-surface-ink); background: rgba(21, 19, 15, 0.04); font-size: 15px; }

/* Footer, as on the landing page */
.site-footer { padding: 8px 0 40px; font-size: 15px; }
.site-footer .inner { display: grid; gap: 16px; border-top: 2px solid var(--pop-surface-ink); padding-top: 24px; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { font-weight: 800; }
.site-footer nav a[aria-current="page"] { color: var(--pop-surface-ink); text-decoration: none; }
.site-footer .small { margin: 0; font-size: 13px; color: var(--pop-surface-ink-muted); max-width: 60em; }

@media (min-width: 900px) {
  .site-footer .inner { grid-template-columns: auto 1fr; align-items: start; column-gap: 48px; }
  .site-footer .small { grid-column: 1 / -1; }
}
@media (min-width: 1500px) { :root { --max: 1280px; } }
@media print {
  .site-header .back, .toc, .skip { display: none; }
  body { font-size: 12pt; }
}
