/* =============================================
   WASHTUBE — LEGAL PAGES (AGB / Datenschutz)
   ============================================= */

/* ── OUTER PAGE WRAPPER ── */
.wt-legal-page {
  background: var(--gray-light);
  min-height: 80vh;
}

/* ── HERO ── */
.wt-legal-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #005a94 60%, var(--blue-light) 100%);
  padding: 52px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.wt-legal-hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 44px;
  background: var(--gray-light);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.wt-legal-hero-inner { position: relative; z-index: 1; }
.wt-legal-hero-badge {
  font-size: 40px; display: block; margin-bottom: 14px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.2));
}
.wt-legal-hero h1 {
  font-size: clamp(22px, 4vw, 36px); font-weight: 800;
  color: #fff; margin: 0 0 10px; line-height: 1.15;
}
.wt-legal-hero p {
  font-size: 14px; color: rgba(255,255,255,.75); margin: 0;
}

/* ── PRINT BAR ── */
.wt-legal-print-bar {
  max-width: 1100px; margin: 0 auto;
  padding: 14px 24px 0;
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.wt-legal-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #888;
}
.wt-legal-breadcrumb a { color: var(--blue-mid); text-decoration: none; }
.wt-legal-breadcrumb a:hover { text-decoration: underline; }
.wt-legal-breadcrumb span { color: #ccc; }
.wt-legal-print-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1.5px solid var(--gray-border);
  border-radius: 8px; padding: 7px 16px;
  font-size: 12px; font-weight: 600; color: #555;
  cursor: pointer; transition: border-color .2s, color .2s;
  font-family: inherit;
}
.wt-legal-print-btn:hover { border-color: var(--blue-mid); color: var(--blue-mid); }
.wt-legal-print-btn svg { width: 14px; height: 14px; }

/* ── TWO-COLUMN LAYOUT ── */
.wt-legal-body {
  max-width: 1100px; margin: 0 auto;
  padding: 24px 24px 72px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

/* ── TABLE OF CONTENTS (sidebar) ── */
.wt-legal-toc {
  position: sticky; top: 90px;
}
.wt-legal-toc-inner {
  background: #fff; border: 1.5px solid var(--gray-border);
  border-radius: 14px; padding: 20px; overflow: hidden;
}
.wt-legal-toc h3 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: #888; margin: 0 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--gray-border);
}
.wt-legal-toc nav { display: flex; flex-direction: column; gap: 2px; }
.wt-legal-toc nav a {
  display: block; padding: 7px 10px; border-radius: 7px;
  font-size: 12px; color: var(--text-mid); text-decoration: none;
  transition: background .15s, color .15s;
  line-height: 1.35;
}
.wt-legal-toc nav a:hover,
.wt-legal-toc nav a.is-active {
  background: #eff6fb; color: var(--blue-mid); font-weight: 600;
}

/* ── MAIN CONTENT ── */
.wt-legal-content {
  background: #fff; border: 1.5px solid var(--gray-border);
  border-radius: 14px; padding: 40px 44px;
  font-size: 15px; line-height: 1.8; color: var(--text-dark);
}

.wt-legal-content h1 {
  font-size: 1.9rem; font-weight: 800; color: var(--blue-dark);
  margin: 0 0 6px;
}
.wt-legal-updated {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #888;
  background: var(--gray-light); border-radius: 20px;
  padding: 4px 12px; margin-bottom: 36px;
}

.wt-legal-content h2 {
  font-size: 1.1rem; font-weight: 700; color: var(--blue-dark);
  margin: 40px 0 12px;
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 10px; border-bottom: 1px solid var(--gray-border);
  scroll-margin-top: 100px;
}
.wt-legal-content h2 .wt-legal-h2-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 6px;
  background: var(--blue-mid); color: #fff;
  border-radius: 7px; font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}

.wt-legal-content h3 {
  font-size: 1rem; font-weight: 700; color: var(--text-dark);
  margin: 22px 0 8px;
}

.wt-legal-content p { margin: 0 0 14px; }

.wt-legal-content ul,
.wt-legal-content ol { margin: 0 0 14px 22px; }
.wt-legal-content li { margin-bottom: 6px; }

.wt-legal-content a { color: var(--blue-mid); }
.wt-legal-content a:hover { text-decoration: underline; }

.wt-legal-content strong { color: var(--text-dark); font-weight: 700; }

/* Info/highlight box */
.wt-legal-box {
  background: #f0f7fd; border: 1px solid #c6dff0;
  border-left: 4px solid var(--blue-mid);
  border-radius: 8px; padding: 18px 20px; margin: 20px 0;
}
.wt-legal-box h3 { margin-top: 0; color: var(--blue-dark); }
.wt-legal-box p:last-child { margin-bottom: 0; }

/* Warning box */
.wt-legal-box--warn {
  background: #fffbf0; border-color: #f1cb53;
  border-left-color: var(--gold);
}

/* Table */
.wt-legal-content table {
  width: 100%; border-collapse: collapse;
  margin: 16px 0 20px; font-size: 13px;
}
.wt-legal-content th,
.wt-legal-content td {
  border: 1px solid var(--gray-border);
  padding: 10px 14px; text-align: left; vertical-align: top;
}
.wt-legal-content th {
  background: var(--gray-light); font-weight: 700;
  color: var(--blue-dark); font-size: 12px; text-transform: uppercase;
  letter-spacing: .3px;
}
.wt-legal-content tr:hover td { background: #fafbfd; }

/* Rights list (DSGVO rights) */
.wt-legal-rights {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 14px 0;
}
.wt-legal-right-item {
  background: var(--gray-light); border-radius: 10px;
  padding: 14px 16px; display: flex; align-items: flex-start; gap: 10px;
}
.wt-legal-right-icon {
  font-size: 18px; flex-shrink: 0; margin-top: 2px;
}
.wt-legal-right-item strong { display: block; font-size: 13px; color: var(--blue-dark); margin-bottom: 3px; }
.wt-legal-right-item p { font-size: 12px; color: #666; margin: 0; line-height: 1.5; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .wt-legal-body {
    grid-template-columns: 1fr;
  }
  .wt-legal-toc {
    position: static;
    order: 2; /* show TOC below content on mobile, or move to top */
  }
  .wt-legal-content { order: 1; }
  .wt-legal-toc-inner {
    display: none; /* hidden on mobile — they scroll naturally */
  }
}
@media (max-width: 600px) {
  .wt-legal-hero { padding: 40px 16px 66px; }
  .wt-legal-body { padding: 16px 16px 56px; }
  .wt-legal-content { padding: 24px 20px; }
  .wt-legal-content h1 { font-size: 1.5rem; }
  .wt-legal-rights { grid-template-columns: 1fr; }
  .wt-legal-content table { display: block; overflow-x: auto; }
}

/* ── PRINT ── */
@media print {
  .wt-legal-hero { background: #003d6b !important; -webkit-print-color-adjust: exact; }
  .wt-legal-toc, .wt-legal-print-bar, .wt-header-wrap, .wt-topbar,
  .wt-footer, .wt-cs-overlay, .wt-cart-sidebar { display: none !important; }
  .wt-legal-body { grid-template-columns: 1fr; }
  .wt-legal-content { border: none; padding: 0; box-shadow: none; }
}

/* ================================================================
   IT-RECHT KANZLEI LEGAL TEXT
   Injected as real DOM, so the rules above already style it.
   ================================================================ */

/* Rendered in PHP, so no JS toggling: either the live text or the stored copy. */

/* Their markup has no classes, so keep it inside the page's measure. */
.wt-legal-content .wt-itrk img { max-width: 100%; height: auto; }
.wt-legal-content .wt-itrk a { word-break: break-word; }
.wt-legal-content .wt-itrk [hidden] { display: none !important; }
.wt-legal-content .wt-itrk b { color: var(--text-dark); }
.wt-legal-content .wt-itrk > :first-child { margin-top: 0; }
