/* Legal page specific styles. Extracted from inline wp_head output so the page can be maintained like the other custom subpages. */

.legal-page {
  position: relative;
  color: #f7f9fc;
}

.legal-page-section {
  padding: 168px 0 72px;
}

.legal-page-container {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
}

.legal-page-head {
  margin-bottom: 28px;
}

.legal-page-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  color: #d6e1f7;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.legal-page h1 {
  margin: 18px 0 0;
  color: #ffffff;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.legal-page-content,
.legal-page-content .wp-block-group,
.legal-page-content .wp-block-post-content {
  background: transparent !important;
}

.legal-page-content,
.legal-page-content p,
.legal-page-content li {
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
}

.legal-page-content h1,
.legal-page-content h2,
.legal-page-content h3,
.legal-page-content h4,
.legal-page-content h5,
.legal-page-content h6 {
  color: #ffffff;
}

.legal-page-content a {
  color: #9fe8ff;
}

@media (max-width: 768px) {
  .legal-page-section {
    padding: 136px 0 56px;
  }

  .legal-page-container {
    width: min(900px, calc(100% - 32px));
  }
}

/* =====================================
   Legal page – Astra wrapper dark fix
   Sicher: nur für page-legal.php
   ===================================== */

body.page-template-page-legal,
body.page-template-page-legal-php {
  background:
    radial-gradient(circle at 18% 12%, rgba(37, 244, 238, 0.14), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(254, 44, 85, 0.12), transparent 22%),
    radial-gradient(circle at 70% 42%, rgba(139, 92, 246, 0.10), transparent 20%),
    linear-gradient(180deg, #060914 0%, #050816 100%) !important;
  color: #f7f9fc;
}

body.page-template-page-legal .site,
body.page-template-page-legal-php .site,
body.page-template-page-legal #page,
body.page-template-page-legal-php #page,
body.page-template-page-legal .site-content,
body.page-template-page-legal-php .site-content,
body.page-template-page-legal .ast-container,
body.page-template-page-legal-php .ast-container,
body.page-template-page-legal #content,
body.page-template-page-legal-php #content,
body.page-template-page-legal .content-area,
body.page-template-page-legal-php .content-area,
body.page-template-page-legal .entry-content,
body.page-template-page-legal-php .entry-content,
body.page-template-page-legal article,
body.page-template-page-legal-php article {
  background: transparent !important;
}

body.page-template-page-legal #primary,
body.page-template-page-legal-php #primary,
body.page-template-page-legal #main,
body.page-template-page-legal-php #main {
  background: transparent !important;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.page-template-page-legal .site-content,
body.page-template-page-legal-php .site-content {
  min-height: 100vh;
}

#legal-page {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 244, 238, 0.10), transparent 34%),
    radial-gradient(circle at top right, rgba(255, 0, 122, 0.10), transparent 30%),
    linear-gradient(180deg, #07111f 0%, #091526 52%, #07111f 100%);
}

.legal-page-section {
  position: relative;
  z-index: 1;
}

.legal-page-container {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
}

.legal-page-content,
.legal-page-content .wp-block-group,
.legal-page-content .wp-block-post-content {
  background: transparent !important;
}

.legal-page-content hr {
  margin: 40px 0;
  border: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
}

.legal-page-content p,
.legal-page-content li {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.legal-page-content h1,
.legal-page-content h2,
.legal-page-content h3,
.legal-page-content h4,
.legal-page-content h5,
.legal-page-content h6,
.legal-page-content strong {
  color: #ffffff;
}

.legal-page-content a {
  color: #9fe8ff;
}

@media (max-width: 768px) {
  .legal-page-container {
    width: min(900px, calc(100% - 32px));
  }
}