/* ============================================================
   Footer — newsletter form (Mailchimp) + support shortcuts
   Lives on the dark blue .mp-footer (templates/footer.php).
   ============================================================ */
.mp-footer__newsletter {
  max-width: 560px;
  margin: 0 auto 36px;
  padding: 24px 22px;
  border-radius: var(--radius-lg, 20px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.nl__text {
  margin: -6px 0 16px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}
.nl__form { text-align: left; }
.nl__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.nl__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-full, 9999px);
  background: #fff;
  color: #0F172A;
  font: inherit;
  font-size: 0.95rem;
}
.nl__input::placeholder { color: #94A3B8; }
.nl__input:focus {
  outline: none;
  border-color: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
}
.nl__input[aria-invalid="true"] { border-color: #FCA5A5; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.35); }
.nl__btn {
  flex: 0 0 auto;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-full, 9999px);
  background: #22C55E;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition, 0.25s), transform var(--transition, 0.25s);
}
.nl__btn:hover { background: #16A34A; transform: translateY(-1px); }
.nl__btn:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; }
.nl__btn[disabled] { opacity: 0.7; cursor: wait; transform: none; }
.nl__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}
.nl__check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #22C55E;
  cursor: pointer;
}
.nl__check a { color: #fff; text-decoration: underline; }
.nl__check.is-invalid { color: #FECACA; }
.nl__msg {
  min-height: 1.2em;
  margin: 12px 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}
.nl__msg:empty { display: none; }
.nl__msg--error { color: #FECACA; }
.nl__msg--ok {
  padding: 12px 14px;
  border-radius: var(--radius-md, 12px);
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #fff;
}
.nl__form.is-done .nl__row,
.nl__form.is-done .nl__check { display: none; }
.nl__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-full, 9999px);
  background: #22C55E;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition, 0.25s), transform var(--transition, 0.25s);
}
.nl__cta:hover { background: #16A34A; transform: translateY(-1px); }
/* Visually hidden label + honeypot */
.nl__sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.nl__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Support shortcuts (same pills as the legal buttons) */
.mp-footer__support { margin-bottom: 32px; }
.mp-footer__support-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.mp-footer__support-buttons .mp-footer__pill { white-space: normal; line-height: 1.3; }

@media (max-width: 480px) {
  .mp-footer__newsletter { padding: 20px 16px; border-radius: var(--radius-md, 12px); }
  .nl__row { flex-direction: column; }
  .nl__btn { width: 100%; }
  .mp-footer__support-buttons { grid-template-columns: 1fr; max-width: 320px; }
}

/* "Cookie settings" link under the legal pills (reopens the cookie banner) */
.mp-footer__cookie-row { margin: 14px 0 0; text-align: center; }
.mp-footer__cookie-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-full, 9999px);
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition, 0.25s);
}
.mp-footer__cookie-link:hover,
.mp-footer__cookie-link:focus-visible { color: #22C55E; }
.mp-footer__cookie-link svg { flex-shrink: 0; }
