/* ─────────────────────────────────────────────────────────────
   Legal pages — legal.css
   Shared styles for legal.html, terms.html, privacy.html, refund.html
   ───────────────────────────────────────────────────────────── */

/* ── Page header ────────────────────────────────────────────── */
.legal-header {
  padding: 72px 24px 40px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.legal-header__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.legal-header__meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--iq);
}

/* ── Prose container ────────────────────────────────────────── */
.legal-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Typography ─────────────────────────────────────────────── */
.legal-body p,
.legal-body li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text2);
}

.legal-body h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1875rem;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 14px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.legal-body h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-body p { margin-bottom: 14px; }

.legal-body ul,
.legal-body ol {
  margin: 0 0 16px 20px;
}

.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }

.legal-body li { margin-bottom: 6px; }

.legal-body a {
  color: var(--iq);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.legal-body a:hover { color: var(--iq2); }

/* ── Section numbers ────────────────────────────────────────── */
.legal-body h2[data-section]::before {
  content: attr(data-section) ". ";
  color: var(--iq);
}
