/* ══════════════════════════════════════════════════
   EFS GLOBAL — Legal Pages (Impressum / Datenschutz)
══════════════════════════════════════════════════ */

/* ── HEADER ──────────────────────────────────────── */
.legal-header {
  background: var(--black);
  padding: calc(70px + 64px) 0 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.legal-header__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin-bottom: 20px;
}
.legal-header__breadcrumb a {
  color: rgba(255,255,255,.45);
  transition: color var(--transition);
}
.legal-header__breadcrumb a:hover { color: rgba(255,255,255,.8); }
.legal-header__breadcrumb span:last-child { color: rgba(255,255,255,.7); }

.legal-header h1 {
  color: #fff;
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 12px;
}
.legal-header p {
  font-size: 15px;
  color: rgba(255,255,255,.5);
}

/* ── TABLE OF CONTENTS ───────────────────────────── */
.legal-toc {
  background: var(--cream);
  border-bottom: 1px solid var(--gray-200);
  padding: 24px 0;
}
.toc__inner {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.toc__inner strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-600);
  white-space: nowrap;
}
.toc__inner ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: decimal;
  padding-left: 20px;
}
.toc__inner ol li { font-size: 13px; }
.toc__inner a {
  color: var(--accent);
  font-weight: 500;
  transition: color var(--transition);
}
.toc__inner a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ── INTRO ───────────────────────────────────────── */
.legal-intro {
  background: var(--accent-bg);
  border: 1px solid rgba(0,82,255,.12);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 48px;
}
.legal-intro p {
  font-size: 15px;
  color: var(--gray-800);
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-intro p:last-child { margin-bottom: 0; }

/* ── MAIN CONTENT ────────────────────────────────── */
.legal-content {
  padding: 64px 0 80px;
  background: var(--white);
}
.legal-body { max-width: 820px; }

/* ── SECTION ─────────────────────────────────────── */
.legal-section {
  margin-bottom: 48px;
  scroll-margin-top: 90px;
  position: relative;
}

.legal-section__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--black);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.legal-section h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--black);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gray-100);
}

.legal-section h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
  margin: 24px 0 12px;
}

.legal-section h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 20px 0 10px;
}

/* ── CARD ─────────────────────────────────────────── */
.legal-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 16px;
}
.legal-card p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 14px;
}
.legal-card p:last-child { margin-bottom: 0; }
.legal-card a {
  color: var(--accent);
  text-decoration: underline;
  word-break: break-all;
}

/* ── TABLE ───────────────────────────────────────── */
.legal-table {
  border-collapse: collapse;
  font-size: 15px;
  width: auto;
  margin-top: 8px;
}
.legal-table td {
  padding: 5px 16px 5px 0;
  color: var(--gray-600);
  line-height: 1.6;
  vertical-align: top;
}
.legal-table td:first-child {
  font-weight: 600;
  color: var(--gray-800);
  white-space: nowrap;
}
.legal-table a { color: var(--accent); text-decoration: none; }
.legal-table a:hover { text-decoration: underline; }

/* ── LIST ────────────────────────────────────────── */
.legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}
.legal-list li {
  font-size: 14px;
  color: var(--gray-600);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.legal-list li::before {
  content: '—';
  color: var(--gray-400);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── INFO BOX ────────────────────────────────────── */
.legal-info {
  background: var(--cream);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-top: 16px;
}
.legal-info strong { color: var(--black); }

/* ── RIGHTS GRID ─────────────────────────────────── */
.rights-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}
.right-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.right-item__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  margin-top: 2px;
}
.right-item strong { display: block; font-size: 14px; margin-bottom: 4px; color: var(--black); }
.right-item p { font-size: 13px; color: var(--gray-600); margin: 0; line-height: 1.6; }

/* ── AUTHORITY CARD ──────────────────────────────── */
.authority-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-top: 12px;
  border: 1px solid var(--gray-200);
}
.authority-card strong { color: var(--black); font-size: 15px; }
.authority-card a { color: var(--accent); text-decoration: none; }
.authority-card a:hover { text-decoration: underline; }

/* ── META ────────────────────────────────────────── */
.legal-meta {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}
.legal-meta p {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.65;
  margin-bottom: 8px;
}

/* ── FOOTER OVERRIDE FOR LEGAL PAGES ────────────── */
.footer__bottom--legal {
  padding-top: 0;
  border: none;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  .legal-header { padding: calc(70px + 40px) 0 40px; }
  .toc__inner { flex-direction: column; gap: 12px; }
  .legal-card { padding: 20px; }
  .legal-content { padding: 40px 0 60px; }
}
