/* === Legal Pages Stylesheet === */
/* Loaded by privacy.html and terms-of-service.html */

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

/* === Legal Layout === */
.legal-page {
  padding-top: 68px;
}

.legal-hero {
  background: linear-gradient(135deg, #1B2A3D 0%, #253B52 100%);
  padding: 60px 24px 50px;
  text-align: center;
}

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

.legal-hero .legal-date {
  font-size: 0.9rem;
  color: #C5BFB5;
}

.legal-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 60px;
}

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

.toc h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1B2A3D;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.toc ol {
  list-style: decimal;
  padding-left: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}

.toc ol li {
  margin-bottom: 2px;
}

.toc ol li a {
  font-size: 0.92rem;
  color: #3D8B6E;
  text-decoration: none;
  transition: color 0.25s ease;
  line-height: 1.6;
}

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

/* === Legal Content === */
.legal-content section {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #F0EBE3;
}

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

.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1B2A3D;
  margin-bottom: 14px;
  padding-top: 8px;
}

.legal-content h2 a {
  color: #C0604A;
  font-size: 0.85rem;
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.25s ease;
  font-weight: 400;
}

.legal-content h2:hover a {
  opacity: 1;
}

.legal-content p {
  font-size: 1rem;
  color: #4A4A4A;
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}

.legal-content ul li {
  font-size: 1rem;
  color: #4A4A4A;
  line-height: 1.8;
  margin-bottom: 6px;
  padding-left: 4px;
}

.legal-content ul li::marker {
  color: #C0604A;
}

.legal-content strong {
  color: #1B2A3D;
  font-weight: 600;
}

/* === Back to Home === */
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background-color: #1B2A3D;
  color: #F9F5F0;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s ease;
  margin-top: 32px;
}

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

/* === Legal Footer === */
.legal-footer {
  background-color: #1B2A3D;
  padding: 24px;
  text-align: center;
}

.legal-footer p {
  font-size: 0.85rem;
  color: #C5BFB5;
}

.legal-footer a {
  color: #F9F5F0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
}

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

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

  .toc {
    padding: 20px;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }

  .legal-body {
    padding: 32px 16px 40px;
  }

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

  .legal-content p,
  .legal-content ul li {
    font-size: 0.95rem;
  }
}
