/* ============================================================
   REDLEAF — legal pages stylesheet (privacy.html, terms-of-service.html)
   Dark spruce legal theme, scoped class selectors only.
   ============================================================ */

:root {
  --spruce: #12251D;
  --panel: #1B332A;
  --hairline: #274034;
  --ember: #C8452F;
  --ember-deep: #A93A28;
  --birch: #F2EFE6;
  --cream: #FAF6EC;
  --moss: #9AA899;
  --birch-cream: #E4D6B8;
  --footer-grey: #B9C4B7;
  --body-ink: #E3DECE;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

.legal-page {
  font-size: 16px;
  background-color: #12251D;
  color: #F2EFE6;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
}

.legal-page a { color: #E4D6B8; text-decoration: none; }
.legal-page a:hover { color: #C8452F; }

a:focus-visible, button:focus-visible {
  outline: 2px solid #C8452F;
  outline-offset: 2px;
}

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

.legal-header {
  background: linear-gradient(155deg, #1B332A 0%, #12251D 78%);
  border-bottom: 4px solid #C8452F;
  padding: 34px 0 46px;
}

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

.legal-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.legal-chev {
  width: 11px;
  height: 11px;
  border-top: 3px solid #C8452F;
  border-right: 3px solid #C8452F;
  display: inline-block;
  flex: none;
}
.legal-chev-l { transform: rotate(45deg); }
.legal-chev-r { transform: rotate(225deg); }

.legal-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #FAF6EC;
}
.legal-brand:hover { color: #C8452F; }

.legal-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #C8452F;
  margin-bottom: 12px;
}

.legal-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.15;
  color: #FAF6EC;
  margin-bottom: 16px;
}

.legal-meta {
  color: #9AA899;
  font-size: 15px;
}
.legal-meta strong { color: #E4D6B8; }

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

.toc {
  background-color: #1B332A;
  border: 1px solid #274034;
  max-width: 900px;
  margin: 34px auto 0;
  padding: 28px 32px 24px;
}

.toc-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  color: #FAF6EC;
  margin-bottom: 14px;
}

.toc ol {
  list-style: none;
  column-count: 2;
  column-gap: 44px;
  counter-reset: toc-item;
}

.toc li {
  margin-bottom: 9px;
  break-inside: avoid;
  font-size: 15px;
}

.toc a {
  color: #E4D6B8;
  text-decoration: none;
  border-bottom: 1px solid #274034;
}
.toc a:hover {
  color: #C8452F;
  border-bottom-color: #C8452F;
}

/* ---------------- Legal content ---------------- */

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 46px 24px 30px;
}

.legal-content section {
  background-color: transparent !important;
  margin-bottom: 44px;
  scroll-margin-top: 24px;
}

.legal-content h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1.3;
  color: #FAF6EC;
  border-left: 5px solid #C8452F;
  padding-left: 16px;
  margin-bottom: 18px;
}

.legal-content h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  color: #FAF6EC;
  margin: 24px 0 10px;
}

.legal-content p {
  color: #E3DECE;
  margin-bottom: 14px;
}

.legal-content p:last-child { margin-bottom: 0; }

.legal-content strong { color: #FAF6EC; }

.legal-content ul {
  list-style: none;
  margin: 0 0 14px;
}
.legal-content ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: #E3DECE;
}
.legal-content ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 8px;
  height: 8px;
  background-color: #C8452F;
  transform: rotate(45deg);
}

.legal-content .inpage-note {
  background-color: #1B332A;
  border-left: 5px solid #E4D6B8;
  padding: 16px 20px;
  color: #E3DECE;
  margin-bottom: 14px;
}

.legal-content a {
  color: #E4D6B8;
  text-decoration: underline;
}
.legal-content a:hover { color: #C8452F; }

.back-home-row {
  border-top: 1px solid #274034;
  padding-top: 28px;
  margin-top: 10px;
}
.back-home-row a.back-home {
  display: inline-block;
  font-weight: 700;
  color: #E4D6B8;
  border-bottom: 1px solid #C8452F;
  padding-bottom: 2px;
}
.back-home-row a.back-home:hover { color: #C8452F; }

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

.legal-footer {
  background-color: #12251D;
  border-top: 4px solid #C8452F;
  margin-top: 26px;
  padding: 38px 0 30px;
}

.legal-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.legal-footer .lf-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #FAF6EC;
  margin-bottom: 12px;
}

.legal-footer .lf-links {
  margin-bottom: 12px;
  font-size: 15px;
}
.legal-footer .lf-links a {
  color: #F2EFE6;
  text-decoration: underline;
}
.legal-footer .lf-links a:hover { color: #C8452F; }
.legal-footer .lf-links span { color: #274034; }

.legal-footer .lf-contact {
  color: #B9C4B7;
  font-size: 14px;
  margin-bottom: 10px;
}
.legal-footer .lf-contact a { color: #B9C4B7; text-decoration: underline; }
.legal-footer .lf-contact a:hover { color: #C8452F; }

.legal-footer .lf-copy {
  color: #B9C4B7;
  font-size: 13px;
}

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

@media (max-width: 700px) {
  .toc ol { column-count: 1; }
  .toc { padding: 22px 20px 18px; }
  .legal-content h2 { font-size: 23px; }
  .legal-header { padding-bottom: 36px; }
}
