/* 1.2.1: readable content on narrow screens, including stored WordPress pages.
   Fix intrinsic grid sizing and wrapping, rather than hiding overflowing text. */
.legal-content > *, .privacy-content > *,
.legal-card > *, .privacy-card > * {
  min-width: 0;
}
.legal-card, .privacy-card, .privacy-notice {
  overflow-wrap: anywhere;
}
.legal-contact-list a {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 1024px) {
  main :where(section, article, div, nav, footer, form, fieldset, details,
              summary, h1, h2, h3, p, address, a, li, label) {
    min-width: 0;
  }
  main :where(h1, h2, h3, p, address, a, li, label, summary) {
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .content-hero h1, .content-hero h1 span,
  .legal-hero h1, .page-section-heading h2, .about-copy h2,
  .local-intro h2, .content-cta h2, .privacy-card h2, .legal-card h2 {
    hyphens: auto;
    -webkit-hyphens: auto;
  }
  .content-hero h1, .legal-hero h1 {
    line-height: 1.04;
  }
  .legal-contact-list a {
    display: block;
    line-height: 1.65;
  }
  .legal-contact-list svg {
    display: inline-block;
    margin-right: 10px;
    vertical-align: -.15em;
  }
  .legal-card p strong {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  /* Long German headings remain readable, even without a hyphenation dictionary. */
  .content-page .content-hero {
    min-height: 0;
    padding: 9rem 20px 4rem;
  }
  .content-page .content-hero h1 {
    max-width: 100%;
    font-size: clamp(1.75rem, 8.7vw, 4.2rem);
    letter-spacing: -.055em;
    line-height: 1.08;
    overflow-wrap: anywhere;
    margin: 1.8rem 0;
  }
  .content-page .content-hero h1 span {
    -webkit-text-stroke-width: 1px;
  }
  .legal-page .legal-hero {
    padding: 5rem 20px 3.5rem;
  }
  .legal-page .legal-hero h1 {
    max-width: 100%;
    font-size: clamp(1.8rem, 11.5vw, 5.5rem);
    letter-spacing: -.06em;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }
  .privacy-page .privacy-hero h1 {
    font-size: clamp(2.6rem, 17vw, 6rem);
  }
  .privacy-content, .legal-content {
    grid-template-columns: minmax(0, 1fr);
    margin-inline: 20px;
  }
  .privacy-card, .legal-card, .legal-card-primary {
    grid-template-columns: minmax(0, 1fr);
    grid-row: auto;
    gap: 18px;
    min-height: 0;
    padding: 28px 20px;
  }
  .privacy-card-wide, .privacy-notice {
    grid-column: auto;
  }
  .privacy-card h2, .legal-card h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    line-height: 1.25;
    letter-spacing: -.035em;
  }
  .privacy-card p, .legal-card p,
  .privacy-card address, .legal-card address, .privacy-notice p {
    font-size: 1rem;
    line-height: 1.75;
  }
  .privacy-notice {
    padding: 28px 20px;
  }
  .legal-footer p, .legal-footer > div {
    max-width: 100%;
  }
  .page-section-heading, .about-intro, .local-intro, .more-regions,
  .content-cta, .discover-grid, .inquiry {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-section-heading h2, .about-copy h2, .reference-statement h2,
  .reference-discretion h2, .local-intro h2, .more-regions h2,
  .content-cta h2 {
    font-size: clamp(1.75rem, 8vw, 3.6rem);
    line-height: 1.1;
    letter-spacing: -.055em;
  }
  .section-heading h2, .process-top h2, .region-copy h2, .inquiry-intro h2 {
    font-size: clamp(2rem, 10.5vw, 4.5rem);
    line-height: 1.06;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
  .service-row {
    grid-template-columns: 34px minmax(0, 1fr) 28px;
  }
  .service-row p {
    grid-column: 2 / -1;
  }
  .discover-grid h3 {
    font-size: clamp(1.5rem, 7.5vw, 2.4rem);
    line-height: 1.15;
  }
  .te-faq-item summary, .faq-row summary {
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
  }
  .te-faq-item summary::after {
    flex: 0 0 auto;
  }
  .primary-button, .te-proof-link {
    max-width: 100%;
    white-space: normal;
    line-height: 1.5;
  }
  .primary-button svg, .te-proof-link .te-link-icon {
    flex-shrink: 0;
  }
  .location-line {
    line-height: 1.6;
    overflow-wrap: anywhere;
  }
  .location-line svg {
    flex-shrink: 0;
  }
}
