/* ============================================================
   Naturcare — Legal Pages Style Sheet
   Loaded by privacy.html and terms-of-service.html only.
   Light theme · herb-green family
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-size: 16px;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.75;
  color: #22302A;
  background: #FAF7F2;
  overflow-x: hidden;
}

/* ---------- Legal header ---------- */

.legal-header {
  background: #4E7A52;
  padding: 70px 24px 56px;
}

.legal-header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-kicker {
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.legal-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 14px;
}

.legal-updated {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
}

/* ---------- Layout ---------- */

.legal-content {
  background: #FAF7F2;
  padding-bottom: 40px;
}

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

/* ---------- Table of contents ---------- */

.toc {
  max-width: 860px;
  margin: 34px auto 44px;
  padding: 0 24px;
}

.toc h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  color: #2E4032;
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 6px 30px;
}

.toc li {
  border-bottom: 1px solid #4E7A52;
}

.toc a {
  display: block;
  color: #2E4032;
  font-size: 15px;
  font-weight: 600;
  padding: 9px 2px;
}

.toc a:hover {
  color: #4E7A52;
  text-decoration: underline;
}

/* ---------- Content sections ---------- */

/* Scope isolation: keep legal sections on the cream body, never
   bleed background colors from any other stylesheet onto them. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

.legal-content section {
  padding: 34px 0 10px;
  border-top: 1px solid #4E7A52;
}

.legal-content section:first-of-type {
  border-top: none;
}

.legal-content section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 700;
  color: #2E4032;
  margin-bottom: 14px;
}

.legal-content section p {
  color: #22302A;
  font-size: 16px;
  margin-bottom: 14px;
}

/* ---------- Legal footer ---------- */

.legal-footer {
  background: #FAF7F2;
  border-top: 2px solid #4E7A52;
  text-align: center;
  padding: 28px 24px 34px;
}

.legal-footer p {
  color: #2E4032;
  font-size: 14px;
  margin-bottom: 8px;
}

.legal-footer a {
  color: #4E7A52;
  font-weight: 700;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 680px) {
  .legal-header {
    padding: 50px 16px 40px;
  }

  .legal-header h1 {
    font-size: 32px;
  }

  .container,
  .toc,
  .legal-header-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

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