/* ═══════════════════════════════════════════
   legal.css  –  Terms · Privacy · Sitemap
   ═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: #0a0d12;
  color: #e2e8f0;
  overflow-x: hidden;
}

/* ── Hero ── */
.legal-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.legal-hero {
  padding: 120px 0 48px;
  text-align: center;
}
.legal-eyebrow {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #00d9ff;
  background: rgba(0,217,255,.08);
  border: 1px solid rgba(0,217,255,.18);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.legal-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.1;
  margin-bottom: 14px;
}
.legal-meta {
  font-size: 13px;
  color: #475569;
}
.legal-meta strong { color: #64748b; }

/* ── Two-column layout ── */
.legal-layout {
  display: flex;
  gap: 48px;
  padding-bottom: 100px;
  align-items: flex-start;
}

/* ── Sticky TOC sidebar ── */
.legal-toc {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 96px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 20px;
}
.legal-toc__label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #334155;
  margin-bottom: 12px;
}
.legal-toc ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.legal-toc a {
  display: block;
  font-size: 13px;
  color: #475569;
  text-decoration: none;
  padding: 5px 8px 5px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: color .15s, border-color .15s, background .15s;
  line-height: 1.45;
}
.legal-toc a:hover { color: #cbd5e1; background: rgba(255,255,255,.03); }
.legal-toc a.active {
  color: #00d9ff;
  border-left-color: #00d9ff;
  background: rgba(0,217,255,.06);
}

/* ── Main content ── */
.legal-content { flex: 1; min-width: 0; }

.legal-lead {
  font-size: 16px;
  line-height: 1.8;
  color: #64748b;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.legal-content section {
  margin-bottom: 48px;
  scroll-margin-top: 96px;
}
.legal-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.legal-content h2 span {
  font-size: 11px;
  font-weight: 700;
  color: #00d9ff;
  background: rgba(0,217,255,.08);
  border: 1px solid rgba(0,217,255,.18);
  padding: 3px 9px;
  border-radius: 100px;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.legal-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #94a3b8;
  margin-bottom: 12px;
}
.legal-content ul, .legal-content ol {
  padding-left: 20px;
  margin-bottom: 12px;
}
.legal-content li {
  font-size: 15px;
  line-height: 1.75;
  color: #94a3b8;
  margin-bottom: 6px;
}
.legal-content a {
  color: #00d9ff;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,217,255,.2);
  transition: border-color .15s;
}
.legal-content a:hover { border-bottom-color: #00d9ff; }
.legal-content strong { color: #e2e8f0; }

/* Footer links row */
.legal-footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 13px;
}
.legal-footer-links a { color: #475569; text-decoration: none; border-bottom: none; transition: color .15s; }
.legal-footer-links a:hover { color: #00d9ff; }
.legal-footer-links span { color: #1e293b; }

/* ══════════════════════════════════════════
   SITEMAP SPECIFIC
══════════════════════════════════════════ */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding-bottom: 100px;
}
.sitemap-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 24px;
  transition: border-color .2s, transform .2s;
}
.sitemap-card:hover {
  border-color: color-mix(in srgb, var(--sc) 30%, transparent);
  transform: translateY(-2px);
}
.sitemap-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.sitemap-card__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--sc) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--sc) 22%, transparent);
  color: var(--sc);
  flex-shrink: 0;
}
.sitemap-card__icon svg { width: 16px; height: 16px; }
.sitemap-card__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
}
.sitemap-card ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sitemap-card a {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: #64748b;
  text-decoration: none;
  padding: 4px 0;
  transition: color .15s;
}
.sitemap-card a::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--sc);
  opacity: .5;
  flex-shrink: 0;
}
.sitemap-card a:hover { color: var(--sc); }
.sitemap-card a:hover::before { opacity: 1; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .legal-layout { flex-direction: column; gap: 32px; }
  .legal-toc { width: 100%; position: static; }
  .legal-toc ul { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .legal-toc a { border-left: none; border-bottom: 2px solid transparent; border-radius: 6px; padding: 4px 10px; }
  .legal-toc a.active { border-bottom-color: #00d9ff; border-left-color: transparent; }
}
@media (max-width: 640px) {
  .legal-hero { padding: 100px 0 36px; }
  .sitemap-grid { grid-template-columns: 1fr; }
}
