:root {
  scroll-behavior: smooth;
}

.legal-page {
  color: #054b54;
  background: #fff;
}

.legal-hero {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  background: #fff;
  border-bottom: 1px solid #d9e2e3;
}

.legal-container {
  width: min(calc(100% - (2 * clamp(1.25rem, 4vw, 4rem))), 80rem);
  margin-inline: auto;
}

.legal-eyebrow {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 0 0 1rem;
  color: #be6c39;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.legal-eyebrow::before {
  width: 2.75rem;
  height: 2px;
  background: #be6c39;
  content: "";
}

.legal-hero h1 {
  max-width: 15ch;
  margin: 0 0 1.25rem;
  color: #054b54;
  font-family: var(--font-secondary);
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .98;
}

.legal-hero__intro {
  max-width: 70ch;
  margin: 0 0 1rem;
  color: #365f65;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.65;
}

.legal-updated {
  margin: 0;
  color: #657d81;
  font-size: .875rem;
}

.legal-main {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  max-height: calc(100vh - var(--header-height) - 3rem);
  overflow: auto;
  border-top: 2px solid #be6c39;
}

.legal-toc summary {
  padding: 1rem 0 .85rem;
  color: #054b54;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  list-style: none;
  text-transform: uppercase;
}

.legal-toc summary::-webkit-details-marker { display: none; }

.legal-toc summary::after {
  float: right;
  color: #be6c39;
  content: "+";
}

.legal-toc[open] summary::after { content: "−"; }

.legal-toc ol {
  display: grid;
  gap: .12rem;
  margin: 0;
  padding: 0 0 1rem;
  list-style: none;
}

.legal-toc a {
  display: block;
  padding: .42rem .7rem;
  border-left: 2px solid #d9e2e3;
  color: #526f74;
  font-size: .86rem;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.legal-toc a:hover,
.legal-toc a[aria-current="true"] {
  border-left-color: #be6c39;
  color: #054b54;
  background: #fff7f1;
}

.legal-article {
  min-width: 0;
  max-width: 75ch;
}

.legal-section {
  scroll-margin-top: calc(var(--header-height) + 2rem);
  padding: 0 0 clamp(2rem, 5vw, 3.25rem);
  margin: 0 0 clamp(2rem, 5vw, 3.25rem);
  border-bottom: 1px solid #d9e2e3;
}

.legal-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.legal-section h2 {
  margin: 0 0 1rem;
  color: #054b54;
  font-family: var(--font-secondary);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.legal-section h3 {
  margin: 1.5rem 0 .65rem;
  color: #054b54;
  font-size: 1.05rem;
  line-height: 1.35;
}

.legal-section p,
.legal-section li {
  color: #365f65;
  font-size: 1rem;
  line-height: 1.75;
}

.legal-section p { margin: 0 0 1rem; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { margin: .75rem 0 1rem; padding-left: 1.25rem; }
.legal-section li + li { margin-top: .45rem; }

.legal-section a,
.legal-contact-card a {
  color: #a95025;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.legal-note {
  padding: 1rem 1.1rem;
  border-left: 3px solid #be6c39;
  background: #fff7f1;
}

.legal-contact-card {
  display: grid;
  gap: .35rem;
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid #d9e2e3;
  border-radius: .75rem;
  font-style: normal;
}

.legal-contact-card strong { color: #054b54; }

.legal-table-wrap {
  max-width: 100%;
  margin-block: 1.5rem;
  overflow-x: auto;
  border: 1px solid #d9e2e3;
  border-radius: .75rem;
}

.legal-table {
  width: 100%;
  min-width: 38rem;
  border-collapse: collapse;
  color: #054b54;
  font-size: .9375rem;
  line-height: 1.5;
}

.legal-table th,
.legal-table td {
  padding: .875rem 1rem;
  border-block-end: 1px solid #d9e2e3;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: #fff;
  background: #054b54;
  font-weight: 700;
}

.legal-table tbody tr:last-child td { border-block-end: 0; }

.vantage-footer__legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .25rem .45rem;
  align-items: center;
}

.legal-cta {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  color: #fff;
  background: #054b54;
}

.legal-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.legal-cta h2 {
  max-width: 19ch;
  margin: 0 0 .75rem;
  color: #fff;
  font-family: var(--font-secondary);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.legal-cta p {
  max-width: 62ch;
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.65;
}

.legal-cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.legal-cta .button--secondary {
  border-color: rgba(255,255,255,.65);
  color: #fff;
  background: transparent;
}

.legal-page :is(a, button, summary):focus-visible {
  outline: 3px solid #f9a061;
  outline-offset: 3px;
}

.legal-reveal-ready .legal-section {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 420ms ease, transform 420ms ease;
}

.legal-reveal-ready .legal-section.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 56.01rem) {
  .legal-toc summary { cursor: default; }
  .legal-toc summary::after { display: none; }
}

@media (max-width: 56rem) {
  .legal-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .legal-toc {
    position: relative;
    top: auto;
    z-index: 2;
    max-height: none;
    overflow: visible;
    border-bottom: 1px solid #d9e2e3;
  }
  .legal-toc summary { cursor: pointer; }
  .legal-toc ol { max-height: 18rem; overflow: auto; }
  .legal-cta__inner { grid-template-columns: 1fr; }
}

@media (max-width: 35rem) {
  .legal-hero { padding-top: 3rem; }
  .legal-main { padding-top: 2.5rem; }
  .legal-section p,
  .legal-section li { line-height: 1.68; }
  .legal-cta__actions { align-items: stretch; flex-direction: column; }
  .legal-cta__actions .button { justify-content: center; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .legal-reveal-ready .legal-section { opacity: 1; transform: none; transition: none; }
}

@media print {
  @page { margin: .75in; }
  .vantage-header,
  .legal-toc,
  .legal-cta,
  .vantage-footer,
  .skip-link { display: none !important; }
  .legal-hero,
  .legal-main { padding: 0; border: 0; }
  .legal-hero { margin-bottom: .35in; }
  .legal-container { width: 100%; max-width: none; }
  .legal-layout { display: block; }
  .legal-article { max-width: none; }
  .legal-section { break-inside: avoid; padding-bottom: .16in; margin-bottom: .16in; }
  .legal-section p,
  .legal-section li { color: #222; font-size: 10pt; line-height: 1.5; }
  .legal-section h2 { color: #003f45; font-size: 15pt; }
  .legal-page a { color: inherit; text-decoration: none; }
  .legal-table-wrap { overflow: visible; }
  .legal-table { min-width: 0; font-size: 9pt; }
}
