/* ── Legal Page Layout ──────────────────────────────────────── */
.legal-page {
  min-height: 100vh;
  background: var(--black);
  padding-top: 120px;
  padding-bottom: 80px;
}

.legal-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  transition: color .2s;
}
.legal-back:hover { color: #fff; }

.legal-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.legal-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 60%, var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.legal-meta strong {
  color: var(--text-secondary);
  font-weight: 600;
  margin-right: 6px;
}

/* ── Body ───────────────────────────────────────────────────── */
.legal-body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

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

.legal-body strong {
  color: #fff;
  font-weight: 600;
}

.legal-body h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  color: #fff;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.legal-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-body h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--gold-light);
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-body ul, .legal-body ol {
  margin: 0 0 18px 0;
  padding-left: 24px;
}

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

.legal-body a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .2s;
}
.legal-body a:hover { opacity: .75; }

/* Highlight boxes */
.legal-callout {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  font-size: 14px;
}

.legal-callout strong {
  color: var(--gold-light);
  font-weight: 700;
}

.legal-contact {
  margin-top: 48px;
  padding: 28px;
  background: var(--surface2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
}

.legal-contact h3 {
  margin-top: 0;
  color: #fff;
}

/* ── TOC (sticky) ───────────────────────────────────────────── */
.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-toc {
  position: sticky;
  top: 100px;
  align-self: start;
  font-size: 13px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.legal-toc-title {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.legal-toc a {
  display: block;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.4;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -12px;
  transition: color .2s, border-color .2s;
}
.legal-toc a:hover {
  color: #fff;
  border-left-color: var(--gold);
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .legal-page {
    padding-top: 100px;
    padding-bottom: 60px;
  }
  .legal-title {
    font-size: 32px;
  }
  .legal-body {
    font-size: 14px;
  }
  .legal-body h2 {
    font-size: 19px;
  }
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .legal-toc {
    position: static;
    max-height: none;
    padding: 16px;
    background: var(--surface2);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.06);
  }
}
