/* =========================================================
   LEGAL STYLES - privacy.html and terms-of-service.html
   Shared dark legal theme using the forest-dusk palette.
   This sheet is loaded alone (never style.css) by legal pages.
   ========================================================= */

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

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

.legal-page a {
  color: #5FA66B;
  text-decoration: none;
}

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

/* ---------- SCOPE ISOLATION ----------
   Any section-level background overrides must only touch the
   body content, never the header or footer. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ---------- LEGAL HEADER ---------- */
.legal-header {
  background-color: #101711;
  border-bottom: 1px solid #2C3A2E;
}

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

.legal-header .to-home {
  display: inline-block;
  color: #5FA66B;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
}

.legal-header h1 {
  color: #EFF5EC;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.legal-header .lede {
  color: #8E9A90;
  font-size: 16px;
  margin-top: 14px;
  max-width: 720px;
}

.legal-header .meta-date {
  display: block;
  color: #5FA66B;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 16px;
}

/* ---------- LEGAL BODY ---------- */
.legal-body {
  display: flex;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}

/* table of contents */
.legal-toc {
  flex: 0 0 240px;
}

.legal-toc nav {
  position: sticky;
  top: 20px;
}

.legal-toc h2 {
  color: #5FA66B;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.legal-toc ol {
  list-style: none;
  padding-left: 0;
  border-left: 1px solid #2C3A2E;
}

.legal-toc li {
  margin: 0;
}

.legal-toc a {
  display: block;
  color: #C2CFC2;
  font-size: 13.5px;
  line-height: 1.4;
  padding: 7px 14px;
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-toc a:hover {
  color: #5FA66B;
  border-left-color: #E07B3C;
}

/* main content */
.legal-content {
  flex: 1 1 auto;
  min-width: 0;
}

.legal-content section {
  margin-bottom: 34px;
}

.legal-content h2 {
  color: #5FA66B;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-top: 8px;
  scroll-margin-top: 20px;
}

.legal-content h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 12px;
  background-color: #E07B3C;
  transform: skewX(-12deg);
}

.legal-content h3 {
  color: #EFF5EC;
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px;
}

.legal-content p {
  color: #C2CFC2;
  font-size: 15.5px;
  margin-bottom: 14px;
  text-align: left;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px 26px;
}

.legal-content li {
  color: #C2CFC2;
  font-size: 15.5px;
  margin-bottom: 8px;
}

.legal-content a {
  color: #5FA66B;
}

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

.legal-recall {
  background-color: #1C241D;
  border: 1px solid #2C3A2E;
  border-left: 4px solid #E07B3C;
  border-radius: 4px;
  padding: 16px 20px;
  margin: 20px 0;
}

.legal-recall p {
  margin-bottom: 0;
  color: #C2CFC2;
}

/* ---------- LEGAL FOOTER ---------- */
.legal-footer {
  background-color: #0B100C;
  border-top: 1px solid #2C3A2E;
}

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

.legal-footer .fword {
  display: inline-block;
  color: #EFF5EC;
  font-size: 19px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.legal-footer .fword span {
  color: #5FA66B;
}

.legal-footer p.legal-line {
  color: #8E9A90;
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}

.legal-footer a {
  color: #C2CFC2;
}

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

.legal-footer .home-link {
  display: inline-block;
  margin-bottom: 14px;
  color: #5FA66B;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
  .legal-body {
    flex-direction: column;
    gap: 24px;
  }

  .legal-toc {
    flex: 1 1 auto;
  }

  .legal-toc nav {
    position: static;
  }

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