/* Footer on phones/tablets: every item gets its own row. */
@media (max-width: 820px) {
  .site-footer {
    padding: 30px 18px 36px !important;
  }

  .site-footer__inner {
    position: relative !important;
    width: min(100%, 560px) !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .site-footer__site-logo {
    order: 1 !important;
    position: static !important;
    justify-self: auto !important;
    width: 58px !important;
    height: 58px !important;
    flex: 0 0 58px !important;
    margin: 0 auto 2px !important;
  }

  .site-footer__content {
    order: 2 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .site-footer__copyright-text {
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    color: #b7bfd1;
    font-size: 13px !important;
    line-height: 1.55 !important;
    font-weight: 650 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .site-footer__description {
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .site-footer__links {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px 12px !important;
  }

  .site-footer__credit-text {
    order: 3 !important;
    display: block !important;
    position: static !important;
    justify-self: auto !important;
    width: 100% !important;
    margin: 2px auto 0 !important;
    color: #b7bfd1;
    font-size: 12px !important;
    line-height: 1.45 !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .site-footer__developer {
    order: 4 !important;
    position: static !important;
    inset: auto !important;
    justify-self: auto !important;
    width: 54px !important;
    height: 54px !important;
    flex: 0 0 54px !important;
    margin: 0 auto !important;
  }

  .site-footer__developer img {
    width: 54px !important;
    height: 54px !important;
    object-fit: contain !important;
  }
}
