/* ═══════════════════════════════════════════════════════════
   LEGAL PAGES (Terms of Service & Privacy Policy)
   ═══════════════════════════════════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Hero ── */
.legal-hero {
  padding: 9rem 2rem 4rem;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.legal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--primary-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.legal-hero::after {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.legal-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-eyebrow {
  font-family: 'JetBrains Mono', 'Monaco', 'Menlo', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.legal-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-bright);
  margin: 0 0 1rem;
}

.legal-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Content ── */
.legal-body {
  max-width: 820px;
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
}

.legal-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 3rem 3.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

.legal-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-subtle);
  font-family: 'JetBrains Mono', monospace;
}

.legal-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--legal-dot-color, var(--primary));
  flex-shrink: 0;
}

.legal-card h2 {
  color: var(--text-bright);
  font-size: 1.4rem;
  margin: 2.5rem 0 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-card h3 {
  color: var(--primary);
  font-size: 0.78rem;
  margin: 1.5rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.legal-card p {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-card ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-card li {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

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

.highlight-box {
  background: rgba(var(--legal-highlight-rgb, var(--primary-rgb)), 0.04);
  border: 1px solid rgba(var(--legal-highlight-rgb, var(--primary-rgb)), 0.12);
  border-left: 3px solid var(--legal-dot-color, var(--primary));
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 10px 10px 0;
}

.highlight-box strong {
  color: var(--text-bright);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'JetBrains Mono', monospace;
}

.highlight-box p {
  margin: 0;
}

.highlight-box ul {
  margin: 0;
  padding-left: 1.25rem;
}

.highlight-box li {
  color: var(--text);
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .legal-hero {
    padding: 7rem 1.25rem 3rem;
  }

  .legal-card {
    padding: 1.75rem 1.25rem;
    border-radius: 12px;
  }

  .legal-body {
    margin-bottom: 4rem;
    padding: 0 1rem;
  }

  .legal-card h2 {
    font-size: 1.2rem;
  }
}
