/* ── Shared styles for legal pages (Impressum / Datenschutz) ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-deep:   #0a1628;
  --blue-mid:    #0d2147;
  --blue-glow:   #1d4ed8;
  --blue-light:  #2563eb;
  --cyan:        #0891b2;
  --dim:         #475569;
  --text-main:   #0f172a;
  --bg:          #f8fafc;
  --border:      rgba(30,64,175,.12);
}

html, body {
  background: var(--bg);
  color: var(--text-main);
  font-family: 'Exo 2', sans-serif;
  overflow-x: hidden;
}

/* ── Background ── */
.bg {
  position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -5%, #dbeafe 0%, #f8fafc 60%);
}
.grid-lines {
  position: fixed; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(30,64,175,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,64,175,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 100%);
}

/* ── Language Switcher ── */
.lang-switch {
  position: fixed; top: 16px; right: 20px; z-index: 100;
  display: flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border: 1px solid rgba(30,64,175,.15); border-radius: 6px; padding: 4px;
}
@media (max-width: 768px) { .lang-switch { position: absolute; } }
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: .8rem; letter-spacing: .1em; color: var(--dim);
  padding: 4px 10px; border-radius: 4px; transition: all .2s;
}
.lang-btn.active { background: linear-gradient(135deg, #0d2147, #1d4ed8); color: #fff; }

/* ── Layout ── */
.legal-page {
  position: relative; z-index: 10;
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 120px;
}

.legal-logo { display: block; margin-bottom: 40px; }
.legal-logo img {
  width: min(360px, 70vw);
  filter: drop-shadow(0 4px 24px rgba(30,64,175,.12));
}

.legal-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #0d2147 20%, #1d4ed8 55%, #0891b2 85%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.legal-lead {
  margin-top: 14px;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--dim);
  line-height: 1.7;
  max-width: 62ch;
}

.legal-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--blue-glow), var(--cyan), transparent);
  margin: 32px 0 8px;
}

/* ── Sections ── */
.legal-section { margin-top: 34px; }
.legal-section h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: .95rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(30,64,175,.9);
  margin-bottom: 12px;
  display: flex; align-items: baseline; gap: 10px;
}
.legal-section h2::before {
  content: '';
  width: 14px; height: 2px; flex: none;
  background: linear-gradient(90deg, var(--blue-glow), var(--cyan));
}
.legal-section h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: .85rem; font-weight: 700;
  letter-spacing: .1em;
  color: var(--blue-mid);
  margin: 18px 0 6px;
}
.legal-section p {
  font-size: .88rem; line-height: 1.75;
  color: var(--dim);
  margin-bottom: 10px;
  max-width: 72ch;
}
.legal-section ul {
  margin: 0 0 12px 0; padding-left: 0; list-style: none;
  max-width: 72ch;
}
.legal-section li {
  font-size: .88rem; line-height: 1.7;
  color: var(--dim);
  padding-left: 18px; position: relative;
  margin-bottom: 6px;
}
.legal-section li::before {
  content: '◆';
  position: absolute; left: 0; top: .62em;
  color: var(--cyan); font-size: 7px; line-height: 1;
}
.legal-section strong { color: var(--text-main); font-weight: 600; }
.legal-section a { color: var(--blue-light); text-decoration: none; border-bottom: 1px solid rgba(37,99,235,.3); }
.legal-section a:hover { border-bottom-color: var(--blue-light); }

/* ── Data block ── */
.legal-card {
  background: rgba(255,255,255,.75);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 26px;
  backdrop-filter: blur(6px);
}
.legal-card p:last-child { margin-bottom: 0; }

.legal-dl { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 8px 20px; }
.legal-dl dt {
  font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(71,85,105,.75); font-weight: 600; padding-top: 2px;
}
.legal-dl dd { font-size: .88rem; line-height: 1.6; color: var(--text-main); }
.legal-dl dd a { color: var(--blue-light); text-decoration: none; border-bottom: 1px solid rgba(37,99,235,.3); }
.legal-dl dd a:hover { border-bottom-color: var(--blue-light); }
@media (max-width: 620px) {
  .legal-dl { grid-template-columns: 1fr; gap: 2px; }
  .legal-dl dd { margin-bottom: 12px; }
}

/* ── Note ── */
.legal-note {
  margin-top: 40px;
  padding: 14px 18px;
  border-left: 2px solid rgba(30,64,175,.25);
  background: rgba(219,234,254,.35);
  border-radius: 0 8px 8px 0;
  font-size: .78rem; line-height: 1.7; color: var(--dim);
  max-width: 72ch;
}

.legal-stand {
  margin-top: 34px;
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(71,85,105,.5);
}

/* ── Back link ── */
.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 44px;
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-light); text-decoration: none;
  padding: 10px 20px;
  border: 1px solid rgba(30,64,175,.25); border-radius: 6px;
  transition: all .25s;
}
.legal-back:hover {
  background: linear-gradient(135deg, #0d2147, #1d4ed8);
  color: #fff; border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(30,64,175,.25);
}
.legal-back svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ── Footer ── */
.footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  text-align: center; padding: 8px 16px;
  background: rgba(248,250,252,.95); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(30,64,175,.07);
  z-index: 20;
}
.footer-copy {
  font-size: .65rem; letter-spacing: .18em;
  color: rgba(71,85,105,.5); text-transform: uppercase;
}
.footer-legal-link {
  font-size: .58rem; letter-spacing: .18em;
  color: rgba(30,64,175,.45); text-transform: uppercase;
  text-decoration: none; margin-left: 12px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.footer-legal-link:hover { color: rgba(30,64,175,.8); border-color: rgba(30,64,175,.4); }
.footer-legal-link.is-current { color: rgba(30,64,175,.75); }
