/* ==========================================================================
   Cookie consent — shared by the landing, setup, legal and root pages.
   Uses the page's own tokens where present, with safe fallbacks.
   ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  padding: 0 var(--gutter, 20px) 18px;
  pointer-events: none;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, 1080px);
  margin-inline: auto;
  padding: 16px 18px;
  border: 1px solid var(--rule-strong, rgba(10, 10, 10, 0.22));
  background: var(--paper, #ffffff);
  color: var(--ink, #0a0a0a);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.13);
  font-family: inherit;
  pointer-events: auto;
  transition: opacity 0.3s var(--ease-out, ease),
    transform 0.3s var(--ease-out, ease);
}

.cookie-banner.is-dismissed {
  pointer-events: none;
}

.cookie-banner.is-dismissed .cookie-banner-inner {
  opacity: 0;
  transform: translateY(12px);
}

.cookie-banner-copy {
  min-width: 0;
  max-width: 68ch;
}

.cookie-banner-label {
  margin: 0 0 5px;
  color: var(--muted, #666666);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.cookie-banner-copy p {
  margin: 0;
  color: var(--ink-70, #3d3d3d);
  font-size: 13px;
  line-height: 1.55;
}

.cookie-banner-copy a {
  color: var(--ink, #0a0a0a);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong, rgba(10, 10, 10, 0.22));
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.cookie-banner-copy a:hover {
  text-decoration-color: var(--ink, #0a0a0a);
}

.cookie-banner-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--rule-strong, rgba(10, 10, 10, 0.22));
  border-radius: 0;
  background: transparent;
  color: var(--ink, #0a0a0a);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease-out, ease),
    border-color 0.2s var(--ease-out, ease);
}

.cookie-btn:hover {
  border-color: var(--ink, #0a0a0a);
  background: rgba(10, 10, 10, 0.05);
}

.cookie-btn--primary {
  border-color: var(--ink, #0a0a0a);
  background: var(--ink, #0a0a0a);
  color: var(--paper, #ffffff);
}

.cookie-btn--primary:hover {
  background: #000000;
  color: #ffffff;
}

.cookie-btn:focus-visible,
.cookie-banner-copy a:focus-visible,
.footer-cookie:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.footer-cookie {
  color: var(--muted, #666666);
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.2s var(--ease-out, ease);
}

.footer-cookie:hover {
  color: var(--ink, #0a0a0a);
  text-decoration: underline;
}

@media (max-width: 760px) {
  .cookie-banner {
    padding: 0 var(--gutter, 18px) 12px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .cookie-banner-actions {
    flex-direction: column-reverse;
  }

  .cookie-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner-inner {
    transition: none;
  }
}
