/* Zeitgeist Insight — legal / support pages. Built on the Pick Me Up design
   system tokens (loaded via /ds/tokens/*.css). Dark theme. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-text);
  line-height: var(--lh-relaxed);
  -webkit-font-smoothing: antialiased;
}

.aura {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46rem 30rem at 8% -4%, color-mix(in oklab, var(--color-primary) 14%, transparent), transparent 70%),
    radial-gradient(38rem 26rem at 96% 6%, color-mix(in oklab, var(--color-accent) 10%, transparent), transparent 72%);
}

/* ---------- Sticky header ---------- */
.doc-head {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(20, 24, 26, 0.78);
  border-bottom: 1px solid var(--color-border);
}
.doc-head__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.doc-head__left { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.doc-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.doc-back:hover { background: color-mix(in oklab, var(--color-primary) 14%, transparent); color: var(--color-text); }
.doc-brand { display: flex; align-items: center; gap: 12px; color: var(--color-text); }
.doc-brand:hover { color: var(--color-text); }
.doc-brand img { display: block; flex-shrink: 0; }
.doc-brand span { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }

.doc-nav { display: flex; align-self: stretch; align-items: stretch; gap: 26px; margin-bottom: -1px; }
.doc-nav a {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
}
.doc-nav a:hover { color: var(--color-text); }
.doc-nav a[aria-current="page"] { color: var(--color-text); border-bottom-color: var(--color-primary); }

/* ---------- Document body ---------- */
.doc-wrap { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 40px 32px 96px; }

.doc-updated {
  margin: 0 0 16px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.doc-title {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.doc-lede { margin: 0 0 8px; font-size: 21px; line-height: 1.6; color: var(--color-text); text-wrap: pretty; }

.doc h2 {
  margin: 56px 0 14px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.doc h3 { margin: 32px 0 10px; font-size: 17px; font-weight: 600; letter-spacing: 0.01em; color: var(--color-primary); }
.doc h2 + h3 { margin-top: 20px; }
.doc p { margin: 0 0 18px; font-size: 17px; line-height: 1.7; color: var(--color-text-muted); }
.doc ul { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.doc li { position: relative; padding-left: 24px; font-size: 17px; line-height: 1.7; color: var(--color-text-muted); }
.doc li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 6px; height: 6px; border-radius: 999px; background: var(--color-primary); }
.doc strong { color: var(--color-text); font-weight: 600; }
.doc a { color: var(--color-primary); border-bottom: 1px solid color-mix(in oklab, var(--color-primary) 40%, transparent); }
.doc a:hover { color: var(--color-primary-strong); border-bottom-color: var(--color-primary); }

/* Not-medical callout (warning tone) */
.callout {
  margin: 40px 0 8px;
  border: 1px solid color-mix(in oklab, var(--color-warning) 40%, var(--color-border));
  border-left: 3px solid var(--color-warning);
  background: color-mix(in oklab, var(--color-warning) 8%, var(--color-surface));
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.callout strong { color: var(--color-text); }
.callout p { margin: 0; color: var(--color-text-muted); font-size: 16px; line-height: 1.6; }
.callout p:first-child { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.doc-foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-border);
}
.doc-foot__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 32px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  font-size: 14px;
  color: var(--color-text-muted);
}
.doc-foot__inner a, .doc-foot__inner .linklike {
  color: var(--color-text-muted);
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
}
.doc-foot__inner a:hover, .doc-foot__inner .linklike:hover { color: var(--color-primary); }
.doc-foot__meta { margin-left: auto; font-size: 13px; }

@media (max-width: 640px) {
  .doc-head__inner, .doc-wrap, .doc-foot__inner { padding-left: 20px; padding-right: 20px; }
  .doc-nav { display: none; }
  .doc-title { font-size: 38px; }
  .doc-lede { font-size: 18px; }
  .doc-foot__meta { margin-left: 0; }
}
