/* ===== YogaCop Legal Pages Shared Stylesheet ===== */

/* Scope-isolation: prevent homepage section styling from bleeding into legal pages */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* Legal page header - MUST be strong contrast for title */
.legal-header {
  background-color: #171721;
  background-image:
    radial-gradient(ellipse at 15% 50%, #1E1E38 0%, transparent 50%),
    radial-gradient(ellipse at 85% 50%, #1A1A2E 0%, transparent 50%);
  padding: 60px 24px 48px;
  border-bottom: 4px solid #2A2A3A;
}

.legal-header-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.legal-title {
  font-size: 42px;
  font-weight: 800;
  color: #FFF9F4;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.legal-header-sub {
  font-size: 15px;
  color: #9090A0;
  font-weight: 500;
}

/* Legal main content */
.legal-main {
  background-color: #FFF9F4;
  padding: 56px 24px 60px;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

/* Table of Contents */
.toc {
  position: sticky;
  top: 100px;
  background-color: #FFFFFF;
  border: 1px solid #E0DCD5;
  border-radius: 14px;
  padding: 28px 24px;
}

.toc-title {
  font-size: 16px;
  font-weight: 700;
  color: #2B2B35;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #F0EBE3;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: toc-counter;
}

.toc-list li {
  counter-increment: toc-counter;
}

.toc-list a {
  display: block;
  font-size: 14px;
  color: #5C5C68;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
  line-height: 1.5;
}

.toc-list a:hover {
  color: #C47850;
  background: rgba(196, 120, 80, 0.06);
}

.toc-list a::before {
  content: counter(toc-counter) ". ";
  font-weight: 600;
  color: #C47850;
}

/* Legal content */
.legal-content {
  background-color: #FFFFFF;
  border: 1px solid #E0DCD5;
  border-radius: 14px;
  padding: 44px 40px;
}

.legal-content section {
  margin-bottom: 44px;
  padding: 0;
}

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

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #171721;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #F0EBE3;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.legal-content p {
  font-size: 16px;
  color: #4A4A55;
  line-height: 1.8;
  margin-bottom: 16px;
}

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

/* Legal footer */
.legal-footer {
  background-color: #12121A;
  padding: 28px 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-footer-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-footer p {
  font-size: 13px;
  color: #606070;
}

.legal-footer-link {
  font-size: 14px;
  color: #9090A0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.legal-footer-link:hover {
  color: #E09A74;
}

/* Responsive */
@media (max-width: 900px) {
  .legal-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .toc {
    position: static;
    padding: 22px 20px;
  }

  .toc-list {
    gap: 4px;
  }

  .legal-title {
    font-size: 34px;
  }

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

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

@media (max-width: 600px) {
  .legal-header {
    padding: 44px 20px 36px;
  }

  .legal-title {
    font-size: 28px;
  }

  .legal-main {
    padding: 36px 16px 44px;
  }

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

  .legal-content h2 {
    font-size: 18px;
  }

  .legal-content p {
    font-size: 15px;
  }

  .toc {
    padding: 20px 16px;
  }

  .toc-title {
    font-size: 15px;
  }

  .toc-list a {
    font-size: 13px;
  }
}
