/* ===== Legal Page Styles ===== */

.legal-page {
  padding-top: 90px;
  background-color: #F4F2EE;
}

/* Scope isolation: homepage style.css uses bare #services/#stats/#about/#contact
   ID selectors for section backgrounds, and the legal pages reuse those IDs
   (e.g. #contact, #services). Force every section on legal pages to stay on the
   light legal background so dark-on-dark text never happens. */
.legal-page section {
  background-color: transparent !important;
  padding: 0 !important;
  margin-bottom: 40px;
}

.legal-page section .section-header {
  display: none;
}

.legal-hero {
  background-color: #13141C;
  padding: 60px 0 50px;
  text-align: center;
}

.legal-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #F4F2EE;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.legal-hero p {
  color: #8A8F9A;
  font-size: 0.95rem;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px;
}

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

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

.legal-content h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background-color: #E84A2C;
  margin-top: 8px;
  border-radius: 2px;
}

.legal-content p {
  font-size: 0.97rem;
  color: #3A3C47;
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 12px 0 18px 24px;
  color: #3A3C47;
  font-size: 0.97rem;
  line-height: 1.7;
}

.legal-content ul li,
.legal-content ol li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: #13141C;
}

/* Table of Contents */
.legal-toc {
  background-color: #FFFFFF;
  border: 1px solid #DCD9D2;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 40px;
}

.legal-toc h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #13141C;
  margin-bottom: 14px;
}

.legal-toc ol {
  list-style: decimal;
  margin: 0;
  padding-left: 22px;
}

.legal-toc ol li {
  margin-bottom: 6px;
  font-size: 0.94rem;
  line-height: 1.6;
}

.legal-toc ol li a {
  color: #E84A2C;
  transition: color 0.2s ease;
}

.legal-toc ol li a:hover {
  color: #C93D22;
}

/* Legal Footer */
.legal-footer {
  background-color: #13141C;
  border-top: 1px solid #2A2B36;
  padding: 30px 0;
  text-align: center;
}

.legal-footer p {
  color: #6A6E7A;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.legal-footer a {
  color: #E84A2C;
  font-weight: 600;
}

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

.legal-footer .footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 8px;
}

.legal-footer .footer-nav a {
  color: #8A8F9A;
  font-size: 0.9rem;
  font-weight: 400;
}

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

/* Responsive */
@media (max-width: 768px) {
  .legal-hero h1 {
    font-size: 1.8rem;
  }

  .legal-content {
    padding: 32px 18px;
  }

  .legal-toc {
    padding: 20px 20px;
  }

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