/* =====================================================================
   Glichekom · Public-Site · Impressum + Datenschutz (Premium-Look)
   v20260524-legal-1
   ===================================================================== */

.gk-legal {
  padding-block: 140px 100px;
  position: relative;
}

/* Soft Orange-Glow im Hintergrund — passt zum Rest der Site */
.gk-legal::before {
  content: "";
  position: absolute;
  top: 90px;
  left: 50%;
  width: 720px; height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,122,0,0.10) 0%, rgba(255,122,0,0) 60%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.gk-legal__body {
  max-width: 880px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ===== Hero ===== */
.gk-legal__hero {
  text-align: center;
  margin-bottom: 56px;
}
.gk-legal__hero .gk-eyebrow {
  margin-bottom: 14px;
}
.gk-legal__hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin: 0 0 18px;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: #fff;
  font-weight: 800;
}
.gk-legal__hero .gk-legal__intro {
  color: var(--gk-muted, #9ba9b9);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.55;
}

/* ===== Anbieter-Card oben (Quick-Facts) ===== */
.gk-legal__company {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  padding: 28px 32px;
  margin-bottom: 56px;
  border-radius: 22px;
  background:
    radial-gradient(80% 100% at 0% 0%, rgba(255,122,0,0.10) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(180deg, rgba(255,255,255,0.045) 0%, rgba(255,255,255,0.012) 100%);
  border: 1px solid rgba(255,122,0,0.22);
  box-shadow: 0 22px 70px rgba(0,0,0,0.40);
  position: relative;
  overflow: hidden;
}
.gk-legal__company::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(255,122,0,0.45), transparent 40%);
  border-radius: 22px;
  z-index: -1;
  opacity: 0.4;
  filter: blur(18px);
  pointer-events: none;
}
.gk-legal__company-left h2 {
  margin: 0 0 4px;
  font-size: 1.65rem;
  color: #fff;
  letter-spacing: -0.005em;
}
.gk-legal__company-left .gk-legal__form {
  color: #ff9a3d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.gk-legal__company-left p {
  margin: 6px 0 0;
  color: #d3dbe5;
  font-size: 0.96rem;
  line-height: 1.55;
}
.gk-legal__company-right {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border-left: 1px solid rgba(255,255,255,0.08);
  padding-left: 28px;
}
.gk-legal__fact {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 4px 10px;
  padding: 6px 0;
}
.gk-legal__fact dt {
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.gk-legal__fact dd {
  margin: 0;
  color: #ecf2f8;
  font-size: 0.94rem;
  font-weight: 500;
  word-break: break-word;
}
.gk-legal__fact dd a {
  color: #ff9a3d;
  text-decoration: none;
}
.gk-legal__fact dd a:hover { text-decoration: underline; }

/* ===== Section-Karten ===== */
.gk-legal__section {
  margin-bottom: 22px;
  padding: 26px 30px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.008));
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  transition: border-color 0.3s ease;
}
.gk-legal__section:hover {
  border-color: rgba(255,122,0,0.20);
}
.gk-legal__section h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.003em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.gk-legal__section h2::before {
  content: "";
  display: block;
  width: 6px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, #ff7a00, #ff9a3d);
  flex-shrink: 0;
}
.gk-legal__section h3 {
  margin: 16px 0 8px;
  font-size: 0.98rem;
  color: #ecf2f8;
  font-weight: 700;
}
.gk-legal__section p,
.gk-legal__section ul {
  color: #b6becc;
  font-size: 0.93rem;
  line-height: 1.65;
  margin: 8px 0;
}
.gk-legal__section ul {
  padding-left: 0;
  list-style: none;
}
.gk-legal__section li {
  padding: 6px 0 6px 26px;
  position: relative;
}
.gk-legal__section li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 14px; height: 2px;
  background: linear-gradient(90deg, #ff7a00, transparent);
}
.gk-legal__section strong { color: #fff; font-weight: 700; }
.gk-legal__section a { color: #ff9a3d; text-decoration: none; }
.gk-legal__section a:hover { text-decoration: underline; }

/* ===== Hosting-Card (besonders hervorgehoben) ===== */
.gk-legal__section--host {
  background: linear-gradient(135deg, rgba(98,168,255,0.06), rgba(255,255,255,0.012));
  border-color: rgba(98,168,255,0.18);
}
.gk-legal__section--host h2::before {
  background: linear-gradient(180deg, #62a8ff, #88d3ff);
}

/* ===== USt-ID Card ===== */
.gk-legal__section--ust {
  background: linear-gradient(135deg, rgba(255,122,0,0.10), rgba(255,255,255,0.012));
  border-color: rgba(255,122,0,0.28);
}
.gk-legal__section--ust p strong {
  color: #ff9a3d;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* ===== Quick-Facts auf Datenschutz-Seite (z.B. "Keine Cookies", "Server DE") ===== */
.gk-legal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 40px;
  justify-content: center;
}
.gk-legal__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 0.86rem;
  color: #ecf2f8;
}
.gk-legal__chip .gk-legal__chip-icon {
  color: #ff9a3d;
  font-weight: 800;
}
.gk-legal__chip--good {
  background: rgba(70,200,140,0.10);
  border-color: rgba(70,200,140,0.30);
}
.gk-legal__chip--good .gk-legal__chip-icon { color: #88e4b0; }

/* ===== Inhaltsverzeichnis (Sticky-Sidebar nur auf großen Screens) ===== */
.gk-legal__toc {
  display: none;
}
@media (min-width: 1180px) {
  .gk-legal--with-toc .gk-legal__body {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    max-width: 1100px;
  }
  .gk-legal--with-toc .gk-legal__hero,
  .gk-legal--with-toc .gk-legal__company,
  .gk-legal--with-toc .gk-legal__chips,
  .gk-legal--with-toc .gk-legal__back {
    grid-column: 1 / -1;
  }
  .gk-legal__toc {
    display: block;
    position: sticky;
    top: 100px;
    align-self: start;
    padding: 18px 16px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }
  .gk-legal__toc h4 {
    margin: 0 0 12px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.55);
    font-weight: 700;
  }
  .gk-legal__toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
  }
  .gk-legal__toc li {
    counter-increment: toc;
    margin: 0;
  }
  .gk-legal__toc a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    color: #b6becc;
    text-decoration: none;
    font-size: 0.86rem;
    line-height: 1.35;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: color 0.2s ease;
  }
  .gk-legal__toc a::before {
    content: counter(toc, decimal-leading-zero);
    color: rgba(255,122,0,0.6);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-size: 0.78rem;
    flex-shrink: 0;
    padding-top: 1px;
  }
  .gk-legal__toc a:hover {
    color: #fff;
  }
  .gk-legal__sections { min-width: 0; }
}

/* ===== Zurueck-Button ===== */
.gk-legal__back {
  margin-top: 48px;
  text-align: center;
}
.gk-legal__back a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  background: rgba(255,122,0,0.10);
  border: 1px solid rgba(255,122,0,0.30);
  color: #ff9a3d;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}
.gk-legal__back a:hover {
  background: rgba(255,122,0,0.18);
  transform: translateX(-3px);
}

/* ===== Mobile ===== */
@media (max-width: 860px) {
  .gk-legal {
    padding-block: 110px 60px;
  }
  .gk-legal__company {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .gk-legal__company-right {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-left: 0;
    padding-top: 18px;
    margin-top: 18px;
  }
  .gk-legal__section {
    padding: 22px;
  }
  .gk-legal__hero h1 {
    font-size: 2rem;
  }
}
@media (max-width: 480px) {
  .gk-legal__fact {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .gk-legal__chips {
    flex-direction: column;
    align-items: stretch;
  }
  .gk-legal__chip {
    justify-content: center;
  }
}
