/* Site-wide footer mascot: Rally 安利 (local preview 2026-11-22) */
.site-footer,
.site-footer .container {
  overflow: visible;
}

.footer-bottom--legal {
  position: relative;
}

.footer-rally {
  position: absolute;
  right: 0;
  bottom: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: #9AA4B2;
  z-index: 2;
  transform: translateY(-22px);
  line-height: 1.2;
}

.footer-rally:hover,
.footer-rally:focus-visible {
  color: var(--orange-500, #FD7221);
  outline: none;
}

.footer-rally img {
  display: block;
  height: 100px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.footer-rally__name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: inherit;
  white-space: nowrap;
}

/* Desktop: FABs sit mid-right, so Rally can greet from the legal bar's right edge. */
@media (min-width: 961px) {
  .footer-bottom--legal {
    padding-right: 124px;
    padding-left: 124px;
    padding-top: 20px;
  }
}

/* Mobile / tablet (≤960px): FABs are fixed bottom-right — keep Rally on the left so they don't overlap. */
@media (max-width: 960px) {
  .footer-rally {
    right: auto;
    left: 0;
    bottom: 2px;
    transform: translateY(-12px);
  }
  .footer-rally img {
    height: 72px;
  }
  .footer-bottom--legal {
    padding-left: 92px;
    padding-right: 88px; /* clear bottom-right FAB column */
    padding-top: 16px;
  }
}
