/* ===== LEGAL.CSS — Shared styles for privacy + terms pages ===== */

/* Scope isolation — prevent homepage section styles from polluting legal pages */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-page { background: #11161B; color: #F7F5F2; }

/* Legal content container */
.legal-page .legal-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Table of Contents */
.legal-toc {
  background: #1A1F28;
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 40px;
  border: 1px solid rgba(255,255,255,0.08);
}

.legal-toc h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #A4D65D;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.legal-toc ul {
  columns: 2;
  column-gap: 32px;
}

.legal-toc li {
  margin-bottom: 8px;
  break-inside: avoid;
}

.legal-toc a {
  font-size: 0.88rem;
  color: #C4B9A6;
  text-decoration: none;
  transition: color 0.25s;
  display: inline-block;
  padding: 2px 0;
}

.legal-toc a:hover { color: #A4D65D; }

@media (max-width: 600px) {
  .legal-toc ul { columns: 1; }
}

/* Legal page header */
.legal-page-header {
  background: linear-gradient(160deg, #1A2130 0%, #11161B 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 100px 0 50px;
  text-align: center;
}

.legal-page-header h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #A4D65D;
  letter-spacing: -0.5px;
  max-width: 700px;
  margin: 0 auto 12px;
}

.legal-page-header .last-updated {
  font-size: 0.88rem;
  color: #8A8D96;
}

/* Legal content body */
.legal-content {
  padding: 50px 0 60px;
  background: #11161B;
}

.legal-content section {
  margin-bottom: 36px;
}

.legal-content section:last-child { margin-bottom: 0; }

.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #A4D65D;
  margin-bottom: 14px;
  padding-top: 10px;
  line-height: 1.35;
}

.legal-content p {
  font-size: 0.96rem;
  color: #C4B9A6;
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 8px 0 16px 22px;
  color: #C4B9A6;
}

.legal-content li {
  font-size: 0.94rem;
  line-height: 1.75;
  margin-bottom: 6px;
}

.legal-content a {
  color: #A4D65D;
  text-decoration: underline;
}

.legal-content a:hover { color: #7FD13B; }

.legal-content strong { color: #F7F5F2; }

/* Back to top / home link */
.back-home {
  text-align: center;
  margin-top: 50px;
  padding: 30px 0 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.back-home a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  background: #262D38;
  color: #A4D65D;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s;
}

.back-home a:hover {
  background: rgba(164, 214, 93, 0.12);
  border-color: #A4D65D;
}

/* Site nav on legal pages (thin top bar) */
.legal-page .site-nav {
  background: rgba(17, 22, 27, 0.94);
}
