body.pequi-demo-shell > #site-footer.shared-site-footer {
  position: relative; isolation: isolate; overflow: hidden; padding-top: 16px; padding-bottom: 12px;
}
#site-footer.shared-site-footer .shared-footer-grid { row-gap: 12px; }
#site-footer.shared-site-footer h2 { margin-bottom: 8px; }
#site-footer.shared-site-footer .shared-footer-grid > div > p { margin-top: 10px; }
#site-footer.shared-site-footer nav a { padding-top: 2px; padding-bottom: 2px; min-height: 24px; }
#site-footer.shared-site-footer .shared-footer-social { padding-top: 8px; }
#site-footer.shared-site-footer .shared-social-links { row-gap: 8px; }
#site-footer.shared-site-footer .shared-social-link { padding-top: 8px; padding-bottom: 8px; }
#site-footer.shared-site-footer .shared-footer-note { margin-top: 12px; padding-top: 8px; }
#site-footer.shared-site-footer .shared-footer-partners { margin-top: 12px; }
#site-footer.shared-site-footer .shared-footer-partner-strip { padding-top: 10px; padding-bottom: 10px; }
#site-footer.shared-site-footer .shared-footer-grid,
#site-footer.shared-site-footer .shared-footer-note { position: relative; z-index: 1; }
.footer-nature { position: absolute; z-index: 0; inset: 0; pointer-events: none; user-select: none; overflow: hidden; }
.footer-falling-flower {
  position: absolute; top: -44px; width: var(--flower-size); height: var(--flower-size);
  background: url('/assets/footer/flor-pequi-decorativa.svg') center / contain no-repeat;
  opacity: .22; animation: footer-flower-fall var(--flower-duration) linear var(--flower-delay) infinite;
  animation-play-state: paused;
}
#site-footer[data-flowers-running="true"] .footer-falling-flower { animation-play-state: running; }
@keyframes footer-flower-fall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: .22; }
  45% { transform: translate3d(var(--flower-sway), calc(var(--footer-flower-travel) * .45), 0) rotate(var(--flower-turn)); }
  85% { opacity: .22; }
  100% { transform: translate3d(0, var(--footer-flower-travel), 0) rotate(calc(var(--flower-turn) * 2)); opacity: 0; }
}
#site-footer.shared-site-footer .shared-footer-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
@media (max-width: 600px) {
  #site-footer.shared-site-footer .shared-footer-grid { row-gap: 12px; }
  .footer-falling-flower:nth-of-type(n+5) { display: none; }
  body.pequi-demo-shell > #site-footer.shared-site-footer { padding-bottom: 12px; }
}

/* Trim only terminal page spacing; keep internal sections/cards and text intact. */
body.pequi-demo-shell #site-main > .home-benefits:last-child { margin-bottom: 0; }
body.pequi-demo-shell #site-main > .content-wrap:last-child,
body.pequi-demo-shell #site-main > .cms-page > .article:last-child,
body.pequi-demo-shell #site-main .news-article > .news-body:last-child { padding-bottom: 24px; }
body.pequi-demo-shell #site-main > .cms-page > :is(.ecosystem-catalog,.pf-canvas,.editorial-section):last-child { margin-bottom: 20px; }
body.pequi-demo-shell #site-main .ecosystem-catalog > .ecosystem-category:last-child { padding-bottom: 8px; }
body.pequi-demo-shell #site-main > .cms-page > .ecosystem-catalog.ecosystem-category:last-child { padding-bottom: 16px; }
body.pequi-demo-shell #site-main > .faq-layout.faq-compact:last-child,
body.pequi-demo-shell #site-main > .company-application:last-child,
body.pequi-demo-shell #site-main > .editorial-contact:last-child { margin-bottom: 24px; }
body.pequi-demo-shell #site-main > .qs-team:last-child { padding-bottom: 20px; }
@media (prefers-reduced-motion: reduce) {
  .footer-falling-flower { animation: none; transform: none; top: auto; bottom: 35px; opacity: .16; }
}
