.privacy-choice {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mist, #d4d0c8);
  font: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.privacy-choice:hover {
  color: var(--pale, #e8e5df);
}

/* The homepage names its accent --accent; the legal pages define only --pale
   and --mist, so they fall through to --mist and match the focus ring their own
   stylesheet gives every other control. */
.privacy-choice:focus-visible {
  outline: 2px solid var(--accent, var(--mist, #d4d0c8));
  outline-offset: 4px;
}

.analytics-consent[hidden] {
  display: none;
}

.analytics-consent {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(212, 208, 200, 0.24);
  background: rgba(4, 10, 19, 0.98);
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.32);
  color: #e8e5df;
  font-family: Verdana, Geneva, 'DejaVu Sans', sans-serif;
}

.analytics-consent__inner {
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.analytics-consent__copy {
  margin: 0;
  color: rgba(232, 229, 223, 0.84);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
}

.analytics-consent__copy a {
  color: #d4d0c8;
  text-underline-offset: 3px;
}

/* One button on a first visit, two once there is a decision to reverse, so the
   row sizes itself rather than holding a column open for a hidden Reject. */
.analytics-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.analytics-consent__actions > * {
  flex: 1 1 auto;
}

.analytics-consent__button {
  min-width: 0;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 6px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
}

/* Accept and Reject carry equal visual weight on purpose — neither is
   styled to be the easier click. */
.analytics-consent__button--primary {
  border: 1px solid rgba(172, 164, 150, 0.55);
  background: transparent;
  color: #aca69c;
}

.analytics-consent__button--secondary {
  border: 1px solid rgba(212, 208, 200, 0.5);
  background: transparent;
  color: #d4d0c8;
}

.analytics-consent__button:hover {
  border-color: #e8e5df;
  color: #e8e5df;
}

.analytics-consent__button:focus-visible {
  outline: 2px solid #e8e5df;
  outline-offset: 3px;
}

@media (min-width: 720px) {
  .analytics-consent__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .analytics-consent__actions > * {
    flex: 0 0 128px;
  }
}

@media (prefers-contrast: more) {
  .analytics-consent {
    border-top-width: 3px;
    background: #000000;
  }

  .analytics-consent__copy,
  .analytics-consent__copy a,
  .analytics-consent__button {
    color: #ffffff;
  }

  .analytics-consent__button { border-width: 2px; border-color: #ffffff; }
}

@media (forced-colors: active) {
  .analytics-consent { background: Canvas; color: CanvasText; }
  .privacy-choice,
  .analytics-consent a,
  .analytics-consent button { forced-color-adjust: auto; }
  :focus-visible { outline: 3px solid Highlight !important; }
}
