.site-footer-spacer {
  flex: 0 0 auto;
  width: 100%;
  min-height: clamp(2rem, 5vw, 3.25rem);
  pointer-events: none;
}

.page-vps .site-footer-spacer,
.page-protection .site-footer-spacer,
.page-contact .site-footer-spacer {
  flex: 1 1 auto;
}

.site-footer {
  flex-shrink: 0;
  margin-top: 0;
  border-top: 1px solid rgba(109, 74, 255, 0.15);
  background: #ededf0;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 3.5rem) max(1rem, env(safe-area-inset-left, 0px)) clamp(1.5rem, 3.5vh, 2rem) max(1rem, env(safe-area-inset-right, 0px));
}

/* NOVO: Layout Principal - Trava tudo no topo! */
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr;
  gap: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
  align-items: flex-start; /* Isso garante que a coluna de pagamentos NÃO desça! */
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Marca e Descrição */
.site-footer__brand {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 1rem;
}

.site-footer__brand-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(105deg, #8b6cff 0%, #6d4aff 55%, #4f2fd7 100%);
  background-size: 160% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer__desc {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 22rem;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  border: 1px solid rgba(10, 12, 20, 0.10);
  color: var(--text-muted);
  background: rgba(10, 12, 20, 0.03);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
  color: #8b6cff;
  border-color: rgba(109, 74, 255, 0.35);
  background: rgba(109, 74, 255, 0.08);
  outline: none;
}

/* Titulos Colunas Auxiliares */
.site-footer__col-title {
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

/* Links Institucionais */
.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.site-footer__nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  width: fit-content;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: #8b6cff;
  outline: none;
}

/* Formas de Pagamentos - Ajuste de Colunas Fluído */
.site-footer__pay-grid {
  display: grid;
  /* Auto-fit cria as colunas e adapta sozinho. Previne esmagamento! */
  grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr));
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  width: 100%;
}

.site-footer__pay-item {
  position: relative;
  margin: 0;
  padding: 0.65rem 0.25rem;
  border-radius: 8px;
  border: 1px solid rgba(10, 12, 20, 0.08);
  background: rgba(10, 12, 20, 0.02);
  text-align: center;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-footer__pay-item::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--pay-bar, rgba(109, 74, 255, 0.5));
}

.site-footer__pay-item[data-brand="visa"] { --pay-bar: #1a1f71; }
.site-footer__pay-item[data-brand="mc"]::before { background: linear-gradient(90deg, #eb001b 0%, #f79e1b 100%); }
.site-footer__pay-item[data-brand="amex"] { --pay-bar: #006fcf; }
.site-footer__pay-item[data-brand="elo"] { --pay-bar: #ffcb05; }
.site-footer__pay-item[data-brand="pix"] { --pay-bar: #32bcad; }
.site-footer__pay-item[data-brand="paypal"] { --pay-bar: #003087; }
.site-footer__pay-item[data-brand="mp"] { --pay-bar: #009ee3; }
.site-footer__pay-item[data-brand="cripto"] { --pay-bar: #f7931a; }

.site-footer__pay-item:hover {
  border-color: rgba(109, 74, 255, 0.3);
  background: rgba(109, 74, 255, 0.05);
}

.site-footer__pay-name {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-footer__status-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(109, 74, 255, 0.25);
  background: rgba(109, 74, 255, 0.04);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.site-footer__status-link:hover,
.site-footer__status-link:focus-visible {
  border-color: rgba(109, 74, 255, 0.45);
  background: rgba(109, 74, 255, 0.1);
  color: var(--text);
  outline: none;
}

.site-footer__status-icon {
  flex-shrink: 0;
  display: flex;
  color: #8b6cff;
}

.site-footer__status-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-footer__status-title {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.site-footer__status-sub {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Bottom Row (Copyright) */
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(10, 12, 20, 0.08);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer__disclaimer {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(139, 146, 168, 0.85);
  text-align: right;
}

/* =======================================
   Responsividade Mobile do Footer
   ======================================= */
@media (max-width: 62rem) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 40rem) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .site-footer__desc {
    max-width: 100%;
  }
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-footer__disclaimer {
    text-align: left;
  }
}