/* Rosaifa 4.14.22 — compact premium footer.
   Keeps the v4.14.21 palette while reducing mobile vertical footprint. */

@media (max-width: 760px) {
  .rf-site-footer {
    padding-bottom: max(86px, calc(76px + env(safe-area-inset-bottom))) !important;
  }

  .rf-site-footer > .rf-container {
    padding-inline: 16px !important;
  }

  .rf-footer-signature {
    gap: 12px !important;
    padding: 18px 0 14px !important;
    text-align: center;
  }

  .rf-footer-signature-copy {
    display: grid;
    justify-items: center;
  }

  .rf-footer-wordmark-image {
    max-width: min(48vw, 184px) !important;
  }

  .rf-footer-wordmark-image .custom-logo,
  .rf-footer-wordmark-image .rf-fallback-logo img {
    max-height: 48px !important;
    width: min(48vw, 184px) !important;
  }

  .rf-footer-signature-copy > p {
    font-size: 12px !important;
    line-height: 1.42 !important;
    margin-top: 7px !important;
    max-width: 31ch !important;
  }

  .rf-footer-proof {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-top: 10px !important;
    width: 100%;
  }

  .rf-footer-proof a {
    border-radius: 14px !important;
    font-size: 8.5px !important;
    gap: 5px !important;
    justify-content: center !important;
    line-height: 1.25 !important;
    min-height: 38px !important;
    padding: 6px 5px !important;
  }

  .rf-footer-proof a::before {
    height: 4px !important;
    width: 4px !important;
  }

  .rf-footer-install-wrap {
    margin-top: 0 !important;
    max-width: none !important;
    width: 100%;
  }

  .rf-install-app {
    border-radius: 17px !important;
    gap: 10px !important;
    grid-template-columns: 38px minmax(0, 1fr) auto !important;
    min-height: 56px !important;
    padding: 8px 10px !important;
  }

  .rf-install-app-icon {
    border-radius: 11px !important;
    height: 38px !important;
    width: 38px !important;
  }

  .rf-install-app-copy {
    gap: 1px !important;
  }

  .rf-install-app-copy small {
    font-size: 7.5px !important;
    letter-spacing: .12em !important;
  }

  .rf-install-app-copy strong {
    font-size: 13px !important;
  }

  .rf-install-help {
    font-size: 10px !important;
    margin: 6px 4px 0 !important;
  }

  /* The brand-value block duplicates the signature above on small screens.
     Removing it cuts substantial height while keeping all navigation intact. */
  .rf-site-footer .rf-footer-brand {
    display: none !important;
  }

  .rf-site-footer .rf-footer-grid {
    padding-top: 8px !important;
  }

  .rf-site-footer .rf-footer-col {
    margin: 0 !important;
  }

  .rf-site-footer .rf-footer-disclosure,
  .rf-site-footer .rf-footer-disclosure:last-of-type {
    margin: 0 !important;
  }

  .rf-site-footer .rf-footer-disclosure > summary {
    min-height: 42px !important;
    padding: 0 2px !important;
  }

  .rf-site-footer .rf-footer-disclosure > summary h3 {
    font-size: 10px !important;
    letter-spacing: .13em !important;
  }

  .rf-site-footer .rf-footer-disclosure > summary::after {
    font-size: 16px !important;
  }

  .rf-site-footer .rf-footer-disclosure .rf-footer-menu {
    gap: 2px !important;
    padding-bottom: 8px !important;
  }

  .rf-site-footer .rf-footer-menu a,
  .rf-site-footer .rf-footer-contact-mini a {
    font-size: 12px !important;
    line-height: 1.35 !important;
    padding-block: 4px !important;
  }

  .rf-site-footer .rf-footer-contact-mini {
    gap: 3px !important;
    padding-bottom: 9px !important;
  }

  .rf-site-footer .rf-footer-extra {
    margin-top: 14px !important;
    padding-top: 12px !important;
  }

  .rf-site-footer .rf-footer-bottom {
    font-size: 10px !important;
    gap: 4px !important;
    margin-top: 12px !important;
    padding-top: 11px !important;
  }
}

@media (max-width: 390px) {
  .rf-footer-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .rf-footer-proof a {
    min-height: 40px !important;
    padding-inline: 4px !important;
  }
}
