/* =====================================================================
   Rosenheimer Türnotdienst 24 — legal.css (rt-legal__)
   Impressum + Datenschutz. Uses tokens from main.css.
   ===================================================================== */

/* Hero */
.rt-legal__hero {
  background: var(--rt-ink);
  background-image: radial-gradient(circle at 85% 20%, rgba(216, 7, 88, 0.28), transparent 46%);
  padding: 54px 0 56px;
  color: #ffffff;
}
.rt-legal__crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
  font-size: 14px; line-height: 1.4; margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.78);
}
.rt-legal__crumbs a { color: #ffffff; font-weight: 700; transition: color .3s ease; }
.rt-legal__crumbs a:hover, .rt-legal__crumbs a:focus-visible { color: var(--rt-gold); text-decoration: underline; }
.rt-legal__crumbs-sep { opacity: 0.5; }
.rt-legal__h1 {
  font-size: 62px; line-height: 1.04; color: #ffffff; margin-bottom: 18px;
}
.rt-legal__lead {
  max-width: 720px; font-size: 17px; line-height: 1.75; color: rgba(255, 255, 255, 0.92);
}

/* Main */
.rt-legal__main { padding: 70px 0 90px; background: #ffffff; }
.rt-legal__layout {
  display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; align-items: start;
}
.rt-legal__layout > * { min-width: 0; }

/* Table of contents */
.rt-legal__toc {
  position: sticky; top: calc(var(--rt-nav-h) + 20px);
  background: var(--rt-soft); border-left: 3px solid var(--rt-accent);
  padding: 24px 22px;
}
.rt-legal__toc-title { font-size: 24px; color: var(--rt-ink); margin-bottom: 14px; }
.rt-legal__toc-list { counter-reset: toc; display: flex; flex-direction: column; gap: 4px; }
.rt-legal__toc-list li { counter-increment: toc; position: relative; padding-left: 28px; }
.rt-legal__toc-list li::before {
  content: counter(toc) "."; position: absolute; left: 0; top: 4px;
  font-family: var(--rt-head); font-weight: 700; font-size: 17px; line-height: 1.4; color: var(--rt-accent);
}
.rt-legal__toc-list a {
  display: block; padding: 4px 0; font-size: 15px; line-height: 1.45; color: var(--rt-text); font-weight: 600;
  transition: color .3s ease;
}
.rt-legal__toc-list a:hover, .rt-legal__toc-list a:focus-visible { color: var(--rt-accent); text-decoration: underline; }

/* Impressum fact cards */
.rt-legal__facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 60px;
}
.rt-legal__facts > * { min-width: 0; }
.rt-legal__fact {
  position: relative; background: var(--rt-soft); border-top: 3px solid var(--rt-accent);
  padding: 74px 28px 28px; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere;
}
.rt-legal__fact-ic {
  display: block; position: absolute; top: 24px; left: 28px; width: 40px; height: 40px; background: var(--rt-accent);
}
.rt-legal__fact-ic > img {
  position: absolute; top: 50%; left: 50%; width: 22px; height: 22px;
  transform: translate(-50%, -50%); filter: brightness(0) invert(1);
}
.rt-legal__fact-title { font-size: 26px; color: var(--rt-ink); margin-bottom: 10px; }
.rt-legal__fact strong { color: var(--rt-ink); }

/* Document column */
.rt-legal__doc { max-width: 820px; }
.rt-legal__facts + .rt-legal__doc { margin: 0 auto; }
.rt-legal__sec { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--rt-line); }
.rt-legal__sec[id] { scroll-margin-top: calc(var(--rt-nav-h) + 16px); }
.rt-legal__h2 {
  position: relative; font-size: 38px; line-height: 1.1; color: var(--rt-ink);
  padding-bottom: 16px; margin-bottom: 20px;
}
.rt-legal__h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 3px; background: var(--rt-accent);
}
.rt-legal__h3 { font-size: 26px; line-height: 1.15; color: var(--rt-ink); margin: 28px 0 10px; }
.rt-legal__sec p { font-size: 16.5px; line-height: 1.85; color: var(--rt-text); margin-bottom: 14px; overflow-wrap: anywhere; }
.rt-legal__sec p:last-child { margin-bottom: 0; }
.rt-legal__sec strong { color: var(--rt-ink); }

.rt-legal__list { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.rt-legal__list li {
  position: relative; padding-left: 26px; font-size: 16.5px; line-height: 1.75; color: var(--rt-text);
}
.rt-legal__list li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 8px; height: 8px; background: var(--rt-accent);
}

.rt-legal__box {
  background: var(--rt-soft); border-left: 3px solid var(--rt-accent); padding: 22px 26px; margin-top: 14px;
}
.rt-legal__box p { margin-bottom: 12px; }

.rt-legal__link {
  color: var(--rt-accent); font-weight: 700; border-bottom: 1px solid transparent;
  overflow-wrap: anywhere; cursor: pointer;
  transition: color .3s ease, border-color .3s ease;
}
.rt-legal__link:hover, .rt-legal__link:focus-visible { color: var(--rt-ink); border-bottom-color: var(--rt-ink); }

/* Bottom call strip */
.rt-legal__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--rt-ink); padding: 30px 34px;
}
.rt-legal__cta > * { min-width: 0; }
.rt-legal__cta-text {
  font-family: var(--rt-head); font-size: 28px; line-height: 1.2; font-weight: 600; color: #ffffff;
}
.rt-legal__cta-btn { flex: 0 0 auto; white-space: nowrap; }
.rt-legal__cta-btn > span { color: inherit; }
.rt-legal__cta-btn:hover, .rt-legal__cta-btn:focus-visible { background: #ffffff; color: var(--rt-ink); border-color: #ffffff; }

/* Responsive */
@media (max-width: 1200px) {
  .rt-legal__layout { grid-template-columns: 230px minmax(0, 1fr); gap: 40px; }
  .rt-legal__h1 { font-size: 56px; }
}
@media (max-width: 1024px) {
  .rt-legal__layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .rt-legal__toc { position: static; }
  .rt-legal__toc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .rt-legal__facts { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 44px; }
  .rt-legal__doc { max-width: none; }
  .rt-legal__main { padding: 56px 0 72px; }
}
@media (max-width: 768px) {
  .rt-legal__hero { padding: 40px 0 42px; }
  .rt-legal__h1 { font-size: 46px; }
  .rt-legal__lead { font-size: 16px; }
  .rt-legal__h2 { font-size: 32px; }
  .rt-legal__h3 { font-size: 24px; }
  .rt-legal__toc-list { grid-template-columns: minmax(0, 1fr); }
  .rt-legal__sec { padding-bottom: 28px; margin-bottom: 28px; }
  .rt-legal__cta { flex-direction: column; align-items: stretch; text-align: center; padding: 26px 22px; }
  .rt-legal__cta-btn { justify-content: center; }
}
@media (max-width: 480px) {
  .rt-legal__h1 { font-size: 38px; }
  .rt-legal__main { padding: 44px 0 60px; }
  .rt-legal__h2 { font-size: 28px; }
  .rt-legal__sec p, .rt-legal__list li { font-size: 16px; line-height: 1.75; }
  .rt-legal__fact { padding: 70px 20px 22px; }
  .rt-legal__fact-ic { left: 20px; }
  .rt-legal__fact-title { font-size: 24px; }
  .rt-legal__box { padding: 18px 18px; }
  .rt-legal__cta-text { font-size: 24px; }
}
@media (max-width: 375px) {
  .rt-legal__h1 { font-size: 34px; }
  .rt-legal__h2 { font-size: 26px; }
  .rt-legal__toc { padding: 20px 16px; }
}
