/* ============================================================
   legal.css — Styles for privacy.html and terms.html
   Uses design tokens from style.css
   ============================================================ */

body {
  background: var(--ink); color: var(--cream);
  font-family: var(--ff-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
img, svg { display: block; max-width: 100%; }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 24px; width: 100%; }
.mono { font-family: var(--ff-mono); }
h1, h2, h3 { font-family: var(--ff-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.04; }

/* ---------- header ---------- */
header {
  padding: 28px 0; border-bottom: 1px solid var(--line);
  background: rgba(14,20,32,0.4); backdrop-filter: blur(16px);
  position: sticky; top: 0; z-index: 20;
}
header .wrap {
  display: flex; align-items: center; gap: 10px; justify-content: center;
}
header .logo {
  font-family: var(--ff-display); font-weight: 700; font-size: 19px; text-align: center;
  display: flex; align-items: center; gap: 10px;
}
header .logo::before {
  content: ""; width: 12px; height: 12px; border-radius: 3px;
  background: linear-gradient(135deg, var(--gold), #a97a20);
  box-shadow: 0 0 12px var(--gold-glow);
}

/* ---------- legal content ---------- */
main { flex: 1; padding: 64px 0; }

.legal-header { margin-bottom: 48px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.legal-header .eyebrow {
  font-family: var(--ff-mono); font-weight: 500; font-size: 12.5px;
  letter-spacing: 2.6px; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.legal-header .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.legal-header h1 { font-size: clamp(28px, 5vw, 40px); }
.legal-header .meta { margin-top: 14px; font-family: var(--ff-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.5px; }

.legal-body { display: flex; flex-direction: column; gap: 40px; }
.legal-section h2 { font-size: 22px; margin-bottom: 14px; color: var(--cream); }
.legal-section p { color: var(--muted); font-size: 15px; line-height: 1.75; margin-bottom: 12px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ol, .legal-section ul {
  color: var(--muted); font-size: 15px; line-height: 1.75;
  padding-left: 22px; display: flex; flex-direction: column; gap: 8px;
}
.legal-section a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.legal-section a:hover { color: #dfac3f; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0; text-align: center; }
footer .links { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
footer .links a { color: var(--muted); transition: color var(--dur-fast); }
footer .links a:hover { color: var(--cream); }
footer .fine { margin-top: 16px; font-size: 12px; color: var(--muted); max-width: 480px; margin-left: auto; margin-right: auto; }

@media (max-width: 640px) {
  .legal-header h1 { font-size: 30px; }
}
