/* Mobile-only footer layout shared by the public service pages. */
@media (max-width: 767px) {
  footer:has(.footer-grid) {
    padding: 26px 10px 0 !important;
  }

  footer .footer-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px 0 !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    padding-bottom: 8px !important;
  }

  footer .footer-grid > div:first-child {
    grid-column: 1 / -1 !important;
    text-align: center;
    padding: 0 12px 16px;
  }

  footer .footer-grid > div:first-child > div:first-child {
    justify-content: center;
    margin-bottom: 10px !important;
  }

  footer .footer-grid > div:first-child > p {
    max-width: 270px;
    margin: 0 auto 14px !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
  }

  footer .footer-grid > div:first-child > div:last-child {
    justify-content: center;
    gap: 10px !important;
    padding-top: 22px;
    position: relative;
  }

  footer .footer-grid > div:first-child > div:last-child::before {
    content: "FOLLOW US";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    color: #dcecff;
    font-size: 10px;
    font-weight: 800;
    line-height: 13px;
    letter-spacing: .02em;
    background: #071a38;
    z-index: 1;
  }

  footer .footer-grid > div:first-child > div:last-child::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 7%;
    right: 7%;
    height: 1px;
    background: rgba(148, 175, 212, .2);
  }

  footer .footer-grid > div:first-child > div:last-child a {
    width: 32px !important;
    height: 32px !important;
    z-index: 2;
  }

  footer .footer-grid > div:nth-child(2),
  footer .footer-grid > div:nth-child(3) {
    min-height: 226px;
    padding: 12px 10px 10px !important;
    background: rgba(4, 25, 58, .35);
    border: 1px solid rgba(148, 175, 212, .2);
  }

  footer .footer-grid > div:nth-child(2) {
    border-radius: 7px 0 0 7px;
    border-right: 0;
  }

  footer .footer-grid > div:nth-child(3) {
    border-radius: 0 7px 7px 0;
  }

  footer .footer-grid > div:nth-child(2) h4,
  footer .footer-grid > div:nth-child(3) h4,
  footer .footer-grid > div:nth-child(4) h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 10px !important;
    font-size: 12px !important;
  }

  footer .footer-grid > div:nth-child(2) h4::before,
  footer .footer-grid > div:nth-child(3) h4::before,
  footer .footer-grid > div:nth-child(4) h4::before {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid rgba(72, 153, 255, .35);
    border-radius: 6px;
    background: rgba(8, 75, 165, .28);
    color: #4fa5ff;
    font-family: "Font Awesome 6 Free";
    font-size: 11px;
    font-weight: 900;
  }

  footer .footer-grid > div:nth-child(2) h4::before { content: "\f1b2"; }
  footer .footer-grid > div:nth-child(3) h4::before { content: "\f0c1"; }
  footer .footer-grid > div:nth-child(4) h4::before { content: "\f2bd"; }

  footer .footer-grid > div:nth-child(2) ul,
  footer .footer-grid > div:nth-child(3) ul {
    gap: 0 !important;
  }

  footer .footer-grid > div:nth-child(2) li,
  footer .footer-grid > div:nth-child(3) li {
    border-bottom: 1px solid rgba(148, 175, 212, .13);
    padding: 6px 0 6px 13px;
    position: relative;
    line-height: 1.22;
  }

  footer .footer-grid > div:nth-child(2) li::before,
  footer .footer-grid > div:nth-child(3) li::before {
    content: "›";
    position: absolute;
    left: 1px;
    color: #2793ff;
    font-size: 18px;
    line-height: 10px;
  }

  footer .footer-grid > div:nth-child(2) li:last-child,
  footer .footer-grid > div:nth-child(3) li:last-child { border-bottom: 0; }

  footer .footer-grid > div:nth-child(2) a,
  footer .footer-grid > div:nth-child(3) a {
    font-size: 11px !important;
    line-height: 1.3 !important;
  }

  footer .footer-grid > div:nth-child(4) {
    grid-column: 1 / -1 !important;
    padding: 10px 12px 12px !important;
    border: 1px solid rgba(148, 175, 212, .2);
    border-radius: 7px;
    background: rgba(4, 25, 58, .35);
  }

  footer .footer-grid > div:nth-child(4) ul { gap: 5px !important; }

  footer .footer-grid > div:nth-child(4) li {
    min-height: 25px;
    gap: 7px !important;
    padding: 4px 7px;
    border: 1px solid rgba(148, 175, 212, .12);
    border-radius: 5px;
    background: rgba(5, 29, 68, .5);
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  footer .footer-grid > div:nth-child(4) li span:first-child {
    width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
  }

  footer .footer-grid > div:nth-child(4) li a,
  footer .footer-grid > div:nth-child(4) li div,
  footer .footer-grid > div:nth-child(4) li div span { font-size: 11px !important; }

  footer .footer-grid > div:nth-child(5) { display: none !important; }

  footer .footer-grid + div {
    display: block !important;
    visibility: visible !important;
    max-width: 360px !important;
    padding: 16px 9px 18px !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    text-align: center !important;
  }

  footer .footer-grid + div p { font-size: 12px !important; }
}
