/* =========================================================================
   Legal stylesheet for privacy.html and terms-of-service.html (LIGHT theme)
   Loaded ONLY with /css/legal.css - never style.css.
   Palette matches the site: porcelain-eggshell #F4F6F3, pine-ink #2F3A33,
   huang-madder (darkened) #B3541E headings, sage #55705C accents.
   ========================================================================= */

.legal-page {
  background-color: #F4F6F3;
  color: #3E4A42;
  margin: 0;
  padding: 0;
  line-height: 1.8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

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

.legal-page a {
  color: #3F5747;
  text-decoration: none;
  border-bottom: 1px solid #C2622A;
}
.legal-page a:hover {
  color: #A84D1E;
  border-bottom-color: #A84D1E;
}

/* ---------- Legal header (div/header, NEVER a section) ---------- */
.legal-header {
  background-color: #FBFAF4;
  border-bottom: 1px solid #DDE2D8;
}
.legal-header .header-bar {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 24px 30px;
}
.legal-header h1 {
  color: #B3541E;
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 8px;
  font-weight: 700;
}
.legal-header .legal-meta {
  color: #55705C;
  font-family: Verdana, "Geneva", sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
}
.legal-header .legal-nav {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-family: Verdana, sans-serif;
  font-size: 13px;
}
.legal-header .legal-nav a {
  border-bottom: none;
  color: #3F5747;
}
.legal-header .legal-nav a:hover {
  color: #A84D1E;
  border-bottom: 1px solid #A84D1E;
}

/* ---------- Layout ---------- */
.legal-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 44px 0 10px;
  align-items: start;
}
@media (max-width: 820px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Table of contents ---------- */
.legal-toc {
  position: sticky;
  top: 20px;
}
@media (max-width: 820px) {
  .legal-toc {
    position: static;
  }
}
.legal-toc dt {
  font-family: Verdana, sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #55705C;
  margin-bottom: 12px;
}
.legal-toc dd {
  margin-bottom: 8px;
}
.legal-toc a {
  display: block;
  font-family: Verdana, sans-serif;
  font-size: 13px;
  color: #3F5747;
  border-bottom: none;
  padding: 5px 0;
  border-left: 2px solid #DDE2D8;
  padding-left: 10px;
}
.legal-toc a:hover {
  color: #A84D1E;
  border-left-color: #C2622A;
}

/* ---------- Content ---------- */
.legal-content {
  min-width: 0;
}
.legal-content .intro {
  margin-bottom: 34px;
  color: #4A564E;
}
.legal-content section {
  margin-bottom: 34px;
  background-color: transparent !important;
}
.legal-content h2 {
  font-size: 24px;
  color: #B3541E;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #DDE2D8;
  font-weight: 700;
  scroll-margin-top: 20px;
}
.legal-content h3 {
  font-size: 19px;
  color: #55705C;
  margin: 22px 0 8px;
  font-weight: 700;
}
.legal-content p {
  margin-bottom: 14px;
  color: #3E4A42;
}
.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 22px;
  color: #3E4A42;
}
.legal-content li {
  margin-bottom: 8px;
}
.legal-content .back-top {
  font-family: Verdana, sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
}

/* ---------- Scope isolation ---------- */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- Footer ---------- */
.legal-footer {
  background-color: #55705C;
  color: #FBFAF4;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}
.legal-footer-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 24px 30px;
  position: relative;
  z-index: 1;
}
.legal-footer p {
  color: #E5EBE6;
  font-family: Verdana, sans-serif;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 8px;
}
.legal-footer a {
  color: #F0C9A6;
  border-bottom-color: #C2622A;
}
.legal-footer a:hover {
  color: #FFFFFF;
  border-bottom-color: #FFFFFF;
}

/* ensure no leftover sticky scraping */
nav.legal-nav {
  position: static !important;
}
