/* Cookie & storage notice (public/js/cookie-consent.js) — shared by every
 * entry page. Uses the page's own design tokens (--surface, --ink, --accent,
 * …: the app shell, the marketing pages and the whistleblowing pages all
 * define them, and the app's flip in dark mode) with the app-system values
 * as fallbacks for a page without them. Mobile-first: a bottom sheet on
 * phones, a centred card from 600px. */
.nv-cc-root {
  --nv-cc-surface: var(--surface, #ffffff);
  --nv-cc-ink: var(--ink, #132420);
  --nv-cc-muted: var(--muted, #5b6b64);
  --nv-cc-border: var(--border, #e4eae6);
  --nv-cc-accent: var(--accent, #0f7a5c);
  --nv-cc-accent2: var(--accent2, var(--accent, #0a5a43));
  font-family: var(--font-ui, "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif);
  color: var(--nv-cc-ink);
  z-index: 2147483000;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .nv-cc-root {
    --nv-cc-surface: var(--surface, #16211e);
    --nv-cc-ink: var(--ink, #e7efeb);
    --nv-cc-muted: var(--muted, #a3b3ac);
    --nv-cc-border: var(--border, #2a3934);
    --nv-cc-accent: var(--accent, #3fb08b);
  }
}
html[data-theme="dark"] .nv-cc-root {
  --nv-cc-surface: var(--surface, #16211e);
  --nv-cc-ink: var(--ink, #e7efeb);
  --nv-cc-muted: var(--muted, #a3b3ac);
  --nv-cc-border: var(--border, #2a3934);
  --nv-cc-accent: var(--accent, #3fb08b);
}

html.nv-cc-open,
html.nv-cc-open body {
  overflow: hidden;
}

.nv-cc-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(10, 20, 17, 0.55);
}
.nv-cc-passive {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 0 8px 8px;
  pointer-events: none;
}

.nv-cc-dialog {
  box-sizing: border-box;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--nv-cc-surface);
  color: var(--nv-cc-ink);
  border: 1px solid var(--nv-cc-border);
  border-radius: 16px 16px 0 0;
  padding: 24px 16px 16px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
}
.nv-cc-passive .nv-cc-dialog {
  border-radius: 16px;
}

.nv-cc-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--nv-cc-ink);
}
.nv-cc-intro,
.nv-cc-note,
.nv-cc-list {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--nv-cc-ink);
}
.nv-cc-list {
  padding-left: 20px;
}
.nv-cc-list li {
  margin-bottom: 8px;
  color: var(--nv-cc-muted);
}
.nv-cc-note {
  font-weight: 600;
}

.nv-cc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.nv-cc-more {
  color: var(--nv-cc-accent);
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
}
.nv-cc-accept {
  min-height: 48px;
  min-width: 140px;
  flex: 1 1 140px;
  padding: 12px 24px;
  border: 0;
  border-radius: 99px;
  background: var(--nv-cc-accent);
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.nv-cc-accept:hover {
  background: var(--nv-cc-accent2);
}
.nv-cc-accept:focus-visible,
.nv-cc-more:focus-visible {
  outline: 3px solid var(--nv-cc-accent);
  outline-offset: 2px;
}

@media (min-width: 600px) {
  .nv-cc-modal {
    align-items: center;
    padding: 16px;
  }
  .nv-cc-dialog {
    border-radius: 16px;
    padding: 24px;
  }
  .nv-cc-passive {
    padding: 0 16px 16px;
  }
  .nv-cc-accept {
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .nv-cc-dialog {
    animation: nv-cc-in 0.2s ease-out;
  }
}
@keyframes nv-cc-in {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
