/* ===== LEGAL PAGES STYLESHEET ===== */

/* Legal pages load ONLY this stylesheet (not style.css), so the body must get its dark background here */
.legal-page {
  background-color: #050508;
  color: #E2E8F0;
}

/* Scope isolation: guarantee legal sections are not polluted by homepage styles */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* Legal header */
.legal-header {
  background: linear-gradient(135deg, #050508 0%, #0C0C1A 100%);
  padding: 80px 32px 48px;
  text-align: center;
  border-bottom: 1px solid rgba(226, 232, 240, 0.06);
}

.legal-header .container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-header h1 {
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #F472B6 0%, #FBBF24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.legal-header .last-updated {
  font-size: 0.875rem;
  color: #64748B;
  font-weight: 500;
}

.legal-header .legal-breadcrumb {
  margin-top: 12px;
}

.legal-header .legal-breadcrumb a {
  font-size: 0.875rem;
  color: #F472B6;
  font-weight: 500;
  transition: color 0.25s ease;
}

.legal-header .legal-breadcrumb a:hover {
  color: #FBBF24;
}

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

.legal-content {
  padding: 48px 0 64px;
}

/* Table of Contents */
.toc {
  background: #0C0C1A;
  border: 1px solid rgba(226, 232, 240, 0.06);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 48px;
}

.toc h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #F3F4F6;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.06);
}

.toc ol {
  list-style: decimal;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc ol li {
  color: #64748B;
  font-size: 0.9rem;
}

.toc ol li a {
  color: #94A3B8;
  font-weight: 500;
  transition: color 0.25s ease;
  font-size: 0.9rem;
  display: inline;
}

.toc ol li a:hover {
  color: #F472B6;
}

/* Legal sections */
.legal-content section {
  margin-bottom: 48px;
}

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

.legal-content section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #F3F4F6;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.06);
}

.legal-content section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #E2E8F0;
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-content section p {
  font-size: 0.95rem;
  color: #94A3B8;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content section ul,
.legal-content section ol {
  padding-left: 24px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-content section li {
  font-size: 0.95rem;
  color: #94A3B8;
  line-height: 1.7;
}

.legal-content section a {
  color: #F472B6;
  font-weight: 500;
  transition: color 0.25s ease;
}

.legal-content section a:hover {
  color: #FBBF24;
}

.legal-content .back-to-top {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: #64748B;
  font-weight: 500;
  transition: color 0.25s ease;
}

.legal-content .back-to-top:hover {
  color: #F472B6;
}

/* Legal footer */
.legal-footer {
  padding: 40px 32px;
  background: #030306;
  border-top: 1px solid rgba(226, 232, 240, 0.04);
  text-align: center;
}

.legal-footer .container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.legal-footer .footer-brand {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #F472B6 0%, #FBBF24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-footer a {
  font-size: 0.875rem;
  color: #64748B;
  font-weight: 500;
  transition: color 0.25s ease;
}

.legal-footer a:hover {
  color: #F472B6;
}

.legal-footer .footer-copy {
  font-size: 0.8rem;
  color: #475569;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-header {
    padding: 64px 20px 36px;
  }

  .legal-header h1 {
    font-size: 2rem;
  }

  .legal-content {
    padding: 32px 0 48px;
  }

  .legal-content .container {
    padding: 0 20px;
  }

  .toc {
    padding: 24px;
  }

  .legal-content section h2 {
    font-size: 1.25rem;
  }
}
