/* =============================================================
   ZOODLER — Legal page layout
   Inherits color tokens + fonts from /_landing/styles.css.
   Goal: serious editorial typography, restrained color, generous
   whitespace, single readable column. No marketing chrome.
   ============================================================= */

body {
  background: var(--z-bg);
  color: var(--z-ink);
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-variation-settings: 'wdth' 100, 'opsz' 14, 'GRAD' 0;
  font-weight: 420;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Header ---------- */
.legal-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--z-ink);
}
.legal-brand img { width: 28px; height: 28px; display: block; }
.legal-brand-name {
  font-variation-settings: 'wdth' 90, 'opsz' 32, 'wght' 720, 'GRAD' 0;
  font-size: 18px;
  letter-spacing: -0.025em;
  color: var(--z-ink);
}
.legal-back {
  font-family: 'Azeret Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--z-ink-mute);
  text-decoration: none;
  transition: color 160ms ease;
}
.legal-back:hover { color: var(--z-ink); }

/* ---------- Shell ---------- */
.legal-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}

/* ---------- Eyebrow ---------- */
.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--z-ink-mute);
  margin-bottom: 28px;
}
.legal-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--z-ink-mute);
  display: inline-block;
}

/* ---------- Title ---------- */
.legal-title {
  font-variation-settings: 'wdth' 88, 'opsz' 96, 'wght' 700, 'GRAD' 0;
  font-size: clamp(40px, 5.4vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--z-ink);
  margin: 0 0 32px;
}

/* ---------- Meta strip ---------- */
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--z-ink-mute);
  padding-bottom: 32px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--z-hair);
}
.legal-meta span { display: inline-block; }
.legal-meta b {
  color: var(--z-ink-soft);
  font-weight: 600;
  margin-right: 6px;
}
.legal-meta a {
  color: var(--z-ink-soft);
  text-decoration: none;
  border-bottom: 1px dotted var(--z-hair);
  transition: border-color 160ms ease, color 160ms ease;
}
.legal-meta a:hover { color: var(--z-ink); border-bottom-color: var(--z-ink-mute); }

/* ---------- Lede paragraph ---------- */
.legal-lede {
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--z-ink-soft);
  margin: 0 0 56px;
  max-width: 60ch;
}

/* ---------- Section ---------- */
.legal-section {
  margin: 0 0 56px;
  scroll-margin-top: 24px;
}
.legal-section:last-of-type { margin-bottom: 0; }

.legal-section h2 {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: baseline;
  font-variation-settings: 'wdth' 94, 'opsz' 32, 'wght' 680, 'GRAD' 0;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--z-ink);
  margin: 0 0 20px;
}
.legal-section h2 .num {
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--z-ink-mute);
  padding-top: 5px;
}

.legal-section h3 {
  font-variation-settings: 'wdth' 100, 'opsz' 18, 'wght' 600, 'GRAD' 0;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--z-ink);
  margin: 24px 0 10px;
  text-transform: none;
}

.legal-section p,
.legal-section li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--z-ink-soft);
  margin: 0 0 14px;
}
.legal-section p:last-child,
.legal-section li:last-child { margin-bottom: 0; }

.legal-section ul,
.legal-section ol {
  padding-left: 24px;
  margin: 0 0 14px;
}
.legal-section li { padding-left: 4px; }
.legal-section li::marker { color: var(--z-ink-mute); }

.legal-section dl {
  display: grid;
  gap: 18px;
  margin: 0 0 16px;
  padding-left: 0;
}
.legal-section dt {
  font-weight: 600;
  font-size: 15px;
  color: var(--z-ink);
}
.legal-section dd {
  margin: 4px 0 0;
  color: var(--z-ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.legal-section strong { color: var(--z-ink); font-weight: 600; }
.legal-section em { font-style: italic; color: var(--z-ink-soft); }
.legal-section code {
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 13px;
  padding: 1px 6px;
  background: var(--z-bg-deep);
  border-radius: 4px;
  color: var(--z-ink);
}
.legal-section a {
  color: var(--z-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--z-hair);
  transition: border-color 160ms ease;
}
.legal-section a:hover { border-bottom-color: var(--z-ink); }

/* Subtle hairline between sections — only visible at desktop sizes */
.legal-section + .legal-section {
  border-top: 1px solid var(--z-hair);
  padding-top: 56px;
}

/* ---------- Footer ---------- */
.legal-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 56px;
  border-top: 1px solid var(--z-hair);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
  font-family: 'Azeret Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--z-ink-mute);
}
.legal-footer a {
  color: var(--z-ink-soft);
  text-decoration: none;
  transition: color 160ms ease;
}
.legal-footer a:hover { color: var(--z-ink); }
.legal-footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 620px) {
  .legal-shell { padding: 48px 22px 96px; }
  .legal-title { font-size: clamp(34px, 9vw, 44px); }
  .legal-section h2 {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .legal-section h2 .num { padding-top: 0; }
  .legal-section + .legal-section { padding-top: 40px; }
}
