/* ============================================================
   LEGAL PAGES — shared stylesheet
   Used by impressum.html, privacy-policy.html, terms-of-use.html.
   These three pages are structurally identical long-form prose, so
   they deliberately share ONE stylesheet (an exception to the usual
   one-css-per-page rule). Layout mirrors contact.html: a chrome-less
   menu strip on top, then a solid-bordered card holding the content.
   ============================================================ */

/* ---- TOP SECTION (menu only) ----
   Strip the .sc-card chrome so the menu reads as a transparent strip —
   same pattern as .section--contactmenu. */
.section--legalmenu {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
.section--legalmenu::before,
.section--legalmenu::after {
  display: none !important;
}
.section--legalmenu .section__inner {
  padding-top: 0;
  padding-bottom: 0;
}

/* ---- LEGAL CONTENT CARD ---- */
.section--legal .section__inner {
  --legal-pad-x: 80px;
  padding: 96px var(--legal-pad-x) 120px;
}

/* readable measure for long-form prose */
.legal {
  max-width: 760px;
}

.legal__heading {
  margin: 0 0 12px;
  line-height: 1.05;
}

.legal__updated {
  margin: 0 0 56px;
  font-family: var(--sc-font-sans);
  font-size: var(--sc-text-sm);
  font-weight: var(--sc-weight-medium);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--sc-gray);
}

/* intro / lead paragraph sitting directly under the heading */
.legal__lead {
  margin: 0 0 48px;
  font-family: var(--sc-font-sans);
  font-size: var(--sc-text-md);
  font-weight: var(--sc-weight-regular);
  line-height: 1.55;
  color: var(--sc-ink);
}

/* each numbered/titled block */
.legal__section {
  margin: 0 0 40px;
}
.legal__section:last-child {
  margin-bottom: 0;
}

.legal__h2 {
  margin: 0 0 16px;
  font-family: var(--sc-font-sans);
  font-size: var(--sc-text-lg);
  font-weight: var(--sc-weight-bold);
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--sc-ink);
}

.legal__section p {
  margin: 0 0 16px;
  font-family: var(--sc-font-sans);
  font-size: var(--sc-text-md);
  font-weight: var(--sc-weight-regular);
  line-height: 1.55;
  color: var(--sc-ink);
}
.legal__section p:last-child {
  margin-bottom: 0;
}

.legal__section ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal__section li {
  margin: 0 0 8px;
  font-family: var(--sc-font-sans);
  font-size: var(--sc-text-md);
  font-weight: var(--sc-weight-regular);
  line-height: 1.5;
  color: var(--sc-ink);
}
.legal__section li:last-child {
  margin-bottom: 0;
}

/* definition-style rows for the imprint identity block */
.legal__dl {
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px 24px;
}
.legal__dl dt {
  margin: 0;
  font-family: var(--sc-font-sans);
  font-size: var(--sc-text-base);
  font-weight: var(--sc-weight-semibold);
  letter-spacing: 0.01em;
  color: var(--sc-gray);
}
.legal__dl dd {
  margin: 0;
  font-family: var(--sc-font-sans);
  font-size: var(--sc-text-md);
  font-weight: var(--sc-weight-regular);
  line-height: 1.5;
  color: var(--sc-ink);
}

/* accent links (email, phone, external) — brand orange */
.legal a {
  color: var(--sc-accent);
  text-decoration: none;
  transition: opacity 0.234s ease;
}
.legal a:hover {
  opacity: 0.78;
}
.legal a:focus-visible {
  outline: 2px solid var(--sc-accent);
  outline-offset: 2px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1400px) {
  .section--legal .section__inner {
    --legal-pad-x: 60px;
    padding: 80px var(--legal-pad-x) 100px;
  }
}

@media (max-width: 1100px) {
  .section--legal .section__inner {
    --legal-pad-x: 40px;
    padding: 64px var(--legal-pad-x) 80px;
  }
}

@media (max-width: 720px) {
  .section--legal .section__inner {
    --legal-pad-x: 20px;
    padding: 40px var(--legal-pad-x) 56px;
  }
  .legal__updated {
    margin-bottom: 40px;
  }
  .legal__section p,
  .legal__section li,
  .legal__dl dd {
    font-size: var(--sc-text-base);
  }
  .legal__dl {
    grid-template-columns: 1fr; /* stack label above value */
    gap: 2px 0;
  }
  .legal__dl dt {
    margin-top: 14px;
  }
  .legal__dl dt:first-child {
    margin-top: 0;
  }
}
