/* Site footer layout overrides */

footer {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

footer ul {
  list-style: none !important;
}

footer .flex {
  display: flex !important;
}

@media (min-width: 768px) {
  footer .max-w-7xl .grid {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    gap: 2rem !important;
    align-items: start !important;
  }

  footer .max-w-7xl .col-span-1 {
    grid-column: 1 !important;
    justify-self: start !important;
  }

  footer .max-w-7xl .grid > div:nth-child(2) {
    grid-column: 2 !important;
    justify-self: center !important;
    text-align: center !important;
  }

  footer .max-w-7xl .grid > div:nth-child(2) ul {
    display: inline-block !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  footer .max-w-7xl .grid > div:nth-child(3) {
    grid-column: 3 !important;
    justify-self: end !important;
    text-align: right !important;
  }
}

@media (max-width: 767px) {
  footer .max-w-7xl .grid,
  footer .grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }

  footer .max-w-7xl .col-span-1 {
    grid-column: 1 / -1 !important;
    margin-bottom: 1rem !important;
  }

  .grid.grid-cols-1 {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
  }
}

@media (max-width: 1023px) {
  .footer-bottom-bar,
  #footer-bottom-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.25rem !important;
    width: 100% !important;
    text-align: center !important;
  }

  .footer-bottom-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.625rem !important;
    width: 100% !important;
    line-height: 1.5 !important;
  }

  .footer-copyright {
    max-width: 18rem;
  }

  .footer-meta-sep {
    display: none !important;
  }

  .footer-legal-links {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.5rem 1.25rem !important;
    margin-top: 0.25rem !important;
  }

  .footer-legal-link {
    color: #475569 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
  }

  .footer-legal-link:hover {
    color: #0284c7 !important;
  }

  .footer-bottom-actions {
    margin-left: 0 !important;
  }
}

@media (min-width: 1024px) {
  .footer-bottom-bar,
  #footer-bottom-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1.5rem !important;
    width: 100% !important;
  }

  .footer-bottom-meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.25rem 1rem !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .footer-legal-links {
    display: contents !important;
  }

  .footer-legal-link {
    color: #475569 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
  }

  .footer-legal-link:hover {
    color: #0284c7 !important;
  }

  .footer-meta-sep {
    color: #cbd5e1 !important;
    user-select: none !important;
  }

  .footer-bottom-actions {
    flex-shrink: 0 !important;
    margin-left: 2rem !important;
  }
}
