/* Shared site footer — used by the landing page and the Contact page (rendered by
 * /shared/footer.js from the config in /shared/legal-documents.js). Uses the dark
 * theme tokens each page already defines in :root, so it matches without changing
 * the theme. FOUR equal columns: Product · Resources · Company · Legal & Compliance
 * (the 4th holds grouped, expandable policy dropdowns).
 */
.site-footer { margin-top: 56px; padding: 0; text-align: left; border-top: 0; }
.footer-sep { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 55%, transparent), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; padding: 56px 0 40px; align-items: start; }

/* brand */
.footer-brand .logo { font-size: 21px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.footer-brand p { color: var(--muted); font-size: 14px; margin: 14px 0 16px; max-width: 330px; line-height: 1.6; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.footer-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; color: var(--muted); background: color-mix(in srgb, var(--panel-2) 70%, transparent); }
.footer-badge.accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 42%, var(--border)); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); background: color-mix(in srgb, var(--panel-2) 70%, transparent); transition: transform .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; }
.footer-social a:hover, .footer-social a:focus-visible { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

/* the four link columns — identical layout, spacing, typography, alignment */
.footer-col { display: block; padding: 0; } /* override the global nav{display:flex} */
.footer-col h4 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 11px; margin: 0; padding: 0; }
.footer-col a { color: var(--muted); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; width: fit-content; transition: color .2s ease; }
.footer-col a::after { content: "\2192"; font-size: 12px; opacity: 0; transform: translateX(-6px); transition: opacity .2s ease, transform .2s ease; color: var(--accent); }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--accent); }
.footer-col a:hover::after, .footer-col a:focus-visible::after { opacity: 1; transform: translateX(0); }
.footer-col a.disabled { pointer-events: none; cursor: default; }
.footer-col a.disabled::after { content: none; }
.footer-col .soon { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, transparent); border-radius: 999px; padding: 1px 7px; }

/* Legal & Compliance column: each group is an expandable footer link + dropdown */
.footer-legal-col .lg-group { position: relative; }
.lg-trigger { width: 100%; display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; background: none; border: 0; padding: 0; margin: 0; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; text-align: left; transition: color .2s ease; }
.lg-trigger:hover, .footer-legal-col .lg-group:hover .lg-trigger, .footer-legal-col .lg-group.open .lg-trigger, .footer-legal-col .lg-group:focus-within .lg-trigger { color: var(--accent); }
.lg-chev { font-size: 10px; line-height: 1; transition: transform .2s ease; }
.footer-legal-col .lg-group:hover .lg-chev, .footer-legal-col .lg-group.open .lg-chev, .footer-legal-col .lg-group:focus-within .lg-chev { transform: rotate(180deg); }
/* dropdown popover — anchored to the column's right so it never overflows the page */
.lg-dropdown { position: absolute; top: calc(100% + 6px); left: auto; right: 0; min-width: 232px; max-width: 300px; z-index: 40; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.45); padding: 6px; opacity: 0; transform: translateY(-6px); visibility: hidden; pointer-events: none; transition: opacity .22s ease, transform .22s ease, visibility .22s ease; }
.lg-dropdown::before { content: ""; position: absolute; top: -6px; left: 0; right: 0; height: 6px; } /* bridge keeps hover across the gap */
.footer-legal-col .lg-group:hover .lg-dropdown, .footer-legal-col .lg-group:focus-within .lg-dropdown, .footer-legal-col .lg-group.open .lg-dropdown { opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto; }
/* Scoped above `.footer-col a` so the generic column-link rule doesn't shrink these
   to fit-content / flow them inline, and so its hover ::after arrow is suppressed. */
.footer-legal-col .lg-item { display: flex; width: auto; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 11px; border-radius: 8px; color: var(--muted); font-size: 13px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.footer-legal-col .lg-item::after { content: none; }
.footer-legal-col .lg-item:hover, .footer-legal-col .lg-item:focus-visible { background: var(--panel-2); color: var(--text); outline: none; }
.footer-legal-col .lg-item .lg-arrow { color: var(--accent); opacity: .5; flex: 0 0 auto; transition: transform .15s ease, opacity .15s ease; }
.footer-legal-col .lg-item:hover .lg-arrow, .footer-legal-col .lg-item:focus-visible .lg-arrow { transform: translateX(3px); opacity: 1; }

/* bottom bar */
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.footer-bottom .fb-left, .footer-bottom .fb-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom .dot { opacity: .5; }
.footer-status { display: inline-flex; align-items: center; gap: 7px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: fs-pulse 2.2s ease-out infinite; }
@keyframes fs-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.footer-bottom .fb-links { display: inline-flex; gap: 16px; }
.footer-bottom .fb-links a { position: relative; color: var(--muted); transition: color .2s ease; }
.footer-bottom .fb-links a::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.footer-bottom .fb-links a:hover, .footer-bottom .fb-links a:focus-visible { color: var(--accent); }
.footer-bottom .fb-links a:hover::after, .footer-bottom .fb-links a:focus-visible::after { transform: scaleX(1); }
.footer-bottom .heart { color: #ef4444; }
.site-footer a:focus-visible, .site-footer button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Tablet: brand full-width, the four columns become a 2×2 grid */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .footer-brand { grid-column: 1 / -1; }
}
/* Mobile: stack; legal dropdowns become full-width blocks (no overflow) */
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .lg-dropdown { left: 0; right: 0; min-width: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-social a, .footer-col a, .footer-col a::after, .status-dot, .footer-bottom .fb-links a::after,
  .lg-trigger, .lg-chev, .lg-dropdown, .lg-item, .lg-item .lg-arrow { transition: none; animation: none; }
}
