/* ============================================================
   LEGAL PAGES (Impressum, Datenschutz)
   ============================================================ */

.legal-hero {
  padding: 8rem 1.5rem 4rem;
  background: transparent;
  border-bottom: 1px solid var(--border);
}

.legal-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.legal-section {
  padding: 4rem 1.5rem 6rem;
}

.legal-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 2.25rem;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s;
  position: relative;
}

.legal-card:hover {
  border-color: var(--border-hov);
}

.legal-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
}

.legal-card-icon svg {
  width: 18px;
  height: 18px;
}

.legal-card h2 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--txt-1);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.legal-block {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.legal-block p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--txt-2);
}

.legal-block h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--txt-1);
  margin-top: 0.5rem;
}

.legal-block strong {
  color: var(--txt-1);
  font-weight: 600;
}

.legal-block a {
  color: var(--accent-a);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.legal-block a:hover {
  opacity: 0.75;
}

.legal-note {
  font-size: 0.78rem !important;
  color: var(--accent-a) !important;
  font-style: italic;
  background: var(--icon-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.legal-back {
  margin-top: 1rem;
}

/* ============================================================
   ERROR PAGES (404, 500)
   ============================================================ */

.error-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem;
}

.error-inner {
  max-width: 600px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

.error-glow-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--glow-1);
  border-radius: 50%;
  filter: blur(120px);
  top: 10%;
  left: -10%;
  animation: gfl 7s ease-in-out infinite;
  z-index: 0;
}

.error-glow-2 {
  position: absolute;
  width: 380px;
  height: 380px;
  background: var(--glow-2);
  border-radius: 50%;
  filter: blur(100px);
  bottom: 10%;
  right: -5%;
  animation: gfl 9s ease-in-out infinite reverse;
  z-index: 0;
}

.error-content {
  position: relative;
  z-index: 2;
}

.error-code {
  font-family: var(--font-head);
  font-size: clamp(7rem, 20vw, 12rem);
  font-weight: 700;
  line-height: 1;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.error-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--txt-1);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.error-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--txt-2);
  max-width: 440px;
  margin: 0 auto 2.5rem;
}

/* ============================================================
   FOOTER LINKS
   ============================================================ */

.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--txt-3);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--txt-1);
}

@media(max-width: 640px) {
  .legal-card {
    padding: 1.5rem;
  }

  .legal-hero {
    padding: 6rem 1.25rem 3rem;
  }

  .footer-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}
