/* ============================================================
   STATOR cookie consent styles. Shared by index.html + legal.html.
   Relies on design tokens defined in each page's :root.
   ============================================================ */
.cc-scrim {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(26, 31, 46, 0.34);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; transition: opacity var(--t-base) var(--ease-out);
}
.cc-scrim[hidden] { display: none; }
.cc-scrim.cc-show { opacity: 1; }

.cc-banner {
  position: fixed; z-index: 950;
  left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(160%);
  width: min(920px, calc(100vw - 32px));
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 24px 24px 22px;
  transition: transform var(--t-slow) var(--ease-out);
}
.cc-banner[hidden] { display: none; }
.cc-banner.cc-show { transform: translateX(-50%) translateY(0); }

.cc-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 8px;
}
.cc-title {
  font-family: 'Orbitron', sans-serif; font-weight: 600;
  font-size: 18px; letter-spacing: 0.01em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 8px; line-height: 1.15;
}
.cc-text { color: var(--ink-2); font-size: 14px; line-height: 1.6; margin: 0 0 18px; }
.cc-text a { color: var(--brand); text-decoration: underline; }

.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-btn {
  flex: 1 1 auto; min-width: 150px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; font-size: 14px; font-weight: 600;
  border-radius: 999px; border: 1px solid transparent;
  font-family: 'Inter', sans-serif; cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
}
.cc-btn:active { transform: translateY(1px); }
.cc-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.cc-btn-accept { background: var(--brand); color: #fcfbf8; }
.cc-btn-accept:hover { background: var(--brand-deep); }
.cc-btn-reject { background: var(--bg-soft); color: var(--ink); border-color: var(--line); }
.cc-btn-reject:hover { background: var(--line-soft); }
.cc-btn-custom { background: transparent; color: var(--ink); border-color: var(--line); }
.cc-btn-custom:hover { background: var(--bg-soft); }

.cc-modal {
  position: fixed; z-index: 960; left: 50%; top: 50%;
  transform: translate(-50%, -47%) scale(0.98);
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-card);
  padding: 28px;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.cc-modal[hidden] { display: none; }
.cc-modal.cc-show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cc-modal .cc-title { font-size: 20px; padding-right: 40px; }

.cc-close {
  position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-card); color: var(--ink-2); cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
}
.cc-close:hover { background: var(--bg-soft); color: var(--ink); }
.cc-close:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.cc-close svg { width: 14px; height: 14px; display: block; }

.cc-cat {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.cc-cat:first-of-type { border-top: 0; padding-top: 8px; }
.cc-cat-body { flex: 1; }
.cc-cat-name { font-weight: 600; font-size: 15px; color: var(--ink); margin: 0 0 4px; }
.cc-cat-desc { font-size: 13px; color: var(--ink-2); line-height: 1.55; margin: 0; }

.cc-switch { position: relative; flex-shrink: 0; width: 44px; height: 26px; }
.cc-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cc-track {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--ink-4); transition: background var(--t-base) var(--ease-out);
}
.cc-track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
  transition: transform var(--t-base) var(--ease-out);
}
.cc-switch input:checked + .cc-track { background: var(--brand); }
.cc-switch input:checked + .cc-track::after { transform: translateX(18px); }
.cc-switch input:focus-visible + .cc-track { outline: 2px solid var(--brand); outline-offset: 2px; }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch input:disabled + .cc-track { opacity: 0.5; }

.cc-modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

@media (max-width: 560px) {
  .cc-banner { padding: 20px; bottom: 12px; }
  .cc-actions, .cc-modal-actions { flex-direction: column; }
  .cc-btn { width: 100%; flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-scrim, .cc-banner, .cc-modal { transition: none; }
}
