.vx-legal-hero,
.vx-thanks-hero {
  border-bottom: 1px solid #d6dce3;
  background: #fff;
}

.vx-legal-hero > div,
.vx-thanks-hero > div,
.vx-legal-body {
  box-sizing: border-box;
  width: min(calc(100% - 40px), 1120px);
  margin-inline: auto;
}

.vx-legal-hero > div,
.vx-thanks-hero > div {
  padding-block: clamp(64px, 9vw, 128px);
}

.vx-legal-hero h1,
.vx-thanks-hero h1 {
  max-width: 14ch;
  margin: 0 0 24px;
  color: #101820;
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 550;
  letter-spacing: -.045em;
  line-height: 1;
}

.vx-legal-hero p,
.vx-thanks-hero p {
  max-width: 66ch;
  margin: 0;
  color: #46515d;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
}

.vx-legal-actions,
.vx-thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 28px;
}

.vx-legal-actions a,
.vx-thanks-actions a,
.vx-legal-body a {
  color: #1555b6;
  text-underline-offset: .2em;
}

.vx-legal-actions a,
.vx-thanks-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 600;
}

.vx-legal-body {
  display: grid;
  grid-template-columns: minmax(180px, .32fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 110px);
  padding-block: clamp(52px, 8vw, 100px);
}

.vx-legal-body nav {
  position: sticky;
  top: 96px;
  min-width: 0;
  align-self: start;
}

.vx-legal-body nav strong {
  display: block;
  margin-bottom: 13px;
  color: #101820;
}

.vx-legal-body nav a {
  display: block;
  min-height: 40px;
  padding-block: 8px;
}

.vx-legal-body article {
  min-width: 0;
  max-width: 760px;
}

.vx-legal-body section {
  padding-block: 0 38px;
  scroll-margin-top: 100px;
}

.vx-legal-body section + section {
  padding-top: 38px;
  border-top: 1px solid #d6dce3;
}

.vx-legal-body h2 {
  margin: 0 0 17px;
  color: #101820;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 550;
  letter-spacing: -.03em;
  line-height: 1.12;
}

.vx-legal-body h3 {
  margin: 24px 0 9px;
  color: #101820;
  font-size: 20px;
}

.vx-legal-body p,
.vx-legal-body li {
  color: #46515d;
  font-size: 17px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.vx-legal-body ul { padding-left: 21px; }
.vx-legal-body button[data-vx-privacy-settings] {
  min-height: 46px;
  margin-top: 8px;
  padding: 10px 15px;
  border: 1px solid #1555b6;
  border-radius: 0;
  background: #fff;
  color: #1555b6;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.vx-consent {
  position: fixed;
  z-index: 10000;
  inset: auto 18px calc(18px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  max-width: 1160px;
  margin-inline: auto;
  padding: 20px;
  border: 1px solid #768493;
  background: #0e141b;
  color: #f7f9fb;
  box-shadow: 0 20px 70px rgb(0 0 0 / 32%);
  font-family: Arial, sans-serif;
}

.vx-consent-copy strong { display: block; margin-bottom: 6px; font-size: 17px; }
.vx-consent-copy p { margin: 0; color: #d4dae0; font-size: 14px; line-height: 1.55; }
.vx-consent-copy a { color: #a9c9ff; text-underline-offset: .2em; }
.vx-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.vx-consent-actions button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #8996a3;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.vx-consent-actions button.is-primary { border-color: #2d72db; background: #1555b6; }

.vx-foundation-mobile-cta { display: none; }
.vx-foundation-mobile-cta[hidden] { display:none!important; }

:is(.vx-consent, .vx-foundation-mobile-cta, .vx-legal-body) :is(a, button):focus-visible {
  outline: 3px solid #5596f2;
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .vx-legal-body { grid-template-columns: 1fr; gap: 32px; }
  .vx-legal-body nav { position: static; display: flex; flex-wrap: wrap; gap: 2px 18px; }
  .vx-legal-body nav strong { width: 100%; }
  .vx-legal-body nav a { display: inline-flex; align-items: center; }
  .has-vx-foundation-mobile-cta { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .vx-foundation-mobile-cta {
    position: fixed;
    z-index: 9000;
    inset: auto 10px calc(10px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
    border: 1px solid #b6c0ca;
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 12px 34px rgb(0 0 0 / 20%);
    backdrop-filter: blur(14px);
  }
  .vx-foundation-mobile-cta a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background: #1555b6;
    color: #fff;
    font: 600 15px/1.25 Arial, sans-serif;
    text-decoration: none;
  }
  .vx-foundation-mobile-cta button { min-width:44px; min-height:44px; border:0; background:transparent; color:#33465c; font:24px/1 Arial,sans-serif; cursor:pointer; }
  html[data-vx-consent-open] .vx-foundation-mobile-cta,
  body.vx-form-focused .vx-foundation-mobile-cta { display: none; }
  .vx-consent {
    inset: auto 8px calc(8px + env(safe-area-inset-bottom));
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: calc(100dvh - 16px - env(safe-area-inset-bottom));
    overflow: auto;
    padding: 14px;
  }
  .vx-consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .vx-consent-actions button { width: 100%; }
}

@media (max-width: 420px) {
  .vx-legal-hero > div,
  .vx-thanks-hero > div,
  .vx-legal-body { width: min(calc(100% - 32px), 1120px); }
  .vx-legal-hero h1,
  .vx-thanks-hero h1 { font-size: clamp(38px, 12vw, 52px); }
}

@media (prefers-reduced-motion: reduce) {
  .vx-consent,
  .vx-foundation-mobile-cta { scroll-behavior: auto; }
}
