/*
 * Rechtliche Seiten: Impressum & Datenschutz
 * Layout und Typografie für Editor-Inhalte.
 */

.tm-legal-page {
  background: #ffffff;
  color: #0f172a;
}

/* Template muss die globale Standard-Seitenbreite überschreiben.
   Sonst wird der Hero-Hintergrund durch .site-main auf Containerbreite begrenzt. */
.tm-legal-page.site-main {
  width: 100%;
  max-width: none;
  margin: 0;
}

.tm-legal-content.entry-content {
  width: 100%;
  max-width: 920px;
  margin: 0;
  padding: 0;
}

.tm-legal-container {
  width: min(100% - 40px, 920px);
  margin: 0 auto;
}

.tm-legal-hero {
  padding: 96px 0 40px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.tm-legal-eyebrow {
  margin: 0 0 14px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}

.tm-legal-title {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.tm-legal-content-section {
  padding: 64px 0 96px;
}

.tm-legal-content {
  max-width: 920px;
  font-size: 1rem;
  line-height: 1.75;
  color: #334155;
}

.tm-legal-content > *:first-child {
  margin-top: 0;
}

.tm-legal-content > *:last-child {
  margin-bottom: 0;
}

.tm-legal-content h2 {
  margin: 2.2em 0 0.7em;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.tm-legal-content h3 {
  margin: 1.8em 0 0.65em;
  font-size: 1.2rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #0f172a;
}

.tm-legal-content h4 {
  margin: 1.6em 0 0.6em;
  font-size: 1.05rem;
  line-height: 1.4;
  color: #0f172a;
}

.tm-legal-content p,
.tm-legal-content ul,
.tm-legal-content ol,
.tm-legal-content blockquote,
.tm-legal-content table {
  margin-top: 0;
  margin-bottom: 1.2em;
}

.tm-legal-content ul,
.tm-legal-content ol {
  padding-left: 1.4em;
}

.tm-legal-content li {
  margin-bottom: 0.45em;
}

.tm-legal-content a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.tm-legal-content a:hover,
.tm-legal-content a:focus-visible {
  color: #1d4ed8;
}

.tm-legal-content strong,
.tm-legal-content b {
  color: #0f172a;
  font-weight: 700;
}

.tm-legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.55;
}

.tm-legal-content th,
.tm-legal-content td {
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.tm-legal-content th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
}

.tm-legal-content .wp-block-table {
  overflow-x: auto;
}

.tm-legal-content hr {
  margin: 2.4rem 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 767px) {
  .tm-legal-container {
    width: min(100% - 32px, 920px);
  }

  .tm-legal-hero {
    padding: 72px 0 32px;
  }

  .tm-legal-content-section {
    padding: 44px 0 72px;
  }

  .tm-legal-content {
    font-size: 0.98rem;
  }
}
