.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0 12px;
  margin-left: auto;
}
.footer-links a,
.footer-links button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.privacy-dialog {
  box-sizing: border-box;
  width: min(510px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 24px;
}
.privacy-dialog::backdrop { background: #10221bd0; }
.privacy-heading {
  position: sticky;
  top: -24px;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: var(--paper);
}
.privacy-dialog h2 {
  min-width: 0;
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 8vw, 2.4rem);
  line-height: 1.05;
}
.privacy-dialog p { margin: 0 0 16px; line-height: 1.55; }
.privacy-dialog p:last-child { margin-bottom: 0; }
.privacy-dialog a { overflow-wrap: anywhere; }
.contact-email { overflow-wrap: anywhere; }
.privacy-close {
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
html:has(.privacy-dialog[open]),
body:has(.privacy-dialog[open]) { overflow: hidden; }
