/* =============================================
   TopShine — Legal Pages Stylesheet
   Loaded by: privacy.html, terms-of-service.html
   ============================================= */

/* Scope isolation: prevent homepage section background pollution.
   ONLY inside .legal-content — the header/footer sections keep their own backgrounds. */
.legal-page .legal-content section {
  background-color: transparent !important;
  color: inherit !important;
}

.legal-page .hero-section,
.legal-page .about-section,
.legal-page .services-section,
.legal-page .features-section,
.legal-page .process-section,
.legal-page .testimonials-section,
.legal-page .cta-section,
.legal-page .contact-section {
  background-color: transparent !important;
}

/* ========== LEGAL PAGE HEADER ========== */
.legal-page-header {
  background-color: #1B1F2B;
  padding: 120px 0 60px;
  text-align: center;
}

.legal-page-header h1 {
  color: #F6F2EC;
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.legal-page-header .last-updated {
  color: #8FA4B0;
  font-size: 0.95rem;
}

.legal-page-header .back-home {
  display: inline-block;
  margin-top: 24px;
  color: #D3A16F;
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.25s ease;
}

.legal-page-header .back-home:hover {
  color: #F6F2EC;
}

/* ========== LEGAL PAGE BODY ========== */
.legal-content {
  padding: 60px 0 40px;
  background-color: #F6F2EC;
}

.legal-content .container {
  max-width: 820px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.45rem;
  color: #1B1F2B;
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #E8E3DB;
  scroll-margin-top: 90px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  color: #3D4555;
  line-height: 1.85;
  margin-bottom: 16px;
  font-size: 1rem;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: #3D4555;
  line-height: 1.85;
}

.legal-content ul li,
.legal-content ol li {
  margin-bottom: 8px;
  font-size: 1rem;
}

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

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

.legal-content strong {
  color: #1B1F2B;
}

.legal-content a {
  color: #5B7553;
  font-weight: 600;
  text-decoration: underline;
}

.legal-content a:hover {
  color: #3D5A6E;
}

/* ========== TABLE OF CONTENTS ========== */
nav.toc {
  background-color: #FFFFFF;
  border: 1px solid #E8E3DB;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 40px;
  box-shadow: 0 2px 12px rgba(27, 31, 43, 0.04);
}

nav.toc h3 {
  font-size: 1.1rem;
  color: #1B1F2B;
  margin-bottom: 16px;
  font-weight: 700;
}

nav.toc ol {
  list-style: decimal;
  padding-left: 22px;
  margin-bottom: 0;
}

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

nav.toc ol li a {
  color: #3D5A6E;
  font-size: 0.95rem;
  transition: color 0.25s ease;
  text-decoration: none;
  font-weight: 500;
}

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

/* ========== COMPACT FOOTER FOR LEGAL PAGES ========== */
.legal-footer {
  background-color: #121620;
  padding: 28px 0;
  text-align: center;
}

.legal-footer .container {
  max-width: 820px;
}

.legal-footer p {
  color: #6B737F;
  font-size: 0.85rem;
  line-height: 1.6;
}

.legal-footer a {
  color: #D3A16F;
  font-weight: 600;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .legal-page-header {
    padding: 100px 0 40px;
  }
  .legal-page-header h1 {
    font-size: 1.9rem;
  }
  .legal-content {
    padding: 40px 0 24px;
  }
  .legal-content h2 {
    font-size: 1.25rem;
    margin: 36px 0 12px;
  }
  nav.toc {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .legal-page-header h1 {
    font-size: 1.5rem;
  }
  .legal-content h2 {
    font-size: 1.1rem;
  }
}
