/* =====================================================================
   Steinfeld Stromer — legal.css (st-legal__)
   Impressum + Datenschutz. Uses :root tokens from main.css.
   ===================================================================== */

/* ---------- Hero ---------- */
.st-legal__hero {
  position: relative;
  background: var(--st-red);
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 46px);
  padding: 54px 0 50px;
  overflow: hidden;
}
.st-legal__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .85);
}
.st-legal__crumbs a {
  color: #fff;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, .45);
  cursor: pointer;
}
.st-legal__crumbs a:hover,
.st-legal__crumbs a:focus-visible { color: #fff; border-bottom-color: #fff; background: rgba(0, 0, 0, .18); }
.st-legal__crumbs-sep { opacity: .6; }
.st-legal__title {
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 900;
  color: #fff;
  margin: 0 0 14px;
}
.st-legal__lead {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.7;
  color: #fff;
}

/* ---------- Layout ---------- */
.st-legal__main { padding: 64px 0 96px; background: #fff; }
.st-legal__layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.st-legal__layout > * { min-width: 0; }

/* ---------- Side navigation ---------- */
.st-legal__toc {
  position: sticky;
  top: 112px;
  padding: 24px 24px 20px;
  background: var(--st-mist);
  border-left: 4px solid var(--st-red);
  border-radius: 0 var(--radius-1) var(--radius-1) 0;
}
.st-legal__toc-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--st-ink);
  margin: 0 0 12px;
}
.st-legal__toc-list { display: flex; flex-direction: column; gap: 2px; }
.st-legal__toc-list a {
  display: block;
  padding: 6px 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--st-text);
  cursor: pointer;
}
.st-legal__toc-list a:hover,
.st-legal__toc-list a:focus-visible { color: var(--st-red); text-decoration: underline; }

/* ---------- Content ---------- */
.st-legal__content { max-width: 800px; }
.st-legal__sec { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--st-line); scroll-margin-top: 112px; }
.st-legal__sec:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.st-legal__h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--st-ink);
  margin: 0 0 22px;
}
.st-legal__h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 14px;
  background: var(--st-red);
  border-radius: 2px;
}
.st-legal__h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--st-ink);
  margin: 28px 0 10px;
}
.st-legal__h2 + .st-legal__h3 { margin-top: 0; }
.st-legal__p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--st-text);
  overflow-wrap: anywhere;
}
.st-legal__p + .st-legal__p { margin-top: 14px; }
.st-legal__p strong { color: var(--st-ink); }

/* ---------- Links ---------- */
.st-legal__link {
  color: var(--st-red);
  font-weight: 600;
  border-bottom: 1px solid rgba(215, 0, 6, .35);
  cursor: pointer;
  overflow-wrap: anywhere;
  transition: color .25s ease, border-color .25s ease, background-color .25s ease;
}
.st-legal__link:hover,
.st-legal__link:focus-visible { color: #000; border-bottom-color: #000; }
.st-legal a[href^="tel:"].st-legal__link:hover { color: #000; }

/* ---------- Data rows ---------- */
.st-legal__rows {
  border: 1px solid var(--st-line);
  border-radius: var(--radius-1);
  background: #fff;
  box-shadow: var(--shadow-1);
}
.st-legal__row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 6px 24px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--st-line);
}
.st-legal__row:last-child { border-bottom: 0; }
.st-legal__p + .st-legal__rows { margin-top: 18px; }
.st-legal__rows + .st-legal__note { margin-top: 22px; }
.st-legal__row > * { min-width: 0; }
.st-legal__label {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--st-ink);
}
.st-legal__value { font-size: 16px; line-height: 1.7; color: var(--st-text); overflow-wrap: anywhere; }
.st-legal__value strong { color: var(--st-ink); }

/* ---------- Lists ---------- */
.st-legal__list { margin: 14px 0 0; display: flex; flex-direction: column; gap: 9px; }
.st-legal__list li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--st-text);
  overflow-wrap: anywhere;
}
.st-legal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--st-red);
}
.st-legal__list strong { color: var(--st-ink); }

/* ---------- Notes and boxes ---------- */
.st-legal__note {
  margin-top: 20px;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--st-red);
  font-size: 15px;
  line-height: 1.7;
  color: var(--st-text);
}
.st-legal__note strong { color: var(--st-ink); }
.st-legal__box {
  margin-top: 22px;
  padding: 28px 30px;
  background: var(--st-coal);
  border-radius: var(--radius-1);
}
.st-legal__box-title {
  font-family: 'Roboto', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 10px;
}
.st-legal__box-text { font-size: 15.5px; line-height: 1.8; color: rgba(255, 255, 255, .88); }
.st-legal__box-text + .st-legal__box-text { margin-top: 10px; }
.st-legal__box-text strong { color: #fff; }
.st-legal__box .st-legal__link { color: #fff; border-bottom-color: rgba(255, 255, 255, .55); }
.st-legal__box .st-legal__link:hover,
.st-legal__box .st-legal__link:focus-visible { color: var(--st-red-soft); border-bottom-color: var(--st-red-soft); }

/* ---------- Page end CTA (light) ---------- */
.st-legal__back {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .st-legal__layout { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 1024px) {
  .st-legal__hero { padding: 48px 0 44px; }
  .st-legal__main { padding: 52px 0 80px; }
  .st-legal__layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .st-legal__toc { position: static; }
  .st-legal__toc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .st-legal__content { max-width: none; }
}
@media (max-width: 768px) {
  .st-legal__hero { padding: 40px 0 36px; }
  .st-legal__lead { font-size: 16px; }
  .st-legal__main { padding: 40px 0 64px; }
  .st-legal__sec { padding-bottom: 32px; margin-bottom: 32px; }
  .st-legal__row { grid-template-columns: minmax(0, 1fr); padding: 14px 20px; gap: 2px; }
  .st-legal__box { padding: 24px 22px; }
  .st-legal__back .st-btn { width: 100%; }
}
@media (max-width: 480px) {
  .st-legal__toc { padding: 20px 18px 16px; }
  .st-legal__toc-list { grid-template-columns: minmax(0, 1fr); }
  .st-legal__p, .st-legal__value, .st-legal__list li { font-size: 15px; }
  .st-legal__h3 { font-size: 18px; }
  .st-legal__row { padding: 12px 16px; }
  .st-legal__box { padding: 20px 18px; }
}
@media (max-width: 375px) {
  .st-legal__title { font-size: 32px; }
  .st-legal__crumbs { font-size: 13px; }
  .st-legal__label { font-size: 12px; }
}
