/* Cookie consent banner - shared by the home page and the legal pages.
   Depends on the design tokens declared by whichever stylesheet the page
   already loads (index.html inline, legal.css elsewhere). */

/* ---------- consent banner ---------- */
.cc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; padding: 18px;
  display: flex; justify-content: center; pointer-events: none; }
.cc-panel { pointer-events: auto; width: min(880px, 100%); background: var(--card);
  border: 1px solid var(--line-strong); box-shadow: 0 -8px 40px rgba(26,34,56,.16);
  display: flex; align-items: flex-start; gap: 22px; padding: 22px 24px; }
:root[data-theme='dark'] .cc-panel { box-shadow: 0 -8px 40px rgba(0,0,0,.5); }
.cc-body { flex: 1; min-width: 0; }
.cc-body h2 { font-family: var(--display); font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.cc-body p { font-size: 14px; color: var(--muted); margin: 0; }
.cc-body a { color: var(--seal); text-decoration: underline; }
/* Stacked and full width: every option is the same size, so "Reject" is never
   visually subordinate to "Accept". */
.cc-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0;
  align-items: stretch; width: 220px; }
.cc-btn { display: block; width: 100%; font-size: 14px; font-weight: 600; padding: 11px 20px;
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink);
  white-space: nowrap; text-align: center; }
.cc-btn:hover { border-color: var(--seal); color: var(--seal); }
/* accept and reject are given identical visual weight on purpose */
.cc-btn.cc-primary { background: var(--seal); border-color: var(--seal); color: var(--btn-seal-ink); }
.cc-btn.cc-primary:hover { color: var(--btn-seal-ink); opacity: .92; }
.cc-btn.cc-quiet { border-color: transparent; color: var(--muted); text-decoration: underline; }
.cc-cats { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.cc-cat { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--muted);
  border: 1px solid var(--line); padding: 12px 14px; cursor: pointer; }
.cc-cat b { color: var(--ink); }
.cc-cat i { color: var(--dim); }
.cc-cat input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--seal); flex-shrink: 0; }
.cc-cat.cc-locked { cursor: default; opacity: .85; }

@media (max-width: 760px) {
  .cc { padding: 0; }
  .cc-panel { flex-direction: column; gap: 16px; width: 100%; }
  .cc-actions { width: 100%; }
}
