/* Shared base styles. Home design: home.css; editable presentation: CMS output.
   Responsive/state rules below retain their own conditional scope. */

:root {
  --blue: #1D71B8;
  --ink: #20252b;
  --gray: #706F6F;
  --muted: #706F6F;
  --line: #dce0e5;
  --pale: #f3f5f7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  scroll-padding-bottom: calc(var(--privacy-bar-height,0px) + 16px);
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Arial,Helvetica,sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--privacy-bar-height,0px);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 6px;
}

::selection {
  background: #d7e7ff;
}

.wrap {
  max-width: 1320px;
  margin: auto;
  padding-left: 64px;
  padding-right: 64px;
}

.header {
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 64px;
  max-width: 1448px;
  margin: auto;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
  background: white;
}

.brand img {
  display: block;
  width: 87px;
  height: auto;
}

.header nav {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 14px;
}

.header nav>a:not(.nav-contact):hover {
  color: var(--blue);
}

.nav-contact {
  display: flex;
  gap: 25px;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  padding: 12px 0;
}

.nav-contact span {
  font-size: 21px;
}

.eyebrow {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 29px;
  font-size: 14px;
  letter-spacing: 1.5px;
}

h1 {
  font-size: clamp(46px,4.5vw,68px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -3px;
  margin: 0 0 25px;
}

h1>span,
h2>span {
  color: var(--blue);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  padding: 19px 24px;
  background: var(--blue);
  color: white;
  font-size: 15px;
  transition: background .2s;
}

.button:hover {
  background: #165b96;
}

.button span {
  font-size: 23px;
  line-height: 1;
}

h2 {
  font-weight: 500;
  font-size: clamp(34px,3.1vw,46px);
  letter-spacing: -1.9px;
  line-height: 1.13;
  margin: 0 0 25px;
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  gap: 22px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  padding: 25px 0;
}

summary::-webkit-details-marker {
  display: none;
}

h3 {
  font-weight: 500;
}

summary h3 {
  line-height: 1.4;
  margin: 0;
  flex: 1;
  font-size: 20px;
}

details[open] summary h3 {
  color: var(--blue);
}

.footer-brand {
  font-size: 25px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  display: block;
  line-height: 0;
}

.footer-brand span {
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 500;
  color: var(--gray);
  margin-left: 8px;
}

.copyright {
  font-size: 12px;
  color: var(--muted);
}

.legal-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.legal-links button {
  background: none;
  border: 0;
  padding: 10px 0;
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
}

.legal-links button:hover {
  color: var(--blue);
}

.legal-links>a {
  margin-left: 12px;
  font-size: 24px;
  color: var(--blue);
}

dialog {
  border: 0;
  width: calc(100% - 32px);
  max-width: 640px;
  max-height: 85vh;
  padding: 35px;
  color: var(--ink);
  box-shadow: 0 25px 100px #0003;
}

dialog::backdrop {
  background: #172435b8;
  backdrop-filter: blur(5px);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 20px;
}

.close {
  border: 0;
  background: var(--pale);
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 26px;
}

dialog h2 {
  font-size: 34px;
}

dialog h3 {
  font-size: 18px;
  margin-top: 26px;
}

dialog p {
  font-size: 15px;
  line-height: 1.7;
}

dialog a {
  color: var(--blue);
  overflow-wrap: anywhere;
}

body:has(dialog[open]) {
  overflow: hidden;
}

.skip {
  position: fixed;
  left: 20px;
  top: -100px;
  padding: 14px;
  background: var(--blue);
  color: white;
  z-index: 10;
}

.skip:focus {
  top: 10px;
}

@media(max-width:1000px) {
  .wrap {
    padding-left: 35px;
    padding-right: 35px;
  }

  .header {
    padding-left: 35px;
    padding-right: 35px;
  }

  h1 {
    font-size: 51px;
    letter-spacing: -2.5px;
  }
}

@media(max-width:720px) {
  .wrap {
    padding-left: 24px;
    padding-right: 24px;
  }

  .brand img {
    width: 72px;
  }

  .nav-contact {
    gap: 12px;
  }

  h1 {
    font-size: clamp(42px,8.5vw,59px);
    letter-spacing: -2px;
    line-height: 1.07;
  }

  h2 {
    font-size: 37px;
  }

  summary {
    padding: 22px 0;
    gap: 17px;
  }

  .legal-links>a {
    margin-left: auto;
  }

  dialog {
    padding: 24px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none!important;
  }
}

/* Footer identity. */

.footer-brand img {
  display: block;
  width: 94px;
  height: auto;
}

.button span,
.nav-contact span {
  font-family: Arial,Helvetica,sans-serif;
}

@media(max-width:720px) {
  .footer-brand img {
    width: 82px;
  }
}

/* Brand icons and mobile navigation */

.arrow-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  vertical-align: middle;
  transition: transform .2s ease;
}

.arrow-up {
  transform: rotate(-90deg);
}

a:hover>.arrow-icon:not(.arrow-up) {
  transform: translateX(3px);
}

.menu-toggle {
  display: none;
}

.header nav a {
  min-height: 44px;
  align-items: center;
}

.header nav>a:not(.nav-contact) {
  display: inline-flex;
}

.brand {
  flex-shrink: 0;
}

@media(max-width:720px) {
  .header {
    padding: 12px 24px;
    height: auto;
    min-height: 90px;
    flex-wrap: wrap;
    column-gap: 20px;
    position: sticky;
    top: 0;
    box-shadow: 0 1px 0 #dce0e5;
  }

  .menu-label {
    font-size: 14px;
  }

  .burger {
    display: block;
    position: relative;
    width: 22px;
    height: 20px;
  }

  .burger span {
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
    transition: transform .2s ease,top .2s ease;
  }

  .burger span:first-child {
    top: 6px;
  }

  .burger span:last-child {
    top: 13px;
  }

  .menu-toggle[aria-expanded="true"] .burger span:first-child {
    top: 9px;
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .burger span:last-child {
    top: 9px;
    transform: rotate(-45deg);
  }

  .button {
    min-height: 54px;
    gap: 22px;
  }

  .legal-links button,
  .legal-links>a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media(max-width:360px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .header {
    padding-left: 20px;
    padding-right: 20px;
  }

  h1 {
    font-size: 38px;
    letter-spacing: -1.7px;
  }
}

/* Mobile navigation panel. */

@media(max-width:720px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-height: 46px;
    border: 1px solid #d6dfe7;
    color: var(--ink);
    cursor: pointer;
    border-radius: 12px;
    padding: 11px 15px;
    box-shadow: 0 3px 9px #20252b08,0 1px 2px #20252b08;
    transition: border-color .2s,box-shadow .2s;
    background: #fff;
  }

  .menu-toggle:hover,
  .menu-toggle[aria-expanded="true"] {
    border-color: #1d71b866;
    box-shadow: 0 3px 14px #1d71b815;
  }

  .header nav {
    font-size: 13px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    position: absolute;
    top: calc(100% + 9px);
    left: 16px;
    right: 16px;
    width: auto;
    padding: 10px;
    border: 1px solid #dbe2e9;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 40px #20252b24,0 3px 10px #20252b0a;
    max-height: calc(100dvh - 115px);
    counter-reset: none;
  }

  .header nav.is-open {
    display: flex;
    animation: menu-appear .18s ease-out;
  }

  .header nav>a,
  .header nav>a:nth-child(2) {
    display: flex;
    padding: 19px 16px;
    min-height: 62px;
    font-size: 16px;
    border: 0;
    border-radius: 9px;
    gap: 16px;
  }

  .header nav>a:not(.nav-contact):hover {
    background: #f3f6f9;
  }

  .header nav>a.nav-contact {
    justify-content: space-between;
    border-bottom: 0;
    background: var(--blue);
    color: #fff;
    padding: 17px 18px;
    margin-top: 7px;
    min-height: 56px;
  }

  .header nav>a:focus-visible {
    outline-offset: -3px;
  }

  .header nav>a.nav-contact:focus-visible {
    outline-color: #fff;
  }

  .header:has(nav.is-open) {
    box-shadow: 0 1px 0 #dce0e5;
  }
}

@keyframes menu-appear {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media(prefers-reduced-motion:reduce) {
  .header nav.is-open {
    animation: none;
  }
}

/* Shared heading typography. */

@media(max-width:720px) {
  .eyebrow {
    margin-bottom: 25px;
    font-size: 14px;
  }

  summary h3 {
    font-size: 19px;
  }
}

/* Business address belongs with the footer identity. */

.footer-address {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray);
}

.footer-address>span {
  display: block;
  color: var(--ink);
  margin-bottom: 3px;
}

.footer-address address {
  font-style: normal;
}

@media(max-width:720px) {
  .footer-address {
    font-size: 14px;
  }

  .copyright {
    font-size: 11px;
  }

  .legal-links {
    justify-content: flex-start;
    gap: 25px;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
}

/* A shared, aligned footer for desktop and mobile. */

.site-footer {
  background: #f5f6f7;
  border-top: 1px solid var(--line);
  padding-top: 38px;
  padding-bottom: 14px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 32px;
}

.footer-identity {
  display: flex;
  align-items: center;
  gap: 32px;
  min-width: 0;
}

.site-footer .footer-brand {
  display: block;
  flex-shrink: 0;
}

.site-footer .footer-brand img {
  width: 112px;
  height: auto;
}

.site-footer .footer-address {
  display: block;
  border-left: 1px solid #d3d7dc;
  padding-left: 32px;
  font-size: 14px;
  line-height: 1.8;
}

.site-footer .footer-address>span {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 3px;
}

.site-footer .footer-address address {
  font-style: normal;
  color: var(--gray);
}

.footer-up {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border: 1px solid #d5dce3;
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
  transition: border-color .2s,box-shadow .2s;
}

.footer-up:hover {
  border-color: var(--blue);
  box-shadow: 0 3px 10px #1d71b812;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.site-footer .copyright {
  font-size: 12px;
  line-height: 1.6;
}

.site-footer .legal-links {
  display: flex;
  width: auto;
  padding: 0;
  border: 0;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 0;
}

.site-footer .legal-links button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  font-size: 13px;
}

@media(max-width:720px) {
  .footer-top {
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 26px;
  }

  .footer-identity {
    flex-direction: column;
    align-items: flex-start;
    gap: 21px;
  }

  .site-footer .footer-brand img {
    width: 94px;
  }

  .site-footer .footer-address {
    padding-left: 0;
    border-left: 0;
    line-height: 1.75;
    font-size: 14px;
  }

  .footer-up {
    width: 44px;
    height: 44px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding-top: 18px;
  }

  .site-footer .copyright {
    font-size: 12px;
  }
}

/* Compact privacy bar anchored to the viewport on every screen. */

.privacy-banner[hidden] {
  display: none;
}

.privacy-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-height: 55svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  background: #fff;
  border: 1px solid #ccd7e1;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  padding: 18px max(24px,calc((100vw - 1192px)/2)) calc(18px + env(safe-area-inset-bottom,0px));
  box-shadow: 0 -5px 24px #20252b14;
}

.privacy-copy {
  flex: 1;
  min-width: 0;
}

.privacy-copy h2 {
  font-size: 18px;
  letter-spacing: -.3px;
  line-height: 1.3;
  margin: 0 0 6px;
  font-weight: 500;
}

.privacy-copy p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray);
  margin: 0;
}

.privacy-details {
  background: none;
  border: 0;
  padding: 0;
  color: var(--blue);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.privacy-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  flex: 0 0 270px;
}

.privacy-actions button {
  min-height: 44px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 10px 16px;
  color: var(--blue);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s;
}

.privacy-actions button:hover {
  background: #edf5fb;
}

.privacy-actions button:active {
  background: #dcecf8;
}

@media(max-width:720px) {
  .privacy-banner {
    display: block;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom,0px));
    border-radius: 12px 12px 0 0;
  }

  .privacy-actions {
    margin-top: 12px;
    gap: 10px;
  }
}

/* Full legal pages share the same visual language and navigation as the site. */

.site-footer .legal-links .legal-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legal-page-link {
  font-size: 13px;
  color: var(--gray);
  padding: 12px 0;
  line-height: 1.5;
}

.legal-page-link:hover,
.legal-page-link[aria-current="page"] {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer .legal-links .legal-preview-button {
  justify-content: center;
  min-width: 40px;
  padding: 10px;
  border-radius: 6px;
  color: var(--gray);
}

.site-footer .legal-links .legal-preview-button:hover {
  background: #e9edf1;
  color: var(--blue);
}

.legal-preview-button[hidden] {
  display: none!important;
}

.legal-preview-button svg {
  width: 15px;
  height: 15px;
}

.legal-page {
  padding-top: 38px;
  padding-bottom: 88px;
}

.legal-intro {
  max-width: 850px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
}

.legal-intro .eyebrow {
  margin-bottom: 18px;
}

.legal-intro h1 {
  font-size: clamp(38px,5vw,64px);
  line-height: 1.15;
  letter-spacing: -2px;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}

.legal-intro>p:last-child {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray);
  margin: 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0,1fr);
  gap: 66px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 32px;
  border-left: 2px solid var(--line);
  padding-left: 21px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.5;
}

.legal-toc strong {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--gray);
}

.legal-toc a {
  display: block;
  padding: 6px 0;
  color: var(--gray);
}

.legal-toc a:hover {
  color: var(--blue);
}

.legal-content {
  max-width: 760px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.legal-content h2,
#legal-preview-content h2 {
  font-size: 24px;
  letter-spacing: -.5px;
  line-height: 1.35;
  margin: 42px 0 16px;
  color: var(--ink);
}

.legal-content h2:first-child,
#legal-preview-content h2:first-child {
  margin-top: 0;
}

#legal-preview-content h3 {
  font-size: 20px;
  letter-spacing: -.25px;
  line-height: 1.4;
  margin: 28px 0 14px;
  color: var(--ink);
}

#legal-preview-content h3:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li,
.legal-content address,
#legal-preview-content p,
#legal-preview-content li,
#legal-preview-content address {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray);
}

.legal-content p,
#legal-preview-content p {
  margin: 0 0 18px;
}

.legal-content address,
#legal-preview-content address {
  font-style: normal;
  margin: 0 0 18px;
}

.legal-content strong,
#legal-preview-content strong {
  font-weight: 600;
  color: var(--ink);
}

.legal-content a,
#legal-preview-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content ul,
#legal-preview-content ul {
  padding-left: 23px;
  margin: 0 0 22px;
}

.legal-content li,
#legal-preview-content li {
  padding-left: 3px;
  margin-bottom: 8px;
}

.legal-content code,
#legal-preview-content code {
  font-size: .9em;
  overflow-wrap: anywhere;
}

.legal-preview {
  max-width: 850px;
  padding: 0;
  max-height: calc(100dvh - 48px);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.legal-preview .dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 18px 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}

.dialog-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  letter-spacing: 0;
}

.dialog-actions>a {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.legal-preview .close {
  border-radius: 6px;
  min-width: 44px;
  min-height: 44px;
}

.legal-preview>h2 {
  margin: 30px 32px 24px;
  font-size: 34px;
  letter-spacing: -1px;
  overflow-wrap: anywhere;
}

#legal-preview-content {
  padding: 0 32px 30px;
  overflow-wrap: anywhere;
}

@media(max-width:1000px) {
  .legal-layout {
    grid-template-columns: 190px minmax(0,1fr);
    gap: 38px;
  }
}

@media(max-width:720px) {
  .legal-page {
    padding-top: 22px;
    padding-bottom: 55px;
  }

  .legal-intro {
    margin-bottom: 30px;
    padding-bottom: 24px;
  }

  .legal-intro h1 {
    font-size: clamp(32px,8.1vw,46px);
    letter-spacing: -1.25px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .legal-toc {
    position: static;
    display: block;
    padding-left: 17px;
  }

  .legal-toc strong {
    display: block;
    margin-bottom: 10px;
  }

  .legal-toc a {
    padding: 5px 0;
  }

  .legal-content h2,
  #legal-preview-content h2 {
    font-size: 22px;
    margin-top: 34px;
  }

  #legal-preview-content h3 {
    font-size: 19px;
  }

  .legal-content p,
  .legal-content li,
  .legal-content address,
  #legal-preview-content p,
  #legal-preview-content li,
  #legal-preview-content address {
    font-size: 15px;
    line-height: 1.75;
  }

  .legal-preview {
    max-height: calc(100dvh - 24px);
  }

  .legal-preview .dialog-head {
    padding: 12px 17px;
    gap: 10px;
  }

  .dialog-actions {
    gap: 14px;
  }

  .legal-preview>h2 {
    margin: 24px 20px 22px;
    font-size: 30px;
  }

  #legal-preview-content {
    padding: 0 20px 24px;
  }
}

@media print {
  .header,
  .site-footer,
  .privacy-banner,
  .legal-toc,
  dialog {
    display: none!important;
  }

  .legal-layout {
    display: block;
  }

  .legal-page {
    padding: 0;
  }

  .legal-intro {
    margin-bottom: 24px;
  }

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

  body {
    padding: 0;
  }
}

/* Privacy notice controls for the shared bottom bar. */

.privacy-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.privacy-close {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin: -4px 0 0;
  padding: 0;
  border: 1px solid #ccd7e1;
  border-radius: 6px;
  background: #fff;
  color: var(--gray);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.privacy-close[hidden] {
  display: none;
}

.privacy-copy .privacy-necessary,
.privacy-copy .privacy-status {
  font-size: 12px;
  line-height: 1.45;
  margin-top: 5px;
}

.privacy-copy .privacy-status {
  color: #51565b;
}

.privacy-banner :focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

@media(max-width:720px) {
  .privacy-copy .privacy-necessary,
  .privacy-copy .privacy-status {
    font-size: 12px;
  }
}

/* Desktop navigation aligned with the page, with a separate contact accent. */

@media (min-width: 721px) {
  .header {
    max-width: 1320px;
    column-gap: 40px;
    border-bottom-color: #edf1f5;
  }

  .header nav {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(20px, 2.5vw, 36px);
    font-family: inherit;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -.2px;
  }

  .header nav > a {
    position: relative;
    padding: 14px 0;
    color: #3b4652;
    white-space: nowrap;
    transition: color .18s ease;
  }

  .header nav > a:first-child {
    grid-column: 2;
  }

  .header nav > a:nth-child(2) {
    grid-column: 3;
  }

  .header nav > a:not(.nav-contact)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--blue);
    opacity: 0;
    transform: scaleX(.4);
    transform-origin: left;
    transition: opacity .18s ease, transform .18s ease;
  }

  .header nav > a:not(.nav-contact):is(:hover, :focus-visible) {
    color: var(--blue);
  }

  .header nav > a:not(.nav-contact):is(:hover, :focus-visible)::after {
    opacity: 1;
    transform: scaleX(1);
  }

  .header nav > .nav-contact {
    grid-column: 5;
    gap: 13px;
    border: 0;
    color: var(--blue);
    font-weight: 600;
  }

  .header .nav-contact > .arrow-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    padding: 8px;
    border-radius: 50%;
    background: #edf5fc;
    transition: background .18s ease, color .18s ease, transform .18s ease;
  }

  .header .nav-contact:is(:hover, :focus-visible) > .arrow-icon {
    color: #fff;
    background: var(--blue);
    transform: translateX(2px);
  }
}

@media (min-width: 721px) and (max-width: 1000px) {
  .header {
    column-gap: 28px;
  }

  .header nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 16px;
  }

  .header nav > .nav-contact {
    gap: 10px;
  }

  .header .nav-contact > .arrow-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    padding: 7px;
  }
}

/* Center the complete footer on small screens, including wrapped legal links. */

@media (max-width: 720px) {
  .site-footer {
    padding-top: 30px;
    padding-bottom: 17px;
    text-align: center;
  }

  .site-footer .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }

  .site-footer .footer-identity {
    align-items: center;
  }

  .site-footer .footer-bottom {
    align-items: center;
    gap: 10px;
  }

  .site-footer .legal-links {
    width: 100%;
    justify-content: center;
    column-gap: 16px;
    row-gap: 0;
  }
}
