/* ===== LEGAL PAGES STYLESHEET ===== */
/* Loaded by privacy.html and terms-of-service.html */

/* Scope isolation rule — guarantee legal pages are never polluted by homepage section styling */
.legal-page section {
  background-color: transparent !important;
}

/* ===== LEGAL CONTAINER ===== */
.legal-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 120px 24px 40px;
}

.legal-title {
  font-size: 38px;
  font-weight: 800;
  color: #1D1D1D;
  margin-bottom: 8px;
}

.legal-effective {
  font-size: 14px;
  color: #6E7E7C;
  margin-bottom: 40px;
}

/* ===== TABLE OF CONTENTS ===== */
.toc {
  background-color: #F3EFE9;
  border: 1px solid #E5DFD8;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 48px;
}

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

.toc-list {
  list-style: decimal;
  padding-left: 20px;
  columns: 2;
  column-gap: 40px;
}

.toc-list li {
  margin-bottom: 8px;
  padding-left: 4px;
  font-size: 14px;
  line-height: 1.6;
}

.toc-list a {
  color: #263C3F;
  text-decoration: none;
  transition: color 0.2s ease;
}

.toc-list a:hover {
  color: #C05A4A;
  text-decoration: underline;
}

/* ===== LEGAL SECTIONS ===== */
.legal-page section {
  margin-bottom: 48px;
  scroll-margin-top: 90px;
}

.legal-page section h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1D1D1D;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #EDE4D8;
}

.legal-page section h2::before {
  content: '# ';
  color: #D4914A;
  font-weight: 600;
}

.legal-page section p {
  font-size: 16px;
  color: #3A3A3A;
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-page section p strong {
  color: #1D1D1D;
}

/* ===== BACK LINK ===== */
.legal-back {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #EDE4D8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .legal-title {
    font-size: 28px;
  }
  .legal-container {
    padding: 110px 20px 30px;
  }
  .toc-list {
    columns: 1;
  }
  .toc {
    padding: 22px 20px;
  }
  .legal-page section h2 {
    font-size: 20px;
  }
}
