/* ===== Legal Pages Stylesheet ===== */

.legal-page {
  background-color: #FFFFFF;
  color: #1A1A24;
  font-size: 16px;
  line-height: 1.75;
}

/* ===== Legal Page Header ===== */
.legal-header {
  background: linear-gradient(135deg, #1B1D3A 0%, #252850 60%, #1e2d5c 100%);
  color: #FFFFFF;
  padding: 60px 0 48px;
  text-align: center;
  margin-top: 72px;
}

.legal-header h1 {
  font-size: 40px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.legal-header p {
  font-size: 16px;
  color: #CBD5E1;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Legal Content Wrapper ===== */
.legal-content {
  padding: 48px 0 60px;
}

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

/* ===== Table of Contents ===== */
.toc {
  background-color: #F8F5F0;
  border: 1px solid #E5E0D8;
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 40px;
}

.toc h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1B1D3A;
  margin-bottom: 16px;
}

.toc ol {
  list-style: decimal;
  padding-left: 20px;
}

.toc ol li {
  margin-bottom: 8px;
  font-size: 15px;
}

.toc ol li a {
  color: #C5683A;
  text-decoration: none;
  transition: color 0.2s ease;
}

.toc ol li a:hover {
  color: #A8542E;
  text-decoration: underline;
}

/* ===== Legal Body Content ===== */
.legal-body {
  font-size: 16px;
  line-height: 1.8;
  color: #1A1A24;
}

.legal-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1B1D3A;
  margin-top: 36px;
  margin-bottom: 14px;
  padding-top: 16px;
  border-top: 1px solid #E5E0D8;
}

.legal-body h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.legal-body p {
  margin-bottom: 16px;
  color: #374151;
}

.legal-body ul,
.legal-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-body ul {
  list-style: disc;
}

.legal-body ol {
  list-style: decimal;
}

.legal-body li {
  margin-bottom: 8px;
  color: #374151;
}

.legal-body strong {
  color: #1B1D3A;
}

.legal-body a {
  color: #C5683A;
  text-decoration: underline;
}

.legal-body a:hover {
  color: #A8542E;
}

/* ===== Back to Home Link ===== */
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding: 12px 24px;
  background-color: #C5683A;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.legal-back:hover {
  background-color: #A8542E;
  color: #FFFFFF;
}

/* ===== Scope Isolation: Prevent homepage section styles from leaking ===== */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-page .legal-content div {
  background-color: transparent !important;
}

/* ===== Compact Footer for Legal Pages ===== */
.legal-page .site-footer {
  padding: 28px 0 24px;
}

/* ===== Updated / Effective Date ===== */
.legal-meta {
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 32px;
  font-style: normal;
  padding-bottom: 16px;
  border-bottom: 1px solid #E5E0D8;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .legal-header {
    padding: 48px 0 36px;
    margin-top: 72px;
  }

  .legal-header h1 {
    font-size: 28px;
  }

  .legal-body h2 {
    font-size: 20px;
  }

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