/* the cookie note: a strip across the foot of the column, on the column's surface, as the nav runs across its head */
.cookie-note {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  column-gap: 1.2rem;
  line-height: 1.35;
  max-width: none;
  margin-block: 0;
  margin-inline: calc(-1 * var(--pad-start)) calc(-1 * var(--pad-end));
  padding-block: 0.15rem;
  padding-inline: var(--pad-start) var(--pad-end);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.cookie-note[hidden] { display: none; }
.cookie-note::before { content: ""; position: absolute; inset-inline: 0; bottom: 100%; height: 1.25rem; pointer-events: none; background: linear-gradient(transparent, var(--surface)); }
.cookie-note.is-shown { opacity: 1; transform: none; }
@starting-style { .cookie-note.is-shown { opacity: 0; transform: translateY(0.4rem); } }
.cookie-note .linklike { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); white-space: nowrap; }
.cookie-note [data-open-privacy] { margin-inline-start: auto; }
@media (prefers-reduced-motion: reduce) {
  .cookie-note, .cookie-note.is-shown { transform: none; }
  @starting-style { .cookie-note.is-shown { transform: none; } }
}

#privacy-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2600;
  background: color-mix(in oklab, #081625 88%, transparent);
  overflow: hidden;
  padding: 1.5rem;
}
#privacy-modal.is-open { display: flex; align-items: center; justify-content: center; animation: veil-in 220ms ease-out both; }
@media (prefers-reduced-motion: reduce) {
  #privacy-modal.is-open { animation-duration: 120ms; }
}

#privacy-content {
  background: var(--surface);
  color: var(--ink);
  width: 100%;
  max-width: 64ch;
  padding: 2rem;
  max-height: min(90dvh, 100%);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--hairline);
  line-height: 1.55;
}
#privacy-content h1 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); margin-bottom: 0.6rem; }
#privacy-content h2 { font-size: 1.25rem; font-weight: 600; margin: 1.6rem 0 0.4rem; }
#privacy-content h3 { font-size: 1.05rem; font-weight: 600; margin: 1rem 0 0.2rem; }
#privacy-content p { font-size: 1rem; margin-bottom: 0.8rem; max-width: none; }
#privacy-content p.text-center { text-align: start; }
#privacy-content ul { list-style: disc; padding-inline-start: 1.4rem; margin-bottom: 1rem; }
#privacy-content li { font-size: 1rem; margin-bottom: 0.4rem; }
#privacy-content a:hover { text-decoration-color: var(--accent); }

#privacy-close {
  float: inline-end;
  cursor: pointer;
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 0;
  color: var(--ink-2);
  transition: color 250ms ease;
}
#privacy-close:hover { color: var(--ink); }
