/* footer.css */
.footer {
  background: var(--color-bg-primary);
  border-top: 1px solid rgba(255, 211, 42, 0.08);
  padding-block: 40px;
}

.footer__inner {
  display: grid;
  gap: 20px;
  text-align: center;
}

.footer__links-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
}

.footer__link {
  font-size: var(--fs-small);
  color: var(--color-text-primary);
}

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

.footer__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
}

.footer__contact-label {
  color: var(--color-heading-gold);
  font-weight: var(--fw-semibold);
}

.footer__email {
  color: var(--color-text-primary);
}

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

.footer__sep {
  opacity: 0.5;
}

.footer__payments {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__payment-logo {
  height: 32px;
  width: auto;
}

.footer__age {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer__age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-btn-accent-end);
  color: var(--color-white);
  font-weight: var(--fw-bold);
  font-size: var(--fs-small);
}

.footer__disclaimer {
  font-size: var(--fs-small);
  max-width: 60ch;
  margin: 0;
}

.footer__copy {
  font-size: var(--fs-small);
  opacity: 0.7;
  margin: 0;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-to-top);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-accent-btn);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
}

.to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

@media (min-width: 768px) {
  .footer__inner {
    text-align: left;
    justify-items: start;
  }

  .footer__links-list,
  .footer__contact,
  .footer__payments {
    justify-content: flex-start;
  }

  .footer__age {
    flex-direction: row;
  }
}
