/* ==========================================================
   Legal pages (tv-legal__*) — Impressum and Datenschutz.
   Uses tokens and .tv-wrap / .tv-btn from main.css
   ========================================================== */

/* ---------- hero ---------- */
.tv-legal__hero {
  position: relative;
  padding: 56px 0 60px;
  background:
    linear-gradient(100deg, rgba(8, 39, 83, .96) 0%, rgba(80, 4, 214, .9) 55%, rgba(95, 5, 255, .8) 100%),
    var(--tv-head);
  overflow: hidden;
}
.tv-legal__hero::before {
  content: "";
  position: absolute;
  right: -90px; bottom: -130px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: var(--tv-yellow);
  opacity: .92;
}
.tv-legal__hero::after {
  content: "";
  position: absolute;
  right: 200px; top: -70px;
  width: 150px; height: 150px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25);
}
.tv-legal__hero-in { position: relative; z-index: 1; }

.tv-legal__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .85);
}
.tv-legal__crumbs a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, .4);
}
.tv-legal__crumbs a:hover,
.tv-legal__crumbs a:focus-visible { color: var(--tv-yellow); text-decoration-color: var(--tv-yellow); }
.tv-legal__crumbs a:focus-visible { outline-color: #fff; }
.tv-legal__crumbs-sep { opacity: .6; }

.tv-legal__eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 12px;
  border-radius: 4px;
  background: rgba(24, 0, 96, .72);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.6;
  text-transform: uppercase;
  color: #fff;
}
.tv-legal__h1 {
  max-width: 820px;
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #fff;
}
.tv-legal__lead {
  max-width: 660px;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: #fff;
}

/* ---------- layout ---------- */
.tv-legal__main { padding: 64px 0 90px; background: #fff; }
.tv-legal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}
.tv-legal__grid > * { min-width: 0; }
.tv-legal__content { max-width: 800px; }

/* ---------- sections and cards ---------- */
.tv-legal__sec { margin: 0 0 40px; scroll-margin-top: var(--tv-anchor-offset); }
.tv-legal__sec:last-child { margin-bottom: 0; }
.tv-legal__h2 {
  position: relative;
  margin: 0 0 20px;
  padding-bottom: 14px;
  font-size: 28px;
  line-height: 1.25;
  color: var(--tv-head);
}
.tv-legal__h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 3px;
  background: var(--tv-yellow);
}
.tv-legal__card {
  margin: 0 0 18px;
  padding: 28px 30px;
  border: 1px solid var(--tv-line);
  border-left: 4px solid var(--tv-purple);
  background: #fff;
  box-shadow: 0 10px 40px rgba(190, 190, 190, .2);
  font-size: 16px;
  line-height: 1.7;
  color: var(--tv-text);
  overflow-wrap: anywhere;
}
.tv-legal__card > :last-child { margin-bottom: 0; }
.tv-legal__card strong { color: var(--tv-head); }
.tv-legal__h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
  color: var(--tv-head);
}
.tv-legal__card p + .tv-legal__h3,
.tv-legal__dl + .tv-legal__h3,
.tv-legal__list + .tv-legal__h3 { margin-top: 22px; }

.tv-legal__link {
  color: var(--tv-purple);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(95, 5, 255, .35);
  cursor: pointer;
}
.tv-legal__link:hover,
.tv-legal__link:focus-visible {
  color: var(--tv-head);
  text-decoration-color: var(--tv-yellow);
}

.tv-legal__note {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--tv-yellow);
  background: var(--tv-soft);
  font-size: 15px;
  line-height: 1.6;
  color: var(--tv-text);
}

/* ---------- label / value rows ---------- */
.tv-legal__dl { margin: 0 0 16px; padding: 0; }
.tv-legal__row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--tv-line);
}
.tv-legal__row:first-child { padding-top: 0; }
.tv-legal__row:last-child { border-bottom: 0; padding-bottom: 0; }
.tv-legal__row > * { min-width: 0; }
.tv-legal__row dt { margin: 0; font-weight: 600; color: var(--tv-head); }
.tv-legal__row dd { margin: 0; }

/* ---------- list ---------- */
.tv-legal__list { margin: 0 0 16px; }
.tv-legal__list li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 22px;
}
.tv-legal__list li:last-child { margin-bottom: 0; }
.tv-legal__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--tv-purple);
}

/* ---------- aside: call box (impressum) ---------- */
.tv-legal__aside { position: sticky; top: 140px; }
.tv-legal__cta {
  padding: 30px 28px;
  background: var(--tv-purple);
  color: #fff;
}
.tv-legal__cta-ttl {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.25;
  color: #fff;
}
.tv-legal__cta-txt { margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: #fff; }
.tv-legal__cta .tv-btn { width: 100%; }
.tv-legal__cta-link {
  display: inline-block;
  margin-top: 18px;
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, .45);
  cursor: pointer;
}
.tv-legal__cta-link:hover,
.tv-legal__cta-link:focus-visible { color: var(--tv-yellow); text-decoration-color: var(--tv-yellow); }
.tv-legal__cta-link:focus-visible { outline-color: #fff; }

/* ---------- aside: table of contents (datenschutz) ---------- */
.tv-legal__toc {
  padding: 26px 26px 22px;
  border: 1px solid var(--tv-line);
  background: var(--tv-soft);
}
.tv-legal__toc-ttl {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tv-purple);
}
.tv-legal__toc-list li { margin: 0; }
.tv-legal__toc-list a {
  display: block;
  padding: 8px 0 8px 14px;
  border-left: 2px solid var(--tv-line);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--tv-head);
  cursor: pointer;
}
.tv-legal__toc-list a:hover,
.tv-legal__toc-list a:focus-visible {
  border-left-color: var(--tv-purple);
  color: var(--tv-purple);
  background: #fff;
}

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .tv-legal__grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; }
  .tv-legal__h1 { font-size: 36px; }
}

@media (max-width: 1024px) {
  .tv-legal__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .tv-legal__content { max-width: none; }
  .tv-legal__aside { position: static; }
  .tv-legal__aside--toc { order: -1; }
  .tv-legal__toc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .tv-legal__hero::before { width: 240px; height: 240px; }
  .tv-legal__hero::after { right: 120px; }
}

@media (max-width: 768px) {
  .tv-legal__hero { padding: 40px 0 44px; }
  .tv-legal__hero::before { right: -110px; bottom: -120px; width: 200px; height: 200px; }
  .tv-legal__hero::after { display: none; }
  .tv-legal__h1 { font-size: 30px; }
  .tv-legal__lead { font-size: 16px; }
  .tv-legal__main { padding: 44px 0 64px; }
  .tv-legal__h2 { font-size: 24px; }
  .tv-legal__card { padding: 22px 22px; }
  .tv-legal__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

@media (max-width: 480px) {
  .tv-legal__crumbs { margin-bottom: 18px; }
  .tv-legal__eyebrow { font-size: 12px; letter-spacing: .14em; }
  .tv-legal__h1 { font-size: 26px; }
  .tv-legal__h2 { font-size: 22px; }
  .tv-legal__h3 { font-size: 18px; }
  .tv-legal__card { padding: 20px 18px; font-size: 15px; }
  .tv-legal__toc-list { grid-template-columns: minmax(0, 1fr); }
  .tv-legal__cta { padding: 26px 20px; }
  .tv-legal__cta .tv-btn { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 375px) {
  .tv-legal__h1 { font-size: 24px; }
  .tv-legal__card { padding: 18px 16px; }
  .tv-legal__sec { margin-bottom: 32px; }
}
