/* Footer print strategy — driven by `.footerBlocks[data-footer-print]` on the layout shell. */

@media print {
  .app .chromeHeader,
  .app .headerBlocks,
  .app .VisitorThemeProfileSwitcher,
  .app .BlockFloatingToolbar,
  .app .i18nFallbackBanner,
  .app .skipLink {
    display: none !important;
  }

  .app .main {
    padding-top: 0 !important;
  }

  .footerBlocks[data-footer-print='compact'] .footerSection,
  .footerBlocks[data-footer-print='compact'] .footerSitemap,
  .footerBlocks[data-footer-print='compact'] .bar {
    background: transparent !important;
    color: #111 !important;
    border-color: #ccc !important;
    box-shadow: none !important;
    -webkit-print-color-adjust: economy;
    print-color-adjust: economy;
  }

  .footerBlocks[data-footer-print='compact'] .footerSection,
  .footerBlocks[data-footer-print='compact'] .footerSitemap,
  .footerBlocks[data-footer-print='compact'] .bar {
    padding-block: 8px !important;
  }

  .footerBlocks[data-footer-print='compact'] .socialGroup,
  .footerBlocks[data-footer-print='compact'] .wechatQrItem,
  .footerBlocks[data-footer-print='compact'] .footerLocaleSwitcher {
    display: none !important;
  }

  .footerBlocks[data-footer-print='legalOnly'] .footerSitemap,
  .footerBlocks[data-footer-print='legalOnly'] .footerLinks,
  .footerBlocks[data-footer-print='legalOnly'] .footerAuxLinks,
  .footerBlocks[data-footer-print='legalOnly'] .footerNewsletter,
  .footerBlocks[data-footer-print='legalOnly'] .footerBrand,
  .footerBlocks[data-footer-print='legalOnly'] .footerLocale,
  .footerBlocks[data-footer-print='legalOnly'] .layoutGrid,
  .footerBlocks[data-footer-print='legalOnly'] .cookieConsent {
    display: none !important;
  }

  .footerBlocks[data-footer-print='legalOnly'] .footerContact,
  .footerBlocks[data-footer-print='legalOnly'] .bar {
    break-inside: avoid;
  }

  .footerBlocks[data-footer-print='legalOnly'] a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.75em;
    word-break: break-all;
  }

  .footerBlocks[data-footer-print='legalOnly'] a[href^='tel:']::after,
  .footerBlocks[data-footer-print='legalOnly'] a[href^='mailto:']::after,
  .footerBlocks[data-footer-print='legalOnly'] a[href^='/']::after,
  .footerBlocks[data-footer-print='legalOnly'] a[href^='#']::after {
    content: '';
  }
}
