/* ============================================================
   PlcCortex — geteiltes Stylesheet für Impressum/Datenschutz.
   Dieselben Design-Tokens wie index.html, nur ohne die
   Hero/Pipeline/Preview-spezifischen Regeln (hier nicht gebraucht).
   ============================================================ */

:root {
  color-scheme: light;
  --bg:        #f5f8fc;
  --surface:   #ffffff;
  --surface-2: #eef3fa;
  --border:    rgba(15, 23, 42, 0.09);
  --heading:   #0a1220;
  --text:      #22303f;
  --text-dim:  #51617a;
  --text-mute: #7a889e;
  --accent:      #0891b2;
  --accent-text: #0e7490;
  --accent-2:    #2563eb;
  --warn-bg: rgba(194, 103, 10, 0.12);
  --warn-text: #9a5209;
  --shadow-glow: 0 10px 30px -10px rgba(8, 145, 178, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg:        #0a0e17;
    --surface:   #111826;
    --surface-2: #161f30;
    --border:    rgba(255, 255, 255, 0.07);
    --heading:   #ffffff;
    --text:      #e6ecf5;
    --text-dim:  #9aa8bd;
    --text-mute: #5f6e85;
    --accent:      #00e5ff;
    --accent-text: #4be8ff;
    --accent-2:    #3b82f6;
    --warn-bg: rgba(245, 158, 11, 0.14);
    --warn-text: #f5c877;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:        #0a0e17;
  --surface:   #111826;
  --surface-2: #161f30;
  --border:    rgba(255, 255, 255, 0.07);
  --heading:   #ffffff;
  --text:      #e6ecf5;
  --text-dim:  #9aa8bd;
  --text-mute: #5f6e85;
  --accent:      #00e5ff;
  --accent-text: #4be8ff;
  --accent-2:    #3b82f6;
  --warn-bg: rgba(245, 158, 11, 0.14);
  --warn-text: #f5c877;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('fonts/archivo-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-variable.woff2') format('woff2');
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

h1, h2 {
  font-family: 'Archivo', 'Inter', system-ui, sans-serif;
  color: var(--heading);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 8px; }
h2 { font-size: 1.25rem; margin: 40px 0 10px; }
p, li { color: var(--text); }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 1.2em; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 780px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }

header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 20px; height: 64px; max-width: 1180px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Archivo', sans-serif; font-weight: 800; color: var(--heading); font-size: 1.05rem; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow-glow);
}
.brand-mark svg { width: 18px; height: 18px; color: #fff; }
.back { margin-left: auto; font-size: 0.875rem; font-weight: 500; color: var(--text-dim); }
.back:hover { color: var(--accent-text); }

main.legal { padding-block: clamp(40px, 8vw, 80px); }

.todo {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.88rem;
  margin-bottom: 32px;
}
.todo strong { display: block; margin-bottom: 4px; }

footer { border-top: 1px solid var(--border); padding-block: 32px; margin-top: 20px; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; font-size: 0.8rem; color: var(--text-mute); max-width: 1180px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.foot a:hover { color: var(--accent-text); }
