@font-face {
  font-family: "Vela Legal";
  src: url("assets/fonts/vela-sans/VelaSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Vela Legal";
  src: url("assets/fonts/vela-sans/VelaSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

.legal-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #242a30;
  font: 400 17px/1.65 "Vela Legal", Arial, sans-serif;
}

.legal-page a { color: inherit; }
.legal-page a:focus-visible, a.consent-document:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.legal-header { border-bottom: 1px solid #e0e3e5; }
.legal-header-inner {
  max-width: 1312px;
  margin-inline: auto;
  padding: 20px clamp(20px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.legal-brand img { display: block; width: clamp(144px, 18vw, 196px); height: auto; }
.legal-site-nav, .footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.legal-site-nav { font-size: 15px; }

.legal-content, .legal-footer {
  box-sizing: border-box;
  width: min(calc(100% - clamp(40px, 8vw, 96px)), 860px);
  margin-inline: auto;
}

.legal-content {
  flex: 1;
  padding-block: clamp(48px, 8vw, 108px);
  overflow-wrap: anywhere;
}

.legal-content h1 {
  margin: 0 0 24px;
  font: 500 clamp(32px, 5vw, 56px)/1.1 "Vela Legal", Arial, sans-serif;
  text-wrap: balance;
}

.legal-draft { color: #4c545a; }
.legal-footer {
  border-top: 1px solid #e0e3e5;
  padding-block: 20px 28px;
  font-size: 14px;
}

.legal-footer a[aria-current="page"] { font-weight: 500; }
.site-footer .footer-legal { justify-content: flex-end; }
.site-footer .footer-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
}
.site-footer .footer-legal a:hover { color: #ffb00e; }

a.consent-document {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .16em;
}

.contact-consent label, .calculator-check label, .measurement-consent label { cursor: pointer; }
#lead-form .contact-consent label { display: inline; }

@media (max-width: 600px) {
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .site-footer .footer-legal { flex-basis: 100%; }
}
