/* Styling for the two standalone legal documents (/privacy and /terms).
 *
 * These pages are plain HTML rather than routes inside the React app: Meta's
 * crawler has to be able to read the policy text without executing a 1MB module
 * bundle, and the pages have to answer 200 with their content in the first
 * response. The tokens below are lifted from HomeStyle() in campaign-workflow.jsx
 * so the documents sit inside the same visual system as the marketing site. */

:root {
  --ink: #0a0f1c;
  --line: #1c2740;
  --line-strong: #2b3a5c;
  --text: #e7e9ee;
  --muted: #8891a3;
  --dim: #6b7793;
  --gold: #d4a24e;
  --teal: #4fb88e;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 900px 600px at 8% 0%, rgba(109, 40, 217, 0.2), transparent 60%),
    radial-gradient(ellipse 800px 700px at 100% 100%, rgba(6, 182, 212, 0.14), transparent 60%),
    var(--ink);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.piq-display { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; letter-spacing: -0.02em; line-height: 1.12; }
.piq-mono { font-family: "IBM Plex Mono", ui-monospace, "SF Mono", monospace; }

.wrap { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
}

.brand span { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.brand .iq { color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.nav-links a {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--gold); }

/* ---------- Document head ---------- */

.doc-head { padding: 56px 0 36px; border-bottom: 1px solid var(--line); }

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 20px;
}

h1 { font-size: clamp(32px, 5.4vw, 48px); font-weight: 700; margin: 0 0 20px; }

.lede { font-size: 16.5px; color: var(--muted); margin: 0 0 26px; max-width: 62ch; }

.dates {
  display: flex;
  gap: 10px 28px;
  flex-wrap: wrap;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--dim);
}

.dates b { color: var(--muted); font-weight: 500; }

/* ---------- Contents ---------- */

.toc { padding: 32px 0; border-bottom: 1px solid var(--line); }
.toc h2 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin: 0 0 16px; font-weight: 600; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; columns: 2; column-gap: 32px; }
.toc li { counter-increment: toc; margin-bottom: 9px; break-inside: avoid; }
.toc a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color 0.18s ease; }
.toc a::before { content: counter(toc) ". "; color: var(--dim); font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; }
.toc a:hover { color: var(--gold); }

/* ---------- Body ---------- */

main { padding: 12px 0 64px; }

section { padding: 40px 0 0; scroll-margin-top: 24px; }

h2 { font-size: clamp(21px, 3vw, 26px); font-weight: 700; margin: 0 0 16px; font-family: "Space Grotesk", "Inter", system-ui, sans-serif; letter-spacing: -0.02em; }

h3 { font-size: 16px; font-weight: 600; margin: 28px 0 10px; color: var(--text); }

p { margin: 0 0 16px; color: var(--muted); }

ul { margin: 0 0 16px; padding-left: 20px; color: var(--muted); }
li { margin-bottom: 9px; }
li::marker { color: var(--line-strong); }

strong { color: var(--text); font-weight: 600; }

a { color: var(--gold); }
a:hover { color: #e0b268; }

/* A hairline rule on the left rather than a filled callout box — the same
   treatment the marketing page uses for anything that needs emphasis. */
.note {
  padding: 4px 0 4px 20px;
  border-left: 1px solid var(--line-strong);
  margin: 0 0 20px;
}

.note p:last-child { margin-bottom: 0; }

/* Definition-style rows for "what we collect" and retention tables. */
.rows { border-top: 1px solid var(--line); margin: 0 0 20px; }

.row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  gap: 8px 28px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.row dt { font-size: 14px; font-weight: 600; color: var(--text); margin: 0; }
.row dd { margin: 0; color: var(--muted); font-size: 15px; }

code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--teal);
  background: rgba(79, 184, 142, 0.1);
  border-radius: 4px;
  padding: 1px 5px;
}

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 48px; }

.site-footer .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer span { font-size: 12px; color: var(--dim); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer nav a { font-size: 12.5px; color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--gold); }

/* ---------- Small screens ---------- */

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 18px; }
  .doc-head { padding: 36px 0 28px; }
  section { padding: 32px 0 0; }
  .toc ol { columns: 1; }
  .row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .nav { padding: 18px 0; }
}
