/* ── LEGAL PAGES (privacy.html / terms.html) ─────────────────────────────── */

/* ── PAGE HERO ── */
.legal-page-hero { padding-bottom: 64px; }

.legal-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.legal-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(247,201,72,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,201,72,.025) 1px, transparent 1px);
  background-size: 56px 56px;
}
.legal-hero-glow {
  position: absolute;
  top: -40%; left: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(14,207,205,.05) 0%, transparent 65%);
}

.legal-hero-content {
  position: relative;
  z-index: 1;
}

/* ── LAST UPDATED BADGE ── */
.legal-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(247,201,72,.08);
  border: 1px solid rgba(247,201,72,.18);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: var(--yellow);
  letter-spacing: .03em;
  margin-bottom: 20px;
}
.legal-date-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

/* ── MAIN ── */
.legal-main {
  padding-top: 64px;
  padding-bottom: 100px;
}

/* ── LAYOUT: TOC + CONTENT ── */
.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}

/* ── TABLE OF CONTENTS ── */
.legal-toc {
  position: sticky;
  top: 88px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.legal-toc-title {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.legal-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.legal-toc-list a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: background .15s, color .15s;
  line-height: 1.4;
}
.legal-toc-list a:hover {
  background: rgba(247,201,72,.06);
  color: var(--text);
}
.legal-toc-num {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  flex-shrink: 0;
  min-width: 16px;
}

/* ── SECTIONS ── */
.legal-section {
  padding: 0;
  animation: legal-fade-up .5s ease both;
}
@keyframes legal-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.legal-section:nth-child(1)  { animation-delay: .00s; }
.legal-section:nth-child(3)  { animation-delay: .04s; }
.legal-section:nth-child(5)  { animation-delay: .08s; }
.legal-section:nth-child(7)  { animation-delay: .12s; }
.legal-section:nth-child(9)  { animation-delay: .16s; }
.legal-section:nth-child(11) { animation-delay: .20s; }
.legal-section:nth-child(13) { animation-delay: .24s; }
.legal-section:nth-child(15) { animation-delay: .28s; }
.legal-section:nth-child(17) { animation-delay: .32s; }
.legal-section:nth-child(19) { animation-delay: .36s; }

/* ── SECTION HEADER ── */
.legal-section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.legal-section-num {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: .1em;
  background: rgba(247,201,72,.1);
  border: 1px solid rgba(247,201,72,.2);
  border-radius: 6px;
  padding: 2px 8px;
}
.legal-section-label {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.legal-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.25;
}

/* ── BODY TEXT ── */
.legal-section-body p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 14px;
}
.legal-section-body p:last-child { margin-bottom: 0; }
.legal-section-body strong {
  color: var(--text);
  font-weight: 600;
}
.legal-section-body a {
  color: var(--yellow);
  text-decoration: none;
  border-bottom: 1px solid rgba(247,201,72,.3);
  transition: border-color .15s;
}
.legal-section-body a:hover { border-color: var(--yellow); }

/* ── BULLET LISTS ── */
.legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 16px;
}
.legal-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.legal-list li::before {
  content: '—';
  color: var(--yellow);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 12px;
}

/* ── SUB-LISTS ── */
.legal-sublist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 10px 0 10px 24px;
}
.legal-sublist li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.legal-sublist li::before {
  content: '·';
  color: var(--text-dim);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── VIOLATION CALLOUT ── */
.legal-callout {
  background: rgba(255,71,87,.05);
  border: 1px solid rgba(255,71,87,.15);
  border-left: 3px solid var(--red);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 14px 0;
}
.legal-callout p {
  margin: 0 !important;
  font-size: 14px !important;
  color: rgba(228,232,245,.75) !important;
}
.legal-callout-label {
  font-family: 'Poppins', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

/* ── EMAIL HIGHLIGHT ── */
.legal-email {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(247,201,72,.07);
  border: 1px solid rgba(247,201,72,.2);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--yellow);
  text-decoration: none !important;
  border-bottom: none !important;
  transition: background .15s;
}
.legal-email:hover { background: rgba(247,201,72,.12) !important; }

/* ── DIVIDER ── */
.legal-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 48px 0;
  position: relative;
}
.legal-divider::before {
  content: '§';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 10px;
  background: var(--bg-deep);
  padding-right: 12px;
  line-height: 1;
  font-family: 'Poppins', sans-serif;
}

/* ── FOOTER ── */
#footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
    display: none; /* hide on mobile — sections already visible */
  }
}
@media (max-width: 768px) {
  .legal-main { padding-top: 40px; padding-bottom: 64px; }
  .legal-divider { margin: 36px 0; }
}
