/* ============================================================
   Shared legal stylesheet — privacy.html & terms-of-service.html
   Legal pages load ONLY this stylesheet.
   Strong contrast, solid hex only, no rgba, no text gradients.
   Palette mirrors the scoring hut motif.
   ============================================================ */

html, body {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #25342A;
  background: #F1F4EA;
}
body * {
  box-sizing: border-box;
}

.legal-page {
  background: #F1F4EA;
}

/* ---- scope isolation: content sections transparent, page shows its own bg ---- */
.legal-page .legal-content section {
  background: transparent !important;
}

a {
  color: #B33B30;
  text-decoration: underline;
}
a:hover {
  color: #7a2820;
}

/* ---- Legal header: solid band + strong h1 contrast ---- */
.legal-hdr {
  background: #4E4034;
  border-bottom: 4px solid #B33B30;
}
.legal-brand {
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 24px 14px;
}
.legal-brand .brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  letter-spacing: 3px;
  color: #FAF7EC;
  margin: 0 0 2px;
}
.legal-brand .brand-name a {
  color: #FAF7EC;
  text-decoration: none;
}
.legal-brand .brand-name .red {
  color: #B33B30;
}
.legal-brand .tagline {
  color: #FAF7EC;
  font-size: 13px;
  margin: 0;
  letter-spacing: 1px;
}
.legal-title-row {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 20px;
}
.legal-hdr h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1.15;
  color: #FAF7EC;
  margin: 0;
  background: #B33B30;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 4px;
}
.legal-hdr p.sub {
  color: #DFE7D5;
  max-width: 820px;
  font-size: 16px;
  margin: 14px 0 0;
}

/* ---- Layout ---- */
.legal-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

/* ---- Table of contents ---- */
.toc {
  position: sticky;
  top: 20px;
  background: #DFE7D5;
  border: 1px solid #CFD9C2;
  border-radius: 6px;
  padding: 20px 20px;
}
.toc h2 {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #25342A;
  margin: 0 0 12px;
  border-bottom: 2px solid #B33B30;
  padding-bottom: 8px;
}
.toc ol {
  margin: 0;
  padding-left: 2px;
  list-style: none;
}
.toc li {
  margin: 7px 0;
  font-size: 14px;
  line-height: 1.35;
}
.toc a {
  color: #25342A;
  text-decoration: none;
  font-weight: 600;
}
.toc a:hover {
  color: #B33B30;
  text-decoration: underline;
}

/* ---- Legal content ---- */
.legal-content {
  padding: 18px 0 30px;
  min-width: 0;
}
.legal-content .intro {
  color: #25342A;
  margin-bottom: 30px;
}
.legal-content section {
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #CFD9C2;
}
.legal-content section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  color: #7a2820;
  margin: 0 0 10px;
  padding-top: 6px;
}
.legal-content h2 .hnum {
  color: #B33B30;
  margin-right: 4px;
}
.legal-content section h3 {
  font-size: 18px;
  color: #25342A;
  margin: 16px 0 6px;
}
.legal-content p {
  margin: 10px 0;
  color: #25342A;
}
.legal-content ul,
.legal-content ol {
  margin: 10px 0;
  padding-left: 22px;
}
.legal-content li {
  margin: 6px 0;
  color: #25342A;
}
.legal-content .lead {
  color: #4E4034;
}
.legal-content strong {
  color: #25342A;
}
.back-top {
  display: block;
  margin-top: 8px;
}

/* ---- Legal footer / back to homepage ---- */
.legal-footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 24px 40px;
  text-align: center;
}
.legal-card-actions {
  background: #DFE7D5;
  border-radius: 8px;
  padding: 22px 24px;
}
.legal-card-actions p {
  margin: 0 0 12px;
  color: #25342A;
}
.legal-home {
  display: inline-block;
  background: #B33B30;
  color: #FAF7EC;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 3px solid #7a2820;
}
.legal-home:hover {
  background: #7a2820;
  text-decoration: none;
  color: #FAF7EC;
}
.legal-copy {
  margin-top: 22px;
  color: #4E4034;
  font-size: 13px;
}
.legal-addr {
  color: #25342A;
}

@media (max-width: 760px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
  }
}
