/* Loaded only when PRIVY_GATE_ENABLED is off (privy-core.php). While the account
   gate is on this dialog never renders, and style.css is on the gate's own tight
   budget, so these rules wait here rather than on every page. */
/* ═══ Age and eligibility gate ════════════════════════════════════════
   Markup and behaviour are in privy-core.php — DESIGN.md §7 item 2. The
   dialog ships with the `hidden` attribute, so it is display:none from the
   UA stylesheet before any of this loads; :not([hidden]) is what turns it on,
   rather than a rule that would have to fight `hidden` to stay off. If this
   stylesheet never arrives, the gate stays invisible instead of blocking the
   site unstyled. */
.privy-age { display: none; }
.privy-age:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 200;                       /* header is 50, sticky CTA below that */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--wp--preset--spacing--40);
  background: color-mix(in srgb, var(--wp--preset--color--void) 82%, transparent);
}
@supports (backdrop-filter: blur(8px)) {
  .privy-age:not([hidden]) {
    background: color-mix(in srgb, var(--wp--preset--color--void) 62%, transparent);
    backdrop-filter: blur(14px) saturate(1.15);
  }
}
body.privy-age-open { overflow: hidden; }

.privy-age-panel {
  width: min(560px, 100%);
  max-height: 100%;
  overflow-y: auto;
  padding: var(--wp--preset--spacing--50);
  border: 1px solid var(--wp--preset--color--border);
  border-top: 2px solid var(--wp--preset--color--mint);
  border-radius: 4px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%,
      color-mix(in srgb, var(--wp--preset--color--mint) 9%, transparent) 0%, transparent 70%),
    var(--wp--preset--color--surface);
  box-shadow: 0 40px 100px -40px var(--pp-sh), 0 0 0 1px var(--pp-glow);
}
/* The brand first: a visitor from an ad should know whose site this is
   before reading the eligibility terms. */
.privy-age-brand {
  display: flex;
  align-items: center;
  gap: var(--wp--preset--spacing--20);
  margin: 0 0 var(--wp--preset--spacing--40);
  padding-bottom: var(--wp--preset--spacing--30);
  border-bottom: 1px solid var(--wp--preset--color--border);
}
.privy-age-brand img { display: block; width: 40px; height: 40px; }
.privy-age-word { display: flex; flex-direction: column; line-height: 1.05; }
.privy-age-word strong {
  font-family: var(--wp--preset--font-family--display);
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink);
}
.privy-age-word span {
  font-family: var(--wp--preset--font-family--display);
  font-size: var(--wp--preset--font-size--xs);
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink-3);
}
.privy-age-eyebrow {
  margin: 0 0 var(--wp--preset--spacing--20);
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wp--preset--color--mint);
}
.privy-age-title {
  margin: 0 0 var(--wp--preset--spacing--30);
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700;
  font-size: var(--wp--preset--font-size--xl);
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--wp--preset--color--ink);
}
.privy-age-body p {
  margin: 0 0 var(--wp--preset--spacing--30);
  font-size: var(--wp--preset--font-size--sm);
  line-height: 1.6;
  color: var(--wp--preset--color--ink-2);
}
.privy-age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wp--preset--spacing--30);
  margin-top: var(--wp--preset--spacing--40);
}
.privy-age-actions button,
.privy-age-back {
  flex: 1 1 auto;
  padding: .85em 1.4em;
  border-radius: 4px;
  font-family: var(--wp--preset--font-family--display);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
/* One mint element per viewport — DESIGN.md §2 rule 1. Confirming is the
   primary action; declining is the ghost. */
.privy-age-yes {
  border: 1px solid var(--wp--preset--color--mint-deep);
  background: var(--wp--preset--color--mint);
  color: var(--wp--preset--color--void);
}
.privy-age-yes:hover { background: var(--wp--preset--color--mint-bright); }
.privy-age-no,
.privy-age-back {
  border: 1px solid var(--wp--preset--color--border);
  background: transparent;
  color: var(--wp--preset--color--ink-2);
}
.privy-age-no:hover,
.privy-age-back:hover {
  border-color: var(--wp--preset--color--mint);
  color: var(--wp--preset--color--mint);
}
.privy-age-back { flex: 0 0 auto; margin-top: var(--wp--preset--spacing--40); }

.privy-age-fine {
  margin: var(--wp--preset--spacing--40) 0 0;
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--xs);
  letter-spacing: .06em;
  color: var(--wp--preset--color--ink-3);
}
.privy-age-fine a { color: var(--wp--preset--color--ink-3); }
.privy-age-fine a:hover { color: var(--wp--preset--color--mint); }
.privy-age-fine span { margin: 0 .5em; }

.privy-age-declined p {
  margin: 0;
  font-size: var(--wp--preset--font-size--sm);
  line-height: 1.6;
  color: var(--wp--preset--color--ink-2);
}

@media (max-width: 639px) {
  .privy-age-panel { padding: var(--wp--preset--spacing--40); }
  .privy-age-actions { flex-direction: column; }
}
