/* ── Legal page shared styles ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: #0d0f1a;
  color: #e2e8f0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

.legal-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 25%, rgba(99,102,241,0.16) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 75%, rgba(139,92,246,0.10) 0%, transparent 50%),
    #0d0f1a;
}

.legal-nav {
  position: relative; z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.legal-brand {
  display: flex; align-items: center; gap: 12px;
  color: #f1f5f9; text-decoration: none; font-weight: 800;
}
.legal-brand img { width: 36px; height: 36px; object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(139,92,246,0.4)); }
.legal-brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 1px;
}
.legal-brand-name {
  background: linear-gradient(135deg, #818cf8, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.legal-brand-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  -webkit-text-fill-color: #94a3b8; /* override gradient inherit */
}
.legal-back {
  color: #94a3b8; text-decoration: none; font-size: 0.88rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.legal-back:hover { color: #e2e8f0; }

.legal-wrap {
  position: relative; z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 32px 80px;
}
.legal-card {
  background: rgba(19,22,41,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 48px 44px;
  backdrop-filter: blur(20px);
}
.legal-h1 {
  font-size: 2rem; font-weight: 800; color: #f1f5f9;
  margin-bottom: 8px; letter-spacing: -0.02em;
}
.legal-effective {
  font-size: 0.8rem; color: #64748b; margin-bottom: 32px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.legal-card h2 {
  font-size: 1.2rem; font-weight: 700; color: #f1f5f9;
  margin: 32px 0 12px; letter-spacing: -0.01em;
}
.legal-card h3 {
  font-size: 1rem; font-weight: 600; color: #cbd5e1;
  margin: 20px 0 8px;
}
.legal-card p, .legal-card li {
  color: #cbd5e1; font-size: 0.95rem; margin-bottom: 12px;
}
.legal-card ul, .legal-card ol {
  margin-left: 24px; margin-bottom: 12px;
}
.legal-card li { margin-bottom: 6px; }
.legal-card a { color: #a5b4fc; text-decoration: none; }
.legal-card a:hover { text-decoration: underline; }
.legal-card strong { color: #f1f5f9; }
.legal-card code {
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 2px 8px; border-radius: 6px;
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 0.85em; color: #c7d2fe;
}
.legal-callout {
  background: rgba(99,102,241,0.08);
  border-left: 3px solid #818cf8;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 0.9rem;
  color: #cbd5e1;
}
.legal-footer {
  text-align: center; margin-top: 32px;
  font-size: 0.78rem; color: #475569;
}
.legal-footer a { color: #818cf8; text-decoration: none; }
@media (max-width: 640px) {
  .legal-card { padding: 28px 22px; }
  .legal-h1 { font-size: 1.5rem; }
}
