/* Mobile-only footer alignment patch. Keep desktop footer untouched. */
@media (max-width: 680px) {
  .site-footer .footer-container {
    padding-inline: 28px;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin-bottom: 0;
    text-align: center;
  }

  .site-footer .footer-grid > * {
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
    padding: 26px 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-footer .footer-grid > *:last-child {
    border-bottom: 0;
  }

  .site-footer .footer-brand {
    align-items: center;
  }

  .site-footer .brand-logo {
    justify-content: center;
  }

  .site-footer .brand-tagline {
    max-width: 30ch;
    margin-inline: auto;
    text-align: center;
  }

  .site-footer .footer-column {
    display: grid;
    justify-items: center;
  }

  .site-footer .footer-column h3 {
    text-align: center;
  }

  .site-footer .footer-links {
    display: grid !important;
    width: 100%;
    gap: 12px;
    justify-items: center;
    text-align: center !important;
  }

  .site-footer .footer-links li + li {
    margin-top: 0;
  }

  .site-footer .footer-links a {
    display: inline-block;
    text-align: center;
  }

  .site-footer .footer-column--contact .contact-wrap {
    display: grid;
    width: min(100%, 300px) !important;
    margin-inline: auto;
    gap: 12px;
    justify-items: stretch !important;
  }

  .site-footer .footer-column .contact-item,
  .site-footer .footer-column--contact .contact-item {
    position: static !important;
    left: auto !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 12px;
    width: 100% !important;
    margin: 0 !important;
    text-align: left;
    justify-content: initial;
  }

  .site-footer .footer-column .contact-item .contact-icon,
  .site-footer .footer-column .contact-item svg.lucide,
  .site-footer .footer-column--contact .contact-icon,
  .site-footer .footer-column--contact svg.lucide {
    width: 22px;
    height: 22px;
    margin-top: 2px;
  }

  .site-footer .footer-column--contact .contact-item span,
  .site-footer .footer-column--contact .contact-item a {
    max-width: none;
  }

  .site-footer .footer-bottom-content {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 18px 28px 30px;
    text-align: center;
  }

  .site-footer .footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    max-width: 280px;
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .site-footer .footer-legal {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
  }

  .site-footer .footer-legal li:last-child {
    grid-column: 1 / -1;
    justify-self: center;
  }
}
