/* Privacy / CCPA opt-out banner — injected by assets/privacy.js.
   Compliance surface, intentionally bright on both themes (always
   parchment + ink, never inverted). See assets/privacy.js and
   notes/soft-launch/cookie-banner-plan.md.

   Hardcoded colors (rather than var(--paper-bright) etc.) because the
   banner needs to look the same on paper and midnight — it's an "always
   visible" surface, not part of the page's theme rhythm. */

.np-privacy-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #faf6ed;
  color: #1a1612;
  border-top: 1px solid rgba(26, 22, 18, .16);
  padding: 1rem 1.5rem;
  box-shadow: 0 -2px 12px rgba(26, 22, 18, .08);
  animation: np-privacy-banner-in .28s ease-out;
}

.np-privacy-banner-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

@media (min-width: 768px) {
  .np-privacy-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.np-privacy-banner-text {
  font-family: "Inter Tight", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: .85rem;
  line-height: 1.55;
  color: #2a241e;
  margin: 0;
  flex: 1;
}

.np-privacy-banner-text a {
  color: #3D2A52;
  text-decoration: underline;
  text-decoration-color: rgba(61, 42, 82, .35);
  text-underline-offset: 3px;
}

.np-privacy-banner-text a:hover { color: #1a1612; }

.np-privacy-banner-actions {
  display: flex;
  gap: .65rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Banner-scoped button overrides — hardcoded paper-mode colors so the
   buttons stay legible regardless of page theme. Without this, on
   midnight pages .np-btn-ghost resolves `color: var(--ink)` to the
   midnight light cream and falls below WCAG 1.4.3 contrast on the
   banner's hardcoded cream background. */
.np-privacy-banner .np-btn-primary {
  background: #1a1612;
  color: #faf6ed;
  border-color: #1a1612;
}
.np-privacy-banner .np-btn-primary:hover {
  background: #3D2A52;
  border-color: #3D2A52;
  color: #faf6ed;
}
.np-privacy-banner .np-btn-ghost {
  background: transparent;
  color: #1a1612;
  border-color: rgba(26, 22, 18, .34);
}
.np-privacy-banner .np-btn-ghost:hover {
  border-color: #1a1612;
  background: rgba(26, 22, 18, .06);
  color: #1a1612;
}

/* Slide up on first paint. Respects prefers-reduced-motion. */
@keyframes np-privacy-banner-in {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .np-privacy-banner { animation: none; }
}
