/* =========================================
   CONSENT — analytics banner
   A compact privacy notice. It waits until the hero
   is gone, then arrives low in the viewport.
   ========================================= */
.consent {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 4000;
  width: min(22rem, calc(100vw - 2rem));
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(29, 42, 32, 0.94), rgba(22, 34, 25, 0.94));
  border: 1px solid rgba(244, 234, 215, 0.14);
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.5s var(--ease-lux), transform 0.5s var(--ease-lux);
}

.consent.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.consent-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--ink);
}

.consent-text {
  margin: 0 0 0.8rem;
  font-size: 0.76rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-muted);
}

.consent-actions {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: center;
  gap: 0.75rem;
}

/* The star of the card: warm, filled, inviting */
.consent-accept {
  flex-shrink: 0;
  min-height: 2.55rem;
  padding: 0 1.35rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  /* Dark ink on the gold pill: the bright accent needs dark text for AA */
  color: #131a12;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--dur-fast) ease, transform 0.16s ease-out;
}

.consent-accept:hover {
  background: var(--accent-bright);
}

.consent-accept:active {
  transform: scale(0.97);
}

/* Declining stays possible, but it does not compete */
.consent-decline {
  justify-self: start;
  padding: 0.35rem 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--ink-faint);
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.consent-decline:hover {
  color: var(--ink-muted);
  border-bottom-color: var(--rule);
}

/* Link to the full privacy policy inside the consent banner */
.consent-link {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  color: var(--accent-bright, #e8bc66);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 188, 102, 0.45);
}

@media (max-width: 760px) {
  .consent {
    top: auto;
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    width: auto;
    padding: 0.95rem;
    transform: translate3d(0, 16px, 0);
  }

  .consent-actions {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .consent-accept,
  .consent-decline {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
