/* ---------- data consent: asked once, needed before either form ---------- */
/* the notice along the bottom */
.consent {
  position: fixed;
  z-index: 40;
  left: 16px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  max-width: 780px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 14px 24px;
  flex-wrap: wrap;
  padding: 16px 18px 16px 22px;
  background: rgba(28, 27, 37, .94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .4);
  opacity: 0;
  filter: blur(8px);
  transform: translateY(14px);
  transition: opacity 360ms var(--ease), filter 420ms var(--ease), transform 420ms var(--ease);
}
.consent.show {
  opacity: 1;
  filter: none;
  transform: none;
}
.consent p {
  margin: 0;
  flex: 1 1 340px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.consent p b {
  color: var(--ink);
  font-weight: 600;
}
.consent a,
.ask-rights a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--field-line);
}
.consent a:hover,
.ask-rights a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}
.consent-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

/* the dialog that asks again when a form is used without consent */
.ask {
  width: min(520px, 100% - 32px);
  max-width: none;
  padding: clamp(24px, 4vw, 36px);
  margin: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  color: var(--ink);
}
.ask::backdrop {
  background: rgba(13, 12, 18, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ask h2 {
  margin: 0 0 10px;
  font: 700 clamp(24px, 3vw, 30px)/1.15 var(--display);
  letter-spacing: -.01em;
}
.ask p {
  margin: 0 0 24px;
  color: var(--ink-2);
}
/* how to see or delete what is kept, right under what is asked */
.ask #ask-text { margin-bottom: 10px; }
.ask .ask-rights { font-size: 14px; }
.ask-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  .consent {
    filter: none;
    transform: none;
  }
}
