/* ============================================================
   Calupet — shared styling for the static legal pages
   (privacy.html · impressum.html). Self-contained: pulls Inter
   + the brand tokens locally so the pages render correctly even
   if landing.css is not also linked. Matches the landing's
   petrol gradient + glass-card language (per /brand-kit, LD-04 v2).
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

:root {
  --cp-petrol:       #004860;
  --cp-petrol-dark:  #002D3E;
  --cp-cream:        #F0EEE9;
  --cp-orange:       #FB914A;
  --cp-teal:         #2A9D8F;
  --cp-coral:        #E76F51;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gradient-petrol: linear-gradient(140deg, #004860 0%, #002D3E 100%);
  --gradient-cta:    linear-gradient(135deg, #FB914A 0%, #E76F51 100%);
}

* { box-sizing: border-box; }

html, body { background: var(--cp-petrol); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cp-cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  background: var(--gradient-petrol);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Soft orb backdrop — the landing's signature, dialled down for reading. */
.cp-legal-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.cp-legal-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
}
.cp-legal-orb--orange { width: 420px; height: 420px; background: var(--cp-orange); top: -120px; right: -80px; }
.cp-legal-orb--teal   { width: 380px; height: 380px; background: var(--cp-teal);  bottom: -140px; left: -100px; }
.cp-legal-orb--coral  { width: 300px; height: 300px; background: var(--cp-coral); top: 40%; left: 55%; }

/* Page shell. */
.cp-legal-shell {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.cp-legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.cp-legal-top img { height: 56px; width: auto; }

/* DE / EN language toggle. Progressive enhancement: both language
   sections render by default; the inline script hides the inactive one. */
.cp-legal-lang { display: inline-flex; gap: 4px; }
.cp-legal-lang button {
  appearance: none;
  border: 1px solid rgba(240, 238, 233, 0.32);
  background: rgba(240, 238, 233, 0.06);
  color: var(--cp-cream);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms, border-color 160ms;
}
.cp-legal-lang button[aria-pressed="true"] {
  background: var(--gradient-cta);
  border-color: transparent;
  color: #fff;
}

/* The frosted glass content card. */
.cp-legal-card {
  background: rgba(240, 238, 233, 0.07);
  border: 1px solid rgba(240, 238, 233, 0.16);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 24px 60px rgba(0, 21, 30, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.cp-legal-card h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 8px;
}
.cp-legal-updated {
  font-size: 13px;
  color: rgba(240, 238, 233, 0.62);
  margin: 0 0 28px;
}
.cp-legal-card h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 32px 0 10px;
  color: #fff;
}
.cp-legal-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 22px 0 6px;
  color: var(--cp-orange);
}
.cp-legal-card p,
.cp-legal-card li { color: rgba(240, 238, 233, 0.9); }
.cp-legal-card p { margin: 0 0 14px; }
.cp-legal-card ul { margin: 0 0 14px; padding-left: 22px; }
.cp-legal-card li { margin-bottom: 6px; }
.cp-legal-card a { color: var(--cp-orange); text-decoration: underline; text-underline-offset: 2px; }
.cp-legal-card a:hover { color: var(--cp-orange-light, #FDB882); }
.cp-legal-card strong { color: #fff; font-weight: 700; }

/* Definition-list block for the Impressum identity fields. */
.cp-legal-dl { margin: 0 0 18px; }
.cp-legal-dl div { padding: 8px 0; border-bottom: 1px solid rgba(240, 238, 233, 0.1); }
.cp-legal-dl dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(240, 238, 233, 0.55); }
.cp-legal-dl dd { margin: 2px 0 0; font-size: 16px; }

/* FOUNDER-FILL placeholder — visually loud so it can't ship unfilled. */
.cp-fill {
  background: rgba(251, 145, 74, 0.18);
  border: 1px dashed var(--cp-orange);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 0.92em;
  font-weight: 600;
  color: var(--cp-orange-light, #FDB882);
}

.cp-legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cp-cream);
  text-decoration: none;
}
.cp-legal-back:hover { color: var(--cp-orange); }

.cp-legal-foot {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: rgba(240, 238, 233, 0.5);
}

@media (max-width: 560px) {
  .cp-legal-card { padding: 28px 20px; border-radius: 18px; }
  .cp-legal-top img { height: 44px; }
}
