/* The cookie banner and privacy notice. The notice reuses the request-access
 * dialog's frame (.access, .access__panel, .access__close). */
.cookies {
  position: fixed;
  inset-inline: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  max-width: 44rem;
  margin-inline: auto;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 0.5);
}

.cookies[hidden] {
  display: none;
}

.cookies p {
  flex: 1 1 18rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.cookies__actions {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 0.5rem;
}

.cookies__actions .btn {
  min-height: 2.5rem;
}

.cookies__link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--fg);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.footer .cookies__link {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: none;
}

.footer .cookies__link:hover {
  color: var(--fg);
}

.privacy h2 {
  margin: 0 0 1rem;
  font: 400 1.75rem/1.1 var(--font-display);
  text-transform: uppercase;
}

.privacy p {
  margin: 0 0 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.privacy__status {
  color: var(--fg) !important;
  font-weight: 600;
}

.privacy .cookies__actions {
  margin-top: 1.5rem;
}

@media (max-width: 40rem) {
  .cookies__actions .btn {
    flex: 1;
  }
}
