.rechtliches {
  --legal-paper: #fffaf4;
  --legal-line: #d7cadb;
  --legal-violet: #64447a;
  --legal-accent: #dfff72;
}

.rechtliches [id] { scroll-margin-top: .65rem; }

.rechtliches-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(1.05rem, 3.65vw, 3.55rem);
  border-radius: .75rem;
  background: radial-gradient(ellipse at 92% 10%, #573a67, #251c30 72%);
  color: #fff8f1;
}

.rechtliches-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -4rem;
  width: clamp(12rem, 33vw, 31rem);
  aspect-ratio: 1;
  transform: translateY(-50%) rotate(-26deg);
  border-radius: 50%;
  background: repeating-radial-gradient(ellipse at 62% 65%, transparent 0 1.07rem, #ddbbe032 1.1rem 1.15rem);
  mask-image: radial-gradient(ellipse at center, #000 5%, transparent 69%);
  pointer-events: none;
}

.rechtliches-hero .company-kicker { color: #edccf5; }

.rechtliches-hero h1 {
  margin: 0;
  font-size: clamp(1.95rem, 5.85vw, 5.65rem);
  line-height: 1.02;
  letter-spacing: -.052em;
  hyphens: auto;
}

.rechtliches-lead {
  max-width: 57ch;
  margin: .85rem 0 0;
  color: #f0e2f1;
  font-size: clamp(1rem, 1.6vw, 1.19rem);
}

.rechtliches-pages {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-block: 1rem clamp(1.15rem, 3vw, 2.8rem);
}

.rechtliches-pages a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .35rem .85rem;
  border: 1px solid var(--legal-line);
  border-radius: .42rem;
  background: var(--legal-paper);
  color: var(--company-ink);
  font-weight: 690;
  text-decoration: none;
}

.rechtliches-pages a:hover { background: #ede3f2; }

.rechtliches-pages a[aria-current="page"] {
  border-color: var(--company-deep);
  background: var(--company-deep);
  color: var(--legal-accent);
}

.rechtliches-layout {
  display: grid;
  max-width: 76rem;
  gap: clamp(.85rem, 2.5vw, 2rem);
  align-items: start;
}

.rechtliches-layout--chapters {
  grid-template-columns: minmax(13rem, 1fr) minmax(0, 3fr);
}

.rechtliches-copy,
.rechtliches-index {
  min-width: 0;
  padding: clamp(.85rem, 2.8vw, 2.7rem);
  border: 1px solid var(--legal-line);
  border-radius: .75rem;
  background: var(--legal-paper);
}

.rechtliches-index {
  padding: clamp(.75rem, 1.65vw, 1.35rem);
  background: #efe5f2;
}

.rechtliches-index h2 {
  margin: 0 0 .45rem;
  font-size: 1.35rem;
}

.rechtliches-index ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rechtliches-index li + li { border-top: 1px solid var(--legal-line); }

.rechtliches-index a {
  display: block;
  padding: .43rem .15rem;
  color: var(--company-ink);
  font-size: .92rem;
  line-height: 1.36;
  text-decoration: none;
}

.rechtliches-index a:hover,
.rechtliches-index a:focus-visible { color: #532663; text-decoration: underline; }

.rechtliches-copy :is(p, li) {
  max-width: 70ch;
  line-height: 1.68;
}

.rechtliches-copy p { margin: .65rem 0 0; }
.rechtliches-copy ul { padding-inline-start: 1.3rem; }
.rechtliches-copy li + li { margin-top: .35rem; }

.rechtliches-copy h2 {
  max-width: 38ch;
  margin: clamp(1.5rem, 3.1vw, 2.7rem) 0 .62rem;
  padding-top: clamp(.85rem, 2vw, 1.5rem);
  border-top: 1px solid var(--legal-line);
  font-size: clamp(1.32rem, 2.4vw, 2.15rem);
  line-height: 1.16;
  letter-spacing: -.026em;
}

.rechtliches-copy > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.rechtliches-copy h2:target { color: var(--legal-violet); }

.rechtliches-copy a {
  color: #5b326c;
  text-decoration: underline;
  text-underline-offset: .16em;
}

.rechtliches-copy a:hover { color: #371c45; }

.rechtliches-copy [data-open-analytics-settings] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-block: .45rem .1rem;
  padding: .38rem .75rem;
  border: 1px solid #bb9ec9;
  border-radius: .42rem;
  background: #efe2f4;
  font-weight: 690;
  line-height: 1.3;
}

.rechtliches-copy [data-open-analytics-settings]:hover { background: #e7d4ee; }

.rechtliches a:focus-visible {
  outline: 2px solid #64377b;
  outline-offset: 3px;
}

.rechtliches-facts { margin: 0; }

.rechtliches-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: .5rem 1.2rem;
  padding-block: .75rem;
}

.rechtliches-facts > div + div { border-top: 1px solid var(--legal-line); }
.rechtliches-facts dt { color: var(--company-muted); font-weight: 640; }
.rechtliches-facts dd { margin: 0; font-weight: 630; }

@media (max-width: 760px) {
  .rechtliches-layout--chapters { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .rechtliches-facts > div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
}
