:root {
  --legal-blue: #4176d9;
  --legal-blue-dark: #315fb5;
  --legal-ink: #172033;
  --legal-muted: #5d6a7e;
  --legal-border: rgba(65, 118, 217, 0.14);
  --legal-surface: #f4f7fc;
  --legal-card: rgba(255, 255, 255, 0.96);
  --legal-shadow: 0 24px 70px rgba(49, 95, 181, 0.12);
}

body.legal-page {
  min-height: 100vh;
  margin: 0;
  color: var(--legal-ink);
  background:
    radial-gradient(circle at top left, rgba(65, 118, 217, 0.08), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, var(--legal-surface) 52%, #ffffff 100%);
  font-family: "Roboto", Arial, sans-serif;
}

.legal-page main {
  overflow: hidden;
}

.legal-hero {
  position: relative;
  min-height: clamp(220px, 30vw, 340px);
  margin: 0;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.legal-hero--overnight {
  background-image:
    linear-gradient(105deg, rgba(18, 22, 28, 0.5) 0%, rgba(36, 40, 46, 0.24) 46%, rgba(255, 255, 255, 0.16) 100%),
    url("../../images/uebernachtung.avif");
}

.legal-hero--legal {
  background-image:
    linear-gradient(105deg, rgba(18, 22, 28, 0.5) 0%, rgba(36, 40, 46, 0.24) 46%, rgba(255, 255, 255, 0.16) 100%),
    url("../../images/zulassung.avif");
}

.legal-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -34%;
  left: -10%;
  height: 32%;
  background: rgba(255, 255, 255, 0.8);
  transform: rotate(-2deg);
}

.legal-hero .blue-cover {
  display: block;
  min-height: inherit;
  background: transparent;
}

.legal-hero .content {
  display: none;
}

.legal-page .section-container {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 40px));
  margin: clamp(34px, 5vw, 62px) auto clamp(54px, 8vw, 92px);
  padding: 0;
}

.legal-page .second-section {
  min-height: auto;
}

.legal-page .legal-content-card {
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--legal-border);
  border-radius: 32px;
  background: var(--legal-card);
  box-shadow: var(--legal-shadow);
  backdrop-filter: blur(14px);
}

.legal-page .secondcontent {
  max-width: 820px;
  margin: 0 auto;
}

.legal-page .section-title {
  position: relative;
  margin: 0 0 clamp(18px, 3vw, 28px);
  color: var(--legal-ink);
  font-family: "Roboto", Arial, sans-serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 520;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.legal-page .section-title::after {
  display: block;
  position: static;
  width: 72px;
  height: 3px;
  margin-top: 18px;
  margin-bottom: 4px;
  transform: none;
  border-radius: 999px;
  background: var(--legal-blue);
  content: "";
}

.legal-page p {
  color: var(--legal-muted);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.78;
}

.legal-page .boldtext {
  color: var(--legal-ink);
  font-weight: 650;
}

.legal-page a {
  color: var(--legal-blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.legal-page a:hover {
  color: var(--legal-blue);
}

@media (max-width: 720px) {
  .legal-hero {
    min-height: 210px;
  }

  .legal-page .section-container {
    width: min(100% - 24px, 560px);
    margin-top: 28px;
    margin-bottom: 56px;
  }

  .legal-page .legal-content-card {
    border-radius: 24px;
    padding: 26px 20px;
  }
}
