/* Shared footer for every static public page (markup: apps/shared/footer.html, applied by tools/apply-footer.py). Self-contained: fallbacks if a page lacks the tokens. */
.cq-foot { border-top: 1px solid var(--line, #e6dfcf); background: var(--soft, #f3efe4); margin: 32px 0 0; padding: 24px 16px calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--ink-2, #555a52); font: 14px/1.5 var(--body, "Figtree", "Segoe UI", system-ui, sans-serif); text-align: left; }
.cq-foot[hidden], .cq-foot [hidden] { display: none; }
.cq-cols { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.cq-h { margin: 0 0 4px; font: 800 15px/1.2 var(--display, "Gabarito", "Avenir Next", system-ui, sans-serif); color: var(--ink, #14161a); }
.cq-col ul { list-style: none; margin: 0; padding: 0; }
.cq-col a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green, #1f6f5c); font-weight: 600; text-decoration: none; }
.cq-col a:hover, .cq-col a:focus-visible { text-decoration: none; opacity: .8; }
.cq-copy { max-width: 960px; margin: 16px auto 0; padding-top: 14px; border-top: 1px solid var(--line, #e6dfcf); font-size: 13px; }
@media (min-width: 720px) { .cq-cols { grid-template-columns: repeat(4, 1fr); } }

/* Mobile: each column folds (tap the heading). Desktop is unchanged. Without JS the lists stay open. */
@media (max-width: 719px) {
  .cq-foot { padding-top: 8px; }
  .cq-foot .cq-cols { grid-template-columns: 1fr; gap: 0; }
  .cq-foot.cq-fold .cq-col { border-bottom: 1px solid var(--line, #e6dfcf); }
  .cq-foot.cq-fold .cq-h { display: flex; align-items: center; justify-content: space-between; min-height: 48px; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .cq-foot.cq-fold .cq-h::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; margin-right: 4px; }
  .cq-foot.cq-fold .cq-col.cq-open .cq-h::after { transform: rotate(-135deg); }
  .cq-foot.cq-fold .cq-col:not(.cq-open) ul { display: none; }
  .cq-foot.cq-fold .cq-col.cq-open ul { padding-bottom: 8px; }
  .cq-foot.cq-fold .cq-col a { min-height: 44px; }
}
