/* Optional privacy controls use the site's existing dark surface and colors. */
.privacy-settings {
  appearance: none;
  background: none;
  color: inherit;
  padding: 0;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer .privacy-settings:hover { color: #6bdaf8; }
.analytics-preferences {
  position: fixed;
  z-index: 80;
  right: 20px;
  bottom: 20px;
  width: min(600px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 24px;
  background: var(--ink-raised);
  color: var(--text);
  border: 1px solid #64768d;
  border-radius: 6px;
  box-shadow: 0 8px 40px #0008;
}
.analytics-preferences h2 { font-size: 20px; line-height: 1.3; margin-bottom: 12px; }
.analytics-preferences p { font-size: 14px; margin: 10px 0; }
.analytics-preferences p a { text-decoration: underline; text-underline-offset: 3px; }
.analytics-purpose { margin-top: 16px; padding-top: 14px; border-top: 1px solid #64768d; }
.analytics-purpose h3 { font-size: 16px; line-height: 1.4; }
.analytics-preferences > .privacy-settings { margin-top: 18px; padding: 8px 0; }
.analytics-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.analytics-actions .button { flex: 1 1 180px; }
.analytics-actions .privacy-settings { margin: 0 6px; padding: 12px 0; }
@media (max-width: 420px) {
  .analytics-preferences { padding: 18px; right: 12px; bottom: 12px; width: calc(100% - 24px); }
  .analytics-actions .button { flex-basis: 100%; }
}
@media print { .analytics-preferences, .privacy-settings { display: none !important; } }
