.analytics-consent {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  max-width: 68rem;
  margin-inline: auto;
  padding: 1.25rem;
  color: #f3eee2;
  background: #182019;
  border: 1px solid rgba(187, 128, 86, 0.7);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.24);
}

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

.analytics-consent__copy {
  max-width: 47rem;
}

.analytics-consent__label {
  margin: 0 0 0.35rem;
  color: #d39a70;
  font: 600 0.75rem/1.2 system-ui, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.analytics-consent h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.2;
}

.analytics-consent p:last-child {
  margin: 0.55rem 0 0;
  color: rgba(243, 238, 226, 0.82);
  font: 400 0.95rem/1.55 system-ui, sans-serif;
}

.analytics-consent a {
  color: #f3eee2;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.analytics-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.analytics-consent button,
.analytics-settings {
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid #bb8056;
  border-radius: 0;
  color: #182019;
  background: #f3eee2;
  font: 600 0.875rem/1.2 system-ui, sans-serif;
  cursor: pointer;
}

.analytics-consent .analytics-consent__secondary {
  color: #f3eee2;
  background: transparent;
}

.analytics-consent button:focus-visible,
.analytics-settings:focus-visible {
  outline: 3px solid #bb8056;
  outline-offset: 3px;
}

.analytics-settings {
  position: fixed;
  z-index: 999;
  right: 1rem;
  bottom: 1rem;
  min-height: 2.25rem;
  padding: 0.4rem 0.65rem;
  color: #f3eee2;
  background: #182019;
  font-size: 0.75rem;
}

.privacy-page {
  width: min(100% - 2rem, 52rem);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) 0;
}

.privacy-page h1 {
  max-width: 15ch;
}

.privacy-page h2 {
  margin-top: 2.5rem;
}

.privacy-page p,
.privacy-page li {
  max-width: 70ch;
}

@media (max-width: 48rem) {
  .analytics-consent {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .analytics-consent__actions {
    flex-direction: column;
  }

  .analytics-consent button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-consent,
  .analytics-settings {
    scroll-behavior: auto;
  }
}
