/* Newsletter institucional — CTA no rodapé + modal (padrão visual IBPLD) */

.sitefoot__nl {
  border-top: 1px solid rgba(245, 243, 238, 0.08);
}

.sitefoot__nl-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.35rem 0 1.2rem;
}

.sitefoot__nl-copy {
  flex: 1 1 16rem;
  max-width: 38rem;
}

.sitefoot__nl-title {
  margin: 0 0 0.35rem;
  font-family: Manrope, system-ui, sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f5f3ee;
}

.sitefoot__nl-desc {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(245, 243, 238, 0.58);
}

.sitefoot__nl-cta {
  flex: 0 0 auto;
  white-space: nowrap;
}

.sitefoot--compact .sitefoot__nl-inner {
  padding: 1.1rem 0 1rem;
}

/* Modal */
.nl-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.nl-modal[hidden] {
  display: none !important;
}

.nl-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 23, 25, 0.48);
  backdrop-filter: blur(2px);
}

.nl-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 32rem);
  max-height: min(92vh, 36rem);
  overflow: auto;
  background: #faf8f4;
  color: #161719;
  border: 1px solid rgba(22, 23, 25, 0.08);
  border-radius: 1rem;
  box-shadow: 0 24px 64px rgba(22, 23, 25, 0.18);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  transform: translateY(0.75rem) scale(0.98);
  opacity: 0;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.nl-modal.is-open .nl-modal__dialog {
  transform: none;
  opacity: 1;
}

.nl-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #17191d;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.nl-modal__close:hover,
.nl-modal__close:focus-visible {
  background: rgba(76, 9, 17, 0.08);
  outline: none;
}

.nl-modal__kicker {
  margin: 0 0 0.5rem;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4c0911;
}

.nl-modal__title {
  margin: 0 0 0.65rem;
  padding-right: 1.5rem;
  font-family: Manrope, system-ui, sans-serif;
  font-size: clamp(1.3rem, 2.6vw, 1.55rem);
  font-weight: 700;
  line-height: 1.2;
  color: #17191d;
}

.nl-modal__desc {
  margin: 0 0 1.25rem;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(22, 23, 25, 0.64);
}

.nl-modal__form {
  display: grid;
  gap: 0.95rem;
}

.nl-modal__field label,
.nl-modal__consent {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: #17191d;
}

.nl-modal__field input[type="text"],
.nl-modal__field input[type="email"] {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(22, 23, 25, 0.14);
  border-radius: 0.65rem;
  background: #fff;
  color: #161719;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 0.95rem;
}

.nl-modal__field input:focus {
  outline: none;
  border-color: #4c0911;
  box-shadow: 0 0 0 3px rgba(76, 9, 17, 0.12);
}

.nl-modal__field input.is-invalid {
  border-color: #8a1c28;
}

.nl-modal__consent {
  font-weight: 500;
}

.nl-modal__check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  cursor: pointer;
  line-height: 1.45;
}

.nl-modal__check input {
  margin-top: 0.2rem;
  flex: 0 0 auto;
  accent-color: #4c0911;
}

.nl-modal__check a {
  color: #4c0911;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nl-modal__error,
.nl-modal__form-error {
  margin: 0.35rem 0 0;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #8a1c28;
}

.nl-modal__submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

.nl-modal__submit[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.nl-modal__hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 480px) {
  .nl-modal {
    padding: 0.5rem;
    align-items: flex-end;
  }

  .nl-modal__dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 1rem 1rem 0.5rem 0.5rem;
  }

  .sitefoot__nl-cta {
    width: 100%;
  }

  .sitefoot__nl-cta .button-primary {
    width: 100%;
    justify-content: center;
  }
}
