/* V89: shared spacing for Impressum and Datenschutz.
   Font roles remain in typography-v76.css: Inter / Cormorant Garamond. */
body.legal-page {
  --legal-width: 960px;
  --legal-gutter: clamp(20px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
}

body.legal-page *,
body.legal-page *::before,
body.legal-page *::after {
  box-sizing: border-box;
}

body.legal-page > .gate-header,
body.legal-page > header > .wrap,
body.legal-page > .legal > .wrap,
body.legal-page > .gate-footer {
  width: min(var(--legal-width), calc(100% - 2 * var(--legal-gutter)));
  max-width: none;
  margin-inline: auto;
  min-width: 0;
}

body.legal-page > .gate-header {
  flex-shrink: 0;
  min-height: 80px;
  padding: 12px 0;
}

body.legal-page > .gate-header .gate-links > a {
  min-height: 44px;
  padding: 10px 0;
  color: #514b40;
  font-size: .875rem;
  line-height: 1.5;
  letter-spacing: .02em;
}

body.legal-page > header {
  flex-shrink: 0;
  padding: clamp(36px, 5vw, 56px) 0;
}

body.legal-page > header .eyebrow {
  margin: 0 0 16px;
}

body.legal-page > header h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5.4vw, 4.5rem);
  overflow-wrap: anywhere;
  hyphens: auto;
}

body.legal-page > header p {
  max-width: 68ch;
  margin: 20px 0 0;
}

body.legal-page > .legal {
  flex: 1 0 auto;
  padding: clamp(28px, 4vw, 40px) 0 clamp(40px, 5vw, 64px);
}

body.legal-page .legal .card {
  margin: 0 0 24px;
  padding: clamp(20px, 3.4vw, 32px);
  overflow-wrap: anywhere;
}

body.legal-page .legal .card:last-child {
  margin-bottom: 0;
}

body.legal-page .legal .card h2 {
  margin: 0 0 20px;
  font-size: clamp(1.65rem, 2.8vw, 1.875rem);
  hyphens: auto;
}

body.legal-page .legal .card h3 {
  margin: 28px 0 12px;
  font-size: 1.5rem;
  hyphens: auto;
}

body.legal-page .legal .card > :last-child {
  margin-bottom: 0;
}

body.legal-page > .gate-footer {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-items: stretch;
  text-align: left;
  gap: 12px 28px;
  padding: 20px 0 28px;
  border-top: 1px solid #c8c2b7;
  color: #5e584f;
  font-size: .8125rem;
  line-height: 1.6;
  letter-spacing: 0;
}

body.legal-page > .gate-footer p {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

body.legal-page > .gate-footer .gate-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 24px;
}

body.legal-page > .gate-footer a {
  min-height: 44px;
  padding-block: 10px;
  color: #514b40;
  font-size: inherit;
  line-height: 1.5;
}

body.legal-page > .gate-footer .gate-admin {
  margin-left: 0;
  padding-left: 24px;
}

body.legal-page > .gate-footer .gate-admin::before {
  background: #c8c2b7;
}

body.legal-page > .gate-footer .gate-disclaimer {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 78ch;
  font-size: .75rem;
  line-height: 1.7;
  text-align: center;
}

body.legal-page > .gate-header a:hover,
body.legal-page > .gate-footer a:hover {
  color: #30291e;
  text-decoration: underline;
  text-underline-offset: .25em;
}

body.legal-page > .gate-header a:focus-visible,
body.legal-page > .gate-footer a:focus-visible {
  outline: 2px solid #675431;
  outline-offset: 4px;
  border-radius: 2px;
}

@media (max-width: 640px) {
  body.legal-page > .gate-header {
    min-height: 72px;
  }

  body.legal-page > .gate-footer {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 8px;
    padding: 20px 0 24px;
    text-align: center;
  }

  body.legal-page > .gate-footer .gate-footer-links {
    justify-content: center;
    gap: 4px 16px;
  }

  body.legal-page > .gate-footer .gate-admin {
    padding-left: 16px;
  }
}
