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

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

.legal-page {
  padding-top: 96px;
  padding-bottom: 48px;
  background: #FCFAF5;
  color: #2C3038;
}

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

.legal-page h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 40px;
  font-weight: 700;
  color: #1A1D24;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.legal-page .legal-meta {
  font-size: 14px;
  color: #6B717D;
  margin-bottom: 36px;
}

.legal-page .legal-meta a {
  color: #E0883E;
  text-decoration: none;
}

.legal-page .legal-meta a:hover {
  text-decoration: underline;
}

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

.toc h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 700;
  color: #1A1D24;
  margin-bottom: 16px;
}

.toc ol {
  list-style: none;
  counter-reset: toc-counter;
  padding: 0;
}

.toc ol li {
  counter-increment: toc-counter;
  margin-bottom: 8px;
}

.toc ol li a {
  color: #2C3038;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
  display: block;
  padding: 4px 0;
  border-bottom: 1px solid #F5F2EB;
}

.toc ol li a::before {
  content: counter(toc-counter) ". ";
  color: #E0883E;
  font-weight: 600;
}

.toc ol li a:hover {
  color: #E0883E;
}

/* Legal content sections */
.legal-section {
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid #F5F2EB;
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 700;
  color: #1A1D24;
  margin-bottom: 16px;
  line-height: 1.3;
  padding-top: 8px;
}

.legal-section h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1A1D24;
  margin-top: 20px;
  margin-bottom: 10px;
}

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

.legal-section ul,
.legal-section ol {
  margin-left: 24px;
  margin-bottom: 14px;
}

.legal-section li {
  font-size: 15px;
  line-height: 1.8;
  color: #3D444D;
  margin-bottom: 8px;
}

.legal-section strong {
  color: #1A1D24;
}

.legal-section a {
  color: #E0883E;
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

/* Legal page footer */
.legal-footer {
  text-align: center;
  padding: 32px 0 0;
  margin-top: 20px;
  border-top: 2px solid #E5E0D8;
}

.legal-footer p {
  font-size: 14px;
  color: #6B717D;
  margin-bottom: 12px;
}

.legal-footer a {
  color: #E0883E;
  text-decoration: none;
  font-weight: 600;
}

.legal-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .legal-page h1 {
    font-size: 30px;
  }

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

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