/* ==========================================================================
   HAILIDA - Shared LEGAL stylesheet (loading alone on privacy & terms).
   Single-column centered legal shape, strong contrast, opaque surfaces.
   Legal pages load ONLY this sheet, so it must deliver the palette itself.
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #232B25;              /* SAGE NIGHT */
  color: #E8EBE2;                   /* near MOONBEAM text with strong contrast */
  font-family: Georgia, "Times New Roman", Cambria, serif;
  font-size: 16px;
  line-height: 1.78;
  overflow-x: hidden;
}

a {
  color: #8FA86B;                   /* SAGE SIGNAL */
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: #F5F2E6; }

/* ------------------------------------------------------------------------
   Scope isolation: legal-specific rules target ONLY legal content sections.
   ------------------------------------------------------------------------ */
.legal-page .legal-content section {
  background: transparent !important;
}

/* ---- Widely scoped helpers are still anchored to legal-page root so they
   never leak (belt and braces). ---- */
.legal-page .legal-header {
  background: #141814;              /* WELL BLACK */
  border-bottom: 1px solid #8FA86B;
}
.legal-page .legal-header-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 44px 24px 30px 24px;
}
.legal-page .legal-company {
  font-family: "Trebuchet MS", Arial, sans-serif;
  letter-spacing: 3px;
  color: #8FA86B;
  font-size: 13px;
  text-transform: uppercase;
  margin: 0 0 10px 0;
}
.legal-page .legal-h1 {
  color: #F5F2E6;
  font-size: 42px;
  font-weight: normal;
  line-height: 1.2;
  margin: 0;
}
.legal-page .legal-standfirst {
  max-width: 78ch;
  margin: 16px 0 0 0;
  font-size: 17px;
  color: #DDE2D6;
}
.legal-page .legal-home-link {
  display: inline-block;
  margin-top: 20px;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
}

/* ---- Content frame, centered single column ---- */
.legal-page .legal-content {
  max-width: 860px;                 /* container max-width */
  margin: 0 auto;                   /* centred single column */
  padding: 0 24px 70px 24px;
  background: transparent;
}
.legal-page .legal-toc {
  margin: 36px 0 12px 0;
  padding: 26px 28px;
  background: #2B342D;              /* CABIN PANEL */
  border: 1px solid #7E877E;        /* TOWER STONE */
}

section.legal-toc ul {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
  column-count: 2;
  column-gap: 34px;
}
section.legal-toc li {
  margin: 6px 0;
  font-size: 15px;
  break-inside: avoid;
}
section.legal-toc a { text-decoration: none; border-bottom: 1px dotted #8FA86B; }
section.legal-toc a:hover { color: #F5F2E6; }

.legal-page .legal-toc-title {
  font-family: "Trebuchet MS", Arial, sans-serif;
  letter-spacing: 3px;
  font-size: 13px;
  color: #8FA86B;
  text-transform: uppercase;
  margin: 0;
}

/* ---- Every substantive division ---- */
section.body-section {
  padding-top: 3px;
}
section.body-section h2 {
  font-size: 26px;
  font-weight: bold;
  color: #8FA86B;
  margin: 44px 0 12px 0;
  line-height: 1.35;
  padding-top: 6px;
  border-top: 1px solid #545D54;
}
section.body-section p {
  margin: 0 0 14px 0;
  color: #ECEFE7;
}
section.body-section p.legal-split {
  margin-bottom: 6px;
}
section.body-section strong {
  color: #F5F2E6;
  font-weight: bold;
}
section.body-section ul {
  margin: 0 0 16px 0;
  padding-left: 26px;
}
section.body-section li { margin: 6px 0; }
section.body-section .small-note {
  color: #BDC9B8;
}

.legal-page a.anchor { scroll-margin-top: 18px; }

/* ---- Footer ----- */
.legal-page .legal-footer {
  background: #141814;
  color: #CBD3C4;
  border-top: 5px solid #7E877E;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}
.legal-page .legal-footer-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 34px 24px 40px 24px;
  text-align: center;
}
.legal-page .legal-footer-org {
  color: #8FA86B;
  font-family: "Trebuchet MS", Arial, sans-serif;
  letter-spacing: 3px;
  font-weight: bold;
  font-size: 16px;
  margin: 0 0 10px 0;
}
.legal-page .legal-footer p {
  margin: 6px 0;
  font-size: 15px;
  color: #DDE2D6;
}
.legal-page .legal-footer-link {
  color: #8FA86B;
  text-decoration: none;
}
.legal-page .legal-footer-link:hover { color: #F5F2E6; }
.legal-page .legal-copyright {
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  color: #87917F;
  margin-top: 18px;
}

/* ---- address pipe - keep simple text; no decorative quote glyphs. ---- */

@media screen and (max-width: 600px) {
  section.legal-toc ul { column-count: 1; }
  .legal-page .legal-h1 { font-size: 32px; }
}
