.legal-page {
  --legal-green: #346f4b;
  --legal-green-dark: #214b32;
  --legal-blue: #6f91aa;
  --legal-ink: #26372d;
  --legal-muted: #66776d;
  --legal-border: #d4e0d7;
  min-height: calc(100vh - 150px);
  padding: clamp(24px, 4vw, 56px) 18px;
  color: var(--legal-ink);
  background: linear-gradient(145deg, #edf5ef, #dceade);
}

.legal-page * { box-sizing: border-box; }
.legal-shell { width: min(1120px, 100%); margin: 0 auto; }
.legal-hero { position: relative; width: 100%; max-width: none; overflow: hidden; display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 18px; padding: 25px 28px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--legal-green-dark), #477e5c); box-shadow: 0 16px 36px rgba(30,72,46,.15); }
.legal-hero::after { content: ""; position: absolute; right: -80px; top: -110px; width: 250px; height: 250px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; pointer-events: none; }
.legal-hero-icon { position: relative; z-index: 1; width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 14px; background: rgba(255,255,255,.1); color: #efd47f; font-size: 22px; }
.legal-hero-copy { position: relative; z-index: 1; min-width: 0; }
.legal-eyebrow { display: block; margin-bottom: 3px; color: #efd47f; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.legal-hero h1 { margin: 0; color: #fff; font-size: clamp(27px, 3vw, 38px); line-height: 1.1; font-weight: 800; letter-spacing: -.025em; }
.legal-hero p { margin: 6px 0 0; color: rgba(255,255,255,.76); font-size: 13px; }
.legal-effective-date { position: relative; z-index: 1; padding: 9px 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 10px; background: rgba(255,255,255,.08); text-align: center; white-space: nowrap; }
.legal-effective-date span, .legal-effective-date strong { display: block; }
.legal-effective-date span { color: rgba(255,255,255,.65); font-size: 9px; font-weight: 700; }
.legal-effective-date strong { margin-top: 2px; color: #fff; font-size: 12px; }

.legal-page-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 18px; padding: 6px; border: 1px solid var(--legal-border); border-radius: 14px; background: rgba(255,255,255,.66); }
.legal-page-tabs a { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; border: 1px solid transparent; border-radius: 9px; color: #52645a; font-size: 12px; font-weight: 750; text-decoration: none; transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.legal-page-tabs a:hover { transform: translateY(-1px); border-color: #c8d8cc; background: #fff; color: var(--legal-green-dark); }
.legal-page-tabs a.is-active { border-color: #aac4b2; background: #fff; color: var(--legal-green-dark); box-shadow: 0 3px 0 #7da68a; }
.legal-page-tabs i { color: #6d9279; }

.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 235px; align-items: start; gap: 18px; }
.legal-document { overflow: hidden; border: 1px solid var(--legal-border); border-radius: 18px; background: #fff; box-shadow: 0 14px 34px rgba(35,74,49,.08); }
.legal-introduction { padding: 24px 28px; border-bottom: 1px solid #dce6df; background: #f8fbf9; color: #405249; font-size: 14px; line-height: 1.7; }
.legal-introduction p { margin: 0; }
.legal-section { scroll-margin-top: 20px; padding: 22px 28px; border-bottom: 1px solid #e1e8e3; }
.legal-section:last-child { border-bottom: 0; }
.legal-section-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.legal-section-number { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: #e5f0e8; color: #316a48; font-size: 11px; font-weight: 800; }
.legal-section h2 { margin: 0; color: #2b5139; font-size: 17px; line-height: 1.25; font-weight: 800; }
.legal-section p { margin: 0 0 10px; color: #46574d; font-size: 13px; line-height: 1.68; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ol, .legal-section ul { margin: 8px 0 0; padding-left: 21px; color: #46574d; }
.legal-section li { margin: 7px 0; padding-left: 4px; font-size: 13px; line-height: 1.6; }
.legal-section li::marker { color: #608a6c; font-weight: 800; }
.legal-section strong { color: #304a39; }
.legal-callout { margin: 20px 28px 26px; padding: 16px 18px; border: 1px solid #cbded0; border-left: 4px solid #5f936f; border-radius: 11px; background: #f2f8f4; color: #405348; font-size: 13px; line-height: 1.6; }
.legal-callout strong { display: block; margin-bottom: 3px; color: #28573b; }
.legal-callout a { color: #2f6f4a; font-weight: 800; text-decoration: none; }
.legal-callout a:hover { text-decoration: underline; }

.legal-toc { position: sticky; top: 18px; padding: 18px; border: 1px solid var(--legal-border); border-radius: 15px; background: rgba(255,255,255,.84); box-shadow: 0 10px 25px rgba(35,74,49,.06); }
.legal-toc h2 { margin: 0 0 12px; color: #30483a; font-size: 13px; font-weight: 800; }
.legal-toc nav { display: grid; gap: 3px; }
.legal-toc a { display: block; padding: 7px 9px; border-radius: 7px; color: #64756b; font-size: 11px; line-height: 1.35; text-decoration: none; transition: color .18s ease, background .18s ease, transform .18s ease; }
.legal-toc a:hover { transform: translateX(3px); background: #eaf3ec; color: #2d6845; }
.legal-toc-footer { margin-top: 14px; padding-top: 13px; border-top: 1px solid #dce5de; }
.legal-toc-footer a { display: flex; align-items: center; gap: 7px; color: #326f4a; font-weight: 800; }

@media (max-width: 850px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; order: -1; }
  .legal-toc nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .legal-page { padding: 12px 9px 28px; }
  .legal-hero { grid-template-columns: 45px 1fr; gap: 12px; padding: 20px 18px; }
  .legal-hero-icon { width: 44px; height: 44px; border-radius: 11px; font-size: 18px; }
  .legal-effective-date { grid-column: 1 / -1; justify-self: stretch; display: flex; justify-content: center; gap: 5px; }
  .legal-effective-date strong { margin-top: 0; }
  .legal-page-tabs { grid-template-columns: 1fr; }
  .legal-page-tabs a { justify-content: flex-start; }
  .legal-introduction, .legal-section { padding: 19px 18px; }
  .legal-callout { margin: 16px 18px 20px; }
  .legal-toc nav { grid-template-columns: 1fr; }
}
