/* ════════════════════════════════════════════════════════════════
   LEGAL PAGES — Impressum & Datenschutz
   Extends the main glass design system
   ════════════════════════════════════════════════════════════════ */

/* ── Page base ───────────────────────────────────────────────── */
body {
  min-height: 100vh;
  background: #000;
}

/* Animated background gradient — subtle depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(255,255,255,0.025) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255,255,255,0.018) 0%, transparent 55%);
  pointer-events: none;
}

/* ── Layout wrapper ──────────────────────────────────────────── */
.legal-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: calc(var(--nav-top, 20px) + var(--nav-height, 52px) + 48px);
  padding-bottom: 100px;
}

.legal-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Page hero ───────────────────────────────────────────────── */
.legal-hero {
  margin-bottom: 48px;
}

.legal-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}

.legal-title {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: rgba(255,255,255,0.95);
  margin-bottom: 16px;
}

.legal-subtitle {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.38);
  letter-spacing: -0.005em;
  line-height: 1.6;
}

/* ── Back button ────────────────────────────────────────────── */
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  font-size: 13px;
  font-weight: 450;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: color 0.25s ease;
}

.legal-back:hover {
  color: rgba(255,255,255,0.80);
}

.legal-back svg {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.legal-back:hover svg {
  transform: translateX(-3px);
}

/* ── Glass info card (hero block) ───────────────────────────── */
.legal-info-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 28px 32px;

  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(40px) saturate(180%) brightness(108%);
  -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(108%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.35),
    0 2px 8px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -1px 0 rgba(255,255,255,0.04);
}

.legal-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  width: 70%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.50) 30%,
    rgba(255,255,255,0.75) 50%,
    rgba(255,255,255,0.50) 70%,
    transparent 100%
  );
  border-radius: 999px;
}

/* Two-column grid for contact info */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}

@media (max-width: 560px) {
  .info-grid { grid-template-columns: 1fr; gap: 20px; }
}

.info-block-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  margin-bottom: 8px;
}

.info-block-content {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.70);
  line-height: 1.65;
  letter-spacing: -0.005em;
}

.info-block-content a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.20);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.info-block-content a:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}

/* ── Content sections stack ─────────────────────────────────── */
.legal-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Individual section card ────────────────────────────────── */
.legal-section {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  padding: 24px 28px;

  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow:
    0 8px 24px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.30),
    inset 0 -1px 0 rgba(255,255,255,0.03);

  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.legal-section:hover {
  border-color: rgba(255,255,255,0.14);
  box-shadow:
    0 12px 32px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.38),
    inset 0 -1px 0 rgba(255,255,255,0.04);
}

.legal-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.28) 30%,
    rgba(255,255,255,0.45) 50%,
    rgba(255,255,255,0.28) 70%,
    transparent 100%
  );
  border-radius: 999px;
}

/* Section number badge */
.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.88);
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-body {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.48);
  line-height: 1.72;
  letter-spacing: -0.003em;
}

.section-body p + p {
  margin-top: 10px;
}

.section-body a {
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
  word-break: break-all;
}

.section-body a:hover {
  color: rgba(255,255,255,0.90);
  border-color: rgba(255,255,255,0.45);
}

.section-body strong {
  color: rgba(255,255,255,0.70);
  font-weight: 500;
}

/* Bullet list inside section body */
.section-body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 10px 0;
  padding-left: 4px;
}

.section-body ul li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.section-body ul li::before {
  content: '';
  flex-shrink: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  margin-top: 8px;
}

/* Sub-heading inside body (Zweck / Rechtsgrundlage) */
.section-body .sub-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-top: 14px;
  margin-bottom: 4px;
}

/* ── Stand / date footer line ───────────────────────────────── */
.legal-stand {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.22);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 680px) {
  .legal-page {
    padding-top: calc(20px + 52px + 32px);
  }

  .legal-info-card {
    padding: 20px 20px;
    border-radius: 20px;
  }

  .legal-section {
    padding: 18px 20px;
  }

  .legal-title {
    font-size: clamp(32px, 9vw, 48px);
  }
}
