/* === LEGAL PAGES SHARED STYLES === */

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

/* === PAGE BASE === */
.legal-page {
  background: #0B0B10;
  color: #F8FAFC;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  padding-top: 90px;
}

/* === LEGAL NAV === */
.legal-header {
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
  padding: 60px 0 48px;
  text-align: center;
  border-bottom: 1px solid rgba(99,102,241,.3);
}
.legal-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -.02em;
  margin: 0 auto;
}
.legal-header .legal-meta {
  color: #FFFFFF;
  font-size: .9rem;
  margin-top: 10px;
}

/* === CONTENT CONTAINER === */
.legal-content {
  padding: 56px 0 80px;
  background: #0B0B10;
}
.legal-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === TABLE OF CONTENTS === */
.toc {
  background: #1A1A24;
  border: 1px solid #1E293B;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 48px;
}
.toc h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #6366F1;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.toc ol {
  list-style: decimal;
  padding-left: 20px;
}
.toc ol li {
  margin-bottom: 8px;
  font-size: .95rem;
}
.toc ol li a {
  color: #94A3B8;
  text-decoration: none;
  transition: color .2s;
}
.toc ol li a:hover {
  color: #22D3EE;
}

/* === SECTION STYLES === */
.legal-section {
  margin-bottom: 44px;
}
.legal-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #22D3EE;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1E293B;
  letter-spacing: -.01em;
}
.legal-section p {
  color: #94A3B8;
  font-size: .98rem;
  line-height: 1.8;
  margin-bottom: 14px;
}
.legal-section ul,
.legal-section ol {
  color: #94A3B8;
  font-size: .98rem;
  line-height: 1.8;
  padding-left: 24px;
  margin-bottom: 14px;
}
.legal-section ul li,
.legal-section ol li {
  margin-bottom: 6px;
}
.legal-section strong {
  color: #E2E8F0;
}

/* === BACK LINK === */
.legal-back {
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid #1E293B;
}
.legal-back a {
  color: #6366F1;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: color .2s;
}
.legal-back a:hover {
  color: #22D3EE;
}

/* === LEGAL FOOTER === */
.legal-footer {
  background: #1A1A24;
  border-top: 1px solid #1E293B;
  padding: 32px 0;
  text-align: center;
  color: #94A3B8;
  font-size: .85rem;
}
.legal-footer a {
  color: #6366F1;
  text-decoration: none;
}
.legal-footer a:hover {
  color: #22D3EE;
}
.legal-footer p {
  margin-bottom: 6px;
}
.legal-footer .legal-footer-links {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-header h1 { font-size: 2rem; }
  .legal-content .container { padding: 0 16px; }
  .toc { padding: 20px 20px; }
}
