/* Consent banner — leve, mobile-first */
.arm-consent {
  position: fixed;
  z-index: 99999;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem;
  pointer-events: none;
}

.arm-consent.is-visible {
  pointer-events: auto;
}

.arm-consent[hidden] {
  display: none !important;
}

.arm-consent__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  padding: 0.9rem 1.1rem;
  background: #141414;
  color: #f3f3f3;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.arm-consent__copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.arm-consent__title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  letter-spacing: 0.01em;
}

.arm-consent__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(243, 243, 243, 0.88);
}

.arm-consent__link {
  color: #ff8a3d;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 0.25rem;
  white-space: nowrap;
}

.arm-consent__link:hover {
  color: #ffb07a;
}

.arm-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.arm-consent__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.arm-consent__btn--primary {
  background: #e85d04;
  color: #fff;
}

.arm-consent__btn--primary:hover {
  background: #f48c06;
}

.arm-consent__btn--ghost {
  background: transparent;
  color: #f3f3f3;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.arm-consent__btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

/* Reabrir no footer */
.arm-consent-reopen {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  opacity: 0.9;
}

.arm-consent-reopen:hover {
  color: #fff;
  text-decoration: underline;
  opacity: 1;
}

/* Footer links are often stacked — keep button inline-friendly */
.site-footer .arm-consent-reopen {
  display: block;
  color: inherit;
  margin: 0.15rem 0;
}

@media (max-width: 640px) {
  .arm-consent {
    padding: 0.5rem;
  }

  .arm-consent__inner {
    padding: 0.85rem 0.9rem;
    border-radius: 10px 10px 0 0;
  }

  .arm-consent__actions {
    width: 100%;
  }

  .arm-consent__btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
