.legal-body .header-desktop:not(.header-desktop-scrolled):not(.menu-open):not(.has-mega-open):not(:focus-within) {
  --legal-nav-ink: #2a004e;
}

.legal-body .header-desktop:not(.header-desktop-scrolled):not(.menu-open):not(.has-mega-open):not(:focus-within) .header-desktop-inner {
  background-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.legal-body .header-desktop:not(.header-desktop-scrolled):not(.menu-open):not(.has-mega-open):not(:focus-within) .header-desktop-logo {
  background-color: var(--legal-nav-ink);
  mask: url("/assets/icons/logo.svg") center / contain no-repeat;
}

.legal-body .header-desktop:not(.header-desktop-scrolled):not(.menu-open):not(.has-mega-open):not(:focus-within) .header-desktop-logo img {
  opacity: 0;
}

.legal-body .header-desktop:not(.header-desktop-scrolled):not(.menu-open):not(.has-mega-open):not(:focus-within) :is(.header-desktop-link, .header-desktop-trigger) {
  color: var(--legal-nav-ink);
}

.legal-body .header-desktop:not(.header-desktop-scrolled):not(.menu-open):not(.has-mega-open):not(:focus-within) :is(.header-desktop-link, .header-desktop-trigger)::after {
  background-color: var(--legal-nav-ink);
}

.legal-body .header-desktop:not(.header-desktop-scrolled):not(.menu-open):not(.has-mega-open):not(:focus-within) .header-desktop-trigger > img {
  filter: brightness(0);
}

.legal-body .header-desktop:not(.header-desktop-scrolled):not(.menu-open):not(.has-mega-open):not(:focus-within) .header-mobile-toggle {
  border-color: rgb(42 0 78 / 45%);
}

.legal-body .header-desktop:not(.header-desktop-scrolled):not(.menu-open):not(.has-mega-open):not(:focus-within) .header-mobile-toggle span {
  background-color: var(--legal-nav-ink);
}

.legal-page {
  padding: 10rem var(--page-gutter) 6rem;
}

.legal-container {
  width: 100%;
  max-width: 58rem;
  margin-inline: auto;
}

.legal-heading {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgb(42 0 78 / 20%);
}

.legal-heading .publication-breadcrumb {
  position: static;
  margin-bottom: 1.5rem;
  color: #2a004e;
}

.legal-heading h1 {
  width: 100%;
  margin: 0;
  color: #2a004e;
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.legal-heading > p {
  margin: 1rem 0 0;
  color: #2c2c2c;
  font-size: 1.075rem;
  font-weight: 200;
  line-height: 1.65;
}

.legal-content {
  color: #2c2c2c;
  font-size: 1.075rem;
  font-weight: 200;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.legal-content :is(h2, h3, h4) {
  color: #2a004e;
  font-family: "PPNeueGstaad", sans-serif;
  font-weight: 400;
  line-height: 1.35;
  text-wrap: balance;
}

.legal-content h2 {
  margin: 2.75rem 0 1rem;
  font-size: 1.6rem;
}

.legal-content h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.25rem;
}

.legal-content h4 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.075rem;
}

.legal-content > :first-child,
.legal-content > .legal-section:first-child > :first-child {
  margin-top: 0;
}

.legal-content p {
  margin: 0 0 1rem;
}

.legal-content strong {
  font-weight: 300;
}

.legal-content address {
  margin: 0 0 1.5rem;
  font-style: normal;
}

.legal-content :is(ul, ol) {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.legal-content li + li {
  margin-top: 0.4rem;
}

.legal-content a {
  color: #2a004e;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.legal-content a:hover {
  text-decoration-thickness: 2px;
}

.legal-page a:focus-visible {
  outline: 2px solid #2a004e;
  outline-offset: 4px;
}

.legal-content .legal-date {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(42 0 78 / 20%);
  font-size: 0.95rem;
}

@media (max-width: 1199px) {
  .legal-page {
    padding: 9rem var(--page-gutter) 5rem;
  }
}

@media (max-width: 1023px) {
  .legal-page {
    padding-inline: var(--page-gutter);
  }
}

@media (max-width: 767px) {
  .legal-page {
    padding: 7.5rem var(--page-gutter) 4rem;
  }

  .legal-heading {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }

  .legal-content {
    font-size: 1rem;
  }

  .legal-content h2 {
    margin-top: 2.25rem;
    font-size: 1.4rem;
  }

  .legal-content h3 {
    font-size: 1.15rem;
  }
}

@media print {
  .legal-body {
    background: #fff;
  }

  .legal-body :is(.header-desktop, .fixed-cta, .noise, .site-footer, .publication-skip-link, .publication-breadcrumb) {
    display: none;
  }

  .legal-page {
    padding: 0;
    background: #fff;
  }

  .legal-container {
    max-width: none;
  }

  .legal-heading {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .legal-content,
  .legal-content :is(h2, h3, h4, a),
  .legal-heading h1 {
    color: #000;
  }

  .legal-content {
    font-size: 10pt;
  }

  .legal-content :is(h2, h3, h4) {
    break-after: avoid;
  }

  .legal-content p {
    orphans: 3;
    widows: 3;
  }
}
