/* ===== FEIMU Legal Pages Shared Stylesheet =====
   Loaded ONLY by privacy.html and terms-of-service.html.
   Scope-isolated so nothing outside .legal-page .legal-content section
   can be styled by this sheet, and vice versa.
   Palette matches the parent daytime screening room theme:
   parchment #F4F3EC body with slate ink #232830 text,
   harbour-jade #3A8577 accents, velvet-navy #22354B header/footer. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.legal-page {
  margin: 0;
  background-color: #F4F3EC;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.75;
  color: #232830;
  overflow-x: hidden;
}

.legal-page * , .legal-page p, .legal-page h1, .legal-page h2, .legal-page h3,
.legal-page a { box-sizing: border-box; }

.legal-page img { max-width: 100%; display: block; }

.legal-page a { color: #2F6E62; text-decoration: none; }
.legal-page a:hover { color: #C15A41; }

/* ---------- Legal masthead: solid navy band, strong contrast ---------- */
.legal-masthead {
  display: block;
  background-color: #22354B;
  padding: 40px 24px 44px;
}
.legal-masthead .mast-inner { max-width: 900px; margin: 0 auto; }
.legal-kicker {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #9BE0D0;
  margin: 0 0 10px;
}
.legal-masthead h1 {
  color: #FBFAF4;
  margin: 0 0 8px;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 42px;
  line-height: 1.08;
}
.legal-masthead .legal-mast-note { color: #DFE6EC; margin: 0; max-width: 700px; }
.legal-masthead .home-link {
  display: inline-block;
  margin-top: 18px;
  background-color: #3A8577;
  color: #FBFAF4;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: bold;
  padding: 9px 18px;
  border-radius: 4px;
}
.legal-masthead .home-link:hover { background-color: #2F6E62; color: #FBFAF4; }
.legal-masthead .tel-line {
  margin-top: 16px;
  color: #9BE0D0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
}
.legal-masthead .tel-line strong { color: #FBFAF4; }

/* ---------- Layout body ---------- */
.legal-shell {
  display: block;
  background-color: #F4F3EC;
  padding: 44px 24px 10px;
}
.legal-shell .layout-row {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 860px) {
  .legal-shell .layout-row { grid-template-columns: 1fr; }
}

/* Table of contents rail */
.legal-toc {
  position: sticky;
  top: 12px;
  align-self: start;
  background-color: #FBFAF4;
  border: 1px solid #6B7280;
  border-left: 6px solid #3A8577;
  border-radius: 6px;
  padding: 20px 18px;
}
.legal-toc h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #22354B;
}
.legal-toc ol { margin: 0; padding: 0 0 0 18px; }
.legal-toc li { margin-bottom: 7px; font-size: 15px; }
.legal-toc a { color: #22354B; font-family: "Helvetica Neue", Arial, sans-serif; }
.legal-toc a:hover { color: #C15A41; border-bottom: 2px solid #D96D55; }

/* ---------- Article content ---------- */
.legal-article { min-width: 0; }

/* Scope-isolation: only legal content sections are styled. All children
   sections receive transparent backgrounds no matter the parent band. */
.legal-page .legal-content section,
.legal-article section,
.legal-content section {
  background-color: transparent !important;
}

.legal-article .intro-band {
  background-color: #FBFAF4;
  border-left: 6px solid #3A8577;
  border-radius: 6px;
  padding: 22px 26px;
  margin-bottom: 30px;
}
.legal-article .intro-band p { margin: 0; color: #232830; }
.legal-article .intro-band strong { color: #22354B; }

.legal-content section {
  margin-bottom: 30px;
}
.legal-article h2 {
  color: #232830;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 25px;
  line-height: 1.2;
  margin: 34px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #3A8577;
}
.legal-article h3 {
  color: #22354B;
  margin: 22px 0 8px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 19px;
}
.legal-article p { margin: 0 0 14px; color: #232830; }
.legal-article li { color: #232830; }
.legal-def { color: #22354B; }

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

.legal-content ul li, .legal-content ol li { margin-bottom: 6px; }

.legal-content .callout {
  background-color: #FBFAF4;
  border: 1px solid #3A8577;
  border-radius: 6px;
  padding: 16px 20px;
  margin: 16px 0;
}
.legal-content .callout p { margin: 0; }
.legal-content .callout strong { color: #22354B; }

/* Glossary definition list */
.legal-content dl { margin: 0 0 16px; }
.legal-content dt {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: bold;
  color: #22354B;
  margin-top: 14px;
}
.legal-content dd { margin-left: 22px; color: #232830; }

/* Additive version-change / confirmation lists */
.legal-content .confirm { list-style: none; padding-left: 0; }
.legal-content .confirm li {
  padding: 8px 0 8px 26px;
  position: relative;
  border-bottom: 1px dashed #D3D0C2;
}
.legal-content .confirm li::before {
  content: "";
  position: absolute;
  left: 2px; top: 16px;
  width: 10px; height: 10px;
  background-color: #3A8577;
  border-radius: 2px;
}

/* ---------- Legal footer ---------- */
.legal-footer {
  background-color: #22354B;
  margin-top: 46px;
  padding: 34px 24px 30px;
}
.legal-footer .legal-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.legal-footer .firm {
  color: #FBFAF4;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  margin: 0 0 6px;
}
.legal-footer address {
  font-style: normal;
  color: #C6CFD8;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  margin: 0 0 6px;
}
.legal-footer .reach {
  color: #C6CFD8;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  margin: 0 0 6px;
}
.legal-footer .reach a { color: #3A8577; font-weight: bold; }
.legal-footer .reach a:hover { color: #FBFAF4; }
.legal-footer .back-home {
  display: inline-block;
  margin-top: 14px;
  color: #FBFAF4;
  background-color: #3A8577;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: bold;
  padding: 9px 18px;
  border-radius: 4px;
}
.legal-footer .back-home:hover { background-color: #2F6E62; color: #FBFAF4; }
.legal-footer .copy {
  color: #8392A3;
  font-size: 13px;
  margin-top: 16px;
  border-top: 1px solid #6B7280;
  padding-top: 14px;
}
