/* ============================================================
   Rechtstexte (Template "legal")
   Ergänzt .legal-body aus kirby.css, nutzt die Tokens der Website.
   ============================================================ */

.legal-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  margin: 0 0 12px;
}

.legal-subtitle {
  font-size: var(--text-sm);
  color: var(--fg2);
  margin: 0 0 48px;
}

.legal-page .legal-body { overflow-wrap: break-word; }
.legal-page .legal-body h2 { line-height: 1.25; scroll-margin-top: 60px; }

.legal-page .legal-body a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page .legal-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0 24px;
}

/* Versprechen-Kasten */
.dse-versprechen {
  background: var(--bg-sunken);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
  margin: 32px 0 48px;
}

.legal-page .dse-versprechen h3 { margin: 0 0 14px; }

.legal-page .dse-versprechen ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-page .dse-versprechen li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}

.legal-page .dse-versprechen li:last-child { margin-bottom: 0; }

.dse-versprechen li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--accent);
}

/* Tabellen */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.table-scroll th,
.table-scroll td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.table-scroll th {
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
}

.table-scroll tbody tr:nth-child(even) td { background: var(--bg-sunken); }

/* PDF-Download, im Stil von .btn-primary */
.legal-page .legal-body a[href$=".pdf"] {
  display: inline-block;
  margin-top: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.legal-page .legal-body a[href$=".pdf"]:hover { background: var(--accent-hover); }

@media (max-width: 640px) {
  .dse-versprechen { padding: 20px; }
  .table-scroll table { min-width: 560px; }
}
