/**
 * footer.css — BEM: footer, footer__*
 */

.footer {
  background-color: var(--color-bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: var(--space-section);
  margin-top: auto;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer__row {
  padding-block: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__row:last-of-type {
  border-bottom: none;
}

/* Row 1 — page links */
.footer__links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer__link {
  color: var(--color-text-body);
  font-size: 0.9rem;
  transition: color var(--transition-base);
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--color-heading-gold);
}

/* Row 2 — contact emails */
.footer__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.footer__contact-label {
  color: var(--color-white);
  font-weight: var(--font-weight-medium);
  margin-right: 0.25rem;
}

.footer__email {
  color: var(--color-heading-gold);
  transition: color var(--transition-base);
}

.footer__email:hover,
.footer__email:focus-visible {
  color: var(--color-accent-light);
}

.footer__sep {
  color: var(--color-text-body);
  margin-inline: 0.35rem;
}

/* Row 3 — payment logos */
.footer__payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.footer__payments img {
  border-radius: 4px;
  width: 64px;
  height: auto;
}

/* Row 4 — 18+ / responsible gambling notice */
.footer__notice {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__notice-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-body);
}

/* Row 5 — legal + copyright */
.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__license {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-body);
  line-height: 1.6;
}

.footer__copyright {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-body);
}

/* To-top button */
.footer__to-top {
  position: fixed;
  right: 1.25rem;
  /* Mobile: clear the fixed Accedi/Registrazione bottom bar */
  bottom: 5.5rem;
  z-index: var(--z-scroll-top);
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-btn-gradient);
  color: var(--color-text-on-light-btn);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.footer__to-top[data-visible="true"] {
  display: inline-flex;
}

.footer__to-top:hover,
.footer__to-top:focus-visible {
  transform: translateY(-3px);
}

@media (min-width: 768px) {
  .footer__row {
    padding-block: 1.25rem;
  }

  .footer__to-top {
    bottom: 1.25rem;
  }
}
