:root {
  --navy: #18343e;
  --deep: #102b33;
  --teal: #2f6f66;
  --cream: #f7f7f3;
  --ink: #21363d;
  --muted: #65767b;
  --line: #d8e0dd;
  --gold: #9cc7bd;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { min-width: 0; margin: 0; overflow-x: clip; color: var(--ink); background: var(--cream); font-family: "Avenir Next", Avenir, Montserrat, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.68; -webkit-font-smoothing: antialiased; }
.legal-shell { width: min(100% - 32px, 820px); min-width: 0; margin-inline: auto; }
.legal-header { position: sticky; z-index: 10; top: 0; border-bottom: 0; background: rgba(255, 255, 255, .97); backdrop-filter: blur(14px); }
.legal-header .legal-shell { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.legal-header .legal-shell > *, .legal-card > *, .legal-button-row > *, .legal-footer .legal-shell > * { min-width: 0; }
.legal-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); line-height: 1.1; text-decoration: none; }
.legal-brand img { width: 42px; height: 42px; flex: 0 0 42px; }
.legal-brand span { display: flex; flex-direction: column; }
.legal-brand strong { color: var(--navy); font-size: 1rem; font-weight: 700; letter-spacing: -.02em; }
.legal-brand small { display: none; margin-top: 4px; color: var(--muted); font-size: .61rem; font-weight: 600; }
.return-link { flex: 0 0 auto; color: var(--teal); font-size: .79rem; font-weight: 650; text-underline-offset: 4px; }
.legal-card { min-width: 0; margin-block: 0; padding: 45px 0 66px; }
.legal-kicker { margin: 0 0 9px; color: var(--teal); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
h1, h2 { color: var(--navy); font-family: inherit; line-height: 1.06; letter-spacing: -.04em; }
h1 { max-width: 700px; margin: 0; font-size: clamp(2.55rem, 10vw, 4rem); font-weight: 700; }
h2 { margin: 42px 0 10px; padding-top: 4px; font-size: 1.65rem; font-weight: 700; }
p { margin: 10px 0; color: #40555f; }
.effective { margin-top: 10px; color: var(--muted); font-size: .78rem; }
.lead { max-width: 760px; margin-top: 22px; font-size: 1.04rem; }
.legal-card p, .legal-card li, .legal-card a, .legal-contact, .legal-footer a { overflow-wrap: anywhere; }
.legal-card a { color: var(--teal); font-weight: 720; }
.legal-card ul { padding-left: 22px; }
.legal-card li { margin-block: 8px; color: #40555f; }
.legal-callout { margin: 30px 0 38px; padding: 18px 0 18px 20px; border-left: 3px solid var(--gold); border-block: 1px solid var(--line); background: transparent; }
.legal-callout strong { color: var(--navy); }
.legal-callout p { margin: 5px 0 0; font-size: .91rem; }
.legal-button-row { display: grid; gap: 8px; margin-top: 17px; }
.legal-button-row a { min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; text-decoration: none; }
.legal-button-row a::after { content: "↗"; font-weight: 500; }
.legal-contact { min-width: 0; display: flex; flex-direction: column; gap: 4px; margin-top: 48px; padding: 20px 0; border-block: 1px solid var(--line); color: var(--muted); }
.legal-contact strong { color: var(--navy); }
.legal-contact span { font-size: .82rem; }
.legal-contact a { font-size: .86rem; }
.legal-footer { padding: 28px 0; color: #d6e1e5; background: var(--deep); }
.legal-footer .legal-shell { display: flex; flex-wrap: wrap; gap: 13px 24px; }
.legal-footer a { color: #fff; font-size: .8rem; font-weight: 720; text-underline-offset: 4px; }

@media (min-width: 681px) {
  .legal-shell { width: min(100% - 56px, 820px); }
  .legal-header .legal-shell { min-height: 96px; }
  .legal-brand img { width: 52px; height: 52px; flex-basis: 52px; }
  .legal-brand strong { font-size: 1.2rem; }
  .legal-brand small { display: block; }
  .legal-card { padding-block: 72px 92px; }
  .legal-button-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
  .legal-header { animation: legalHeaderEnter .36s ease-out both; }
  .legal-card { animation: legalPageEnter .44s cubic-bezier(.22, .75, .25, 1) .03s both; }
  .legal-footer { animation: legalPageEnter .44s ease-out .08s both; }
  body.page-leaving .legal-header { opacity: 0; transition: opacity .15s ease; }
  body.page-leaving .legal-card, body.page-leaving .legal-footer { opacity: 0; transform: translateY(7px); transition: opacity .16s ease, transform .16s ease; }
  .legal-button-row a { transition: color .16s ease, border-color .16s ease, transform .16s ease; }
  .legal-button-row a:hover { color: var(--navy); border-color: var(--teal); transform: translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@keyframes legalHeaderEnter { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes legalPageEnter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
