.contact-grid > *,
.lead-form > * {
  min-width: 0;
}

.contact-links a {
  overflow-wrap: anywhere;
}

.contact-links a[href^="mailto:"] {
  font-size: 28px;
  line-height: 1.35;
}

.footer-bottom {
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  max-width: 100%;
}

.footer-legal a {
  font-weight: 500;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.acceptance input,
.cf7-lead-form .wpcf7-acceptance input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #00766f;
}

.acceptance span,
.cf7-lead-form .wpcf7-list-item-label {
  min-width: 0;
}

.acceptance a,
.cf7-lead-form .wpcf7-acceptance a,
.form-privacy-note a {
  color: #006b6a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-privacy-note {
  display: block;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}

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

.legal-document {
  max-width: 820px;
  overflow-wrap: anywhere;
}

.legal-heading {
  margin-bottom: 38px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  color: #006b6a;
  font-size: 14px;
  font-weight: 700;
}

.legal-heading h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
}

.legal-heading p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.legal-content {
  color: #263946;
  font-size: 16px;
  line-height: 1.75;
}

.legal-content h2 {
  margin: 36px 0 14px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.35;
}

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

.legal-content ul {
  padding-left: 22px;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content a {
  color: #006b6a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:focus-visible,
.legal-back:focus-visible,
.footer-legal a:focus-visible,
.acceptance a:focus-visible,
.form-privacy-note a:focus-visible {
  outline: 2px solid #00766f;
  outline-offset: 4px;
}

@media (max-width: 680px) {
  .contact-links a[href^="mailto:"] {
    font-size: 20px;
  }

  .legal-page {
    padding: 130px 0 56px;
  }

  .legal-heading h1 {
    font-size: 30px;
  }

  .legal-content h2 {
    font-size: 21px;
  }

  .footer-legal {
    flex-direction: column;
    gap: 12px;
  }
}
