/* ============================================================
   Evolvio Learning — Legal pages (Impressum · Datenschutz · AGB)
   Navy header · cream reading area · Fraunces headings
   Palette matched to the Evolvio brand system.
   ============================================================ */

:root {
  --navy-deep: #0D2137;
  --navy-mid:  #1E3A5F;
  --green:     #6DB33F;
  --green-dk:  #4f7d2a;
  --green-light: #A8D470;
  --cream:     #F5F2EC;
  --white:     #FFFFFF;
  --ink:       #233044;
  --ink-soft:  #51617a;
  --line:      rgba(35,48,68,0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16.5px;
}

a { color: var(--green-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Top bar (navy) ---- */
.legal-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding: 18px clamp(20px, 5vw, 56px);
  background: var(--navy-deep);
  position: sticky; top: 0; z-index: 20;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 14px 40px -30px rgba(0,0,0,0.8);
}
.legal-top > a:first-child { display: inline-flex; align-items: center; }
.legal-top img { height: 34px; width: auto; display: block; }
.legal-top .back {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 600;
  color: rgba(255,255,255,0.78);
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  transition: color .2s, border-color .2s, background .2s;
}
.legal-top .back:hover { color: var(--green-light); border-color: var(--green); background: rgba(109,179,63,0.10); text-decoration: none; }
.legal-top .back svg { width: 17px; height: 17px; }

/* ---- Reading column ---- */
.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 84px) clamp(20px, 5vw, 40px) 80px;
}

.legal-kicker {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green-dk); margin: 0 0 14px;
}

.legal-wrap h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: clamp(28px, 6vw, 50px);
  line-height: 1.04; letter-spacing: -0.02em;
  color: var(--navy-deep);
  margin: 0 0 18px;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
}
.legal-intro {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-soft);
  margin: 0 0 36px;
  max-width: 60ch;
}

.legal-wrap h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(21px, 2.4vw, 27px);
  letter-spacing: -0.015em;
  color: var(--navy-deep);
  margin: 44px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  overflow-wrap: break-word;
  hyphens: auto;
}
.legal-wrap h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700; font-size: 17.5px;
  color: var(--navy-deep);
  margin: 28px 0 8px;
}
.legal-wrap p { margin: 0 0 16px; max-width: 68ch; }
.legal-wrap ul, .legal-wrap ol { margin: 0 0 16px; padding-left: 22px; max-width: 68ch; }
.legal-wrap li { margin-bottom: 8px; }
.legal-wrap strong { color: var(--navy-deep); font-weight: 700; }

/* ---- Info card ---- */
.legal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 12px;
  padding: 22px 26px;
  margin: 0 0 22px;
  box-shadow: 0 16px 40px -32px rgba(13,33,55,0.5);
}
.legal-card p { margin: 0 0 6px; }
.legal-card p:last-child { margin-bottom: 0; }

/* ---- Fill-note (AGB editor hint) ---- */
.fill-note {
  background: #fbf6e9;
  border: 1px solid rgba(201,162,39,0.35);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 0 0 30px;
  font-size: 15px;
  color: #6b5a23;
}
.fill-note strong { color: #6b5a23; }
.fill-note ul { margin-top: 10px; }

/* ---- Placeholder highlight ---- */
.ph {
  background: rgba(109,179,63,0.16);
  border-bottom: 1px dashed var(--green-dk);
  color: var(--green-dk);
  font-weight: 600;
  padding: 0 4px; border-radius: 4px;
  white-space: nowrap;
}

.legal-updated {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-soft);
  font-style: italic;
}

/* ---- Footer ---- */
.legal-foot {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.6);
  padding: 38px clamp(20px, 5vw, 56px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  font-size: 14px;
}
.legal-foot .lf-links { display: flex; gap: 22px; flex-wrap: wrap; }
.legal-foot .lf-links a { color: rgba(255,255,255,0.72); font-weight: 500; }
.legal-foot .lf-links a:hover { color: var(--green-light); text-decoration: none; }
.legal-foot .ph { background: transparent; border: 0; color: inherit; font-weight: inherit; padding: 0; }

/* ---- Mobile ---- */
@media (max-width: 560px) {
  .legal-top { padding: 14px 18px; }
  .legal-top img { height: 30px; }
  .legal-top .back { padding: 9px 13px; font-size: 13.5px; }
  .legal-wrap { padding: 40px 18px 64px; }
  .legal-wrap p, .legal-wrap ul, .legal-wrap ol { max-width: 100%; }
  .legal-card { padding: 18px 18px; }
  .ph { white-space: normal; }
}

/* ---- reCAPTCHA v3 — Badge ausblenden ---- */
.grecaptcha-badge { visibility: hidden !important; }
.recaptcha-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
  margin: 0;
  line-height: 1.55;
  flex-basis: 100%;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 6px;
}
.recaptcha-note a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}
