/* ════════════════════════════════════════════════════════════════════
   SHARED FOOTER STYLES — single source of truth.
   Loaded via <link rel="stylesheet" href="partials/footer.css">.
   Companion files: partials/footer.html, partials/footer-loader.js
   ════════════════════════════════════════════════════════════════════ */

.footer {
  /* No top border — used to be `1px solid var(--line-soft)` but the
     section above already provides enough visual separation, so the
     hairline was redundant. */
  border-top: none;
  background: rgba(255, 255, 255, 0.016);
}
html[data-theme="light"] .footer {
  background: rgba(255, 255, 255, 0.4) !important;
}

.footer-inner {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin: 0 auto;
  padding: 64px 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
  color: var(--text);
}
.footer-brand img { height: 22px; width: auto; }
html[data-theme="light"] .footer-brand img { filter: invert(1); }
.footer-brand span { font-size: 16px; font-weight: 700; }

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--dim);
  max-width: 280px;
}

/* Wireframe override applied: body font, 14px, weight 600, no uppercase */
.footer-links-title {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* Wireframe override applied: body font, 13px, no transform, no extra spacing */
.footer-links a {
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover { color: var(--text); }
.footer-link-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;        /* removes inline baseline gap */
}

.footer-bottom {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin: 0 auto;
  padding: 24px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
html[data-theme="light"] .footer-bottom { border-top-color: var(--border) !important; }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
  text-decoration: none;
}

@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 24px; }
  .footer-bottom { padding: 24px 0; flex-direction: column; gap: 12px; }
}
