/* Cookie banner + settings dialog (shared by every page) */
.cc, .cc-dialog {
  --cc-ink: #121212; --cc-bone: #F4F1EA; --cc-amber: #F5A524; --cc-muted: #C9C5BC;
  font-family: 'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--cc-bone);
}
.cc {
  position: fixed; left: 16px; bottom: 16px; z-index: 350;
  width: min(440px, calc(100vw - 32px));
  padding: 22px; border-radius: 20px;
  background: #161514; border: 1px solid rgba(244, 241, 234, .18);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
  animation: cc-in .5s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes cc-in { from { opacity: 0; transform: translateY(20px); } }
@media (prefers-reduced-motion: reduce) { .cc { animation: none; } }
.cc__title { margin: 0 0 8px; font-size: 1.15rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.cc__text { margin: 0 0 16px; font-size: .92rem; line-height: 1.55; color: var(--cc-muted); }
.cc__text a { color: var(--cc-bone); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--cc-amber); }
.cc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
/* Accept and Reject share one style, so neither is nudged. */
.cc__btn {
  flex: 1 1 0; min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--cc-bone); background: var(--cc-bone); color: var(--cc-ink);
  font: 600 .95rem/1 'Sora', system-ui, sans-serif; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.cc__btn:hover { background: var(--cc-amber); border-color: var(--cc-amber); }
.cc__btn--ghost { flex-basis: 100%; background: transparent; color: var(--cc-bone); border-color: rgba(244, 241, 234, .35); }
.cc__btn--ghost:hover { background: rgba(244, 241, 234, .08); border-color: var(--cc-bone); color: var(--cc-bone); }
.cc__link {
  min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--cc-bone);
  font: 500 .9rem/1 'Sora', system-ui, sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
.cc :focus-visible, .cc-dialog :focus-visible { outline: 2px solid var(--cc-amber); outline-offset: 3px; }

.cc-dialog {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
  padding: 0; border-radius: 22px;
  background: #161514; border: 1px solid rgba(244, 241, 234, .18);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, .8);
}
.cc-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.cc-dialog__inner { padding: 26px; }
.cc-dialog, .cc-dialog * { cursor: auto; }
.cc-dialog button, .cc-dialog label, .cc-dialog a { cursor: pointer; }
.cc-opts { display: grid; gap: 10px; margin: 0 0 20px; }
.cc-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(244, 241, 234, .14);
}
.cc-opt__copy { display: grid; gap: 4px; }
.cc-opt__copy strong { font-size: .98rem; }
.cc-opt__copy span { font-size: .86rem; color: var(--cc-muted); line-height: 1.45; }
.cc-switch {
  appearance: none; -webkit-appearance: none; flex: none;
  width: 48px; height: 28px; border-radius: 999px; margin: 0;
  background: rgba(244, 241, 234, .2); position: relative; cursor: pointer;
  transition: background-color .2s;
}
.cc-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--cc-bone); transition: transform .2s;
}
.cc-switch:checked { background: var(--cc-amber); }
.cc-switch:checked::after { transform: translateX(20px); background: var(--cc-ink); }
.cc-switch:disabled { opacity: .6; cursor: not-allowed; }
@media (max-width: 520px) {
  .cc { left: 8px; right: 8px; bottom: 8px; width: auto; padding: 18px; }
}
@media print { .cc, .cc-dialog { display: none !important; } }
