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

.legal-page {
  background: #faf8f2;
  color: #1a1d2e;
  font-size: 16px;
  line-height: 1.8;
}

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

.legal-page .legal-navbar {
  background: #0f1124;
  border-bottom: 1px solid #1c1f38;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.legal-page .legal-navbar .legal-nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f6f1e9;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.legal-page .legal-navbar .legal-nav-logo span {
  color: #e8543d;
}

.legal-page .legal-navbar .legal-nav-home {
  color: #c5c3d0;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.legal-page .legal-navbar .legal-nav-home:hover {
  color: #e8543d;
}

/* ========== LEGAL HERO ========== */
.legal-page .legal-hero {
  background: #0f1124;
  padding: 120px 48px 64px;
  text-align: center;
  border-bottom: 1px solid #14172e;
}

.legal-page .legal-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: #f6f1e9;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.legal-page .legal-hero .legal-date {
  color: #6e6b84;
  font-size: 0.9rem;
}

/* ========== LEGAL CONTENT ========== */
.legal-page .legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 48px 80px;
}

.legal-page .legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f1124;
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8e2d6;
}

.legal-page .legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-page .legal-content p {
  color: #3a3e50;
  margin-bottom: 16px;
  line-height: 1.85;
}

.legal-page .legal-content ul,
.legal-page .legal-content ol {
  margin: 0 0 20px 24px;
  color: #3a3e50;
  line-height: 1.85;
}

.legal-page .legal-content li {
  margin-bottom: 8px;
}

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

.legal-page .legal-content a:hover {
  color: #d14430;
}

/* ========== TABLE OF CONTENTS ========== */
.legal-page .legal-toc {
  background: #f0ebe0;
  border: 1px solid #e0dbd0;
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 48px;
}

.legal-page .legal-toc h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f1124;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.legal-page .legal-toc ol {
  list-style: decimal;
  margin-left: 20px;
  color: #5c6378;
  line-height: 2;
}

.legal-page .legal-toc ol li a {
  color: #0f1124;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

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

/* ========== LEGAL FOOTER ========== */
.legal-page .legal-footer {
  background: #080916;
  border-top: 1px solid #14172e;
  padding: 32px 48px;
  text-align: center;
}

.legal-page .legal-footer p {
  color: #4a4660;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.legal-page .legal-footer a {
  color: #6e6b84;
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s ease;
}

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

.legal-page .legal-footer .legal-footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 6px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .legal-page .legal-hero {
    padding: 100px 24px 48px;
  }

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

  .legal-page .legal-content {
    padding: 40px 24px 60px;
  }

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

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

  .legal-page .legal-footer {
    padding: 24px 20px;
  }
}
