/*
 * site-footer.css — Standalone footer styles.
 * Embeds the subset of design tokens from landing/base.css so the footer
 * looks identical on every page (login, signup, privacy, terms, etc.)
 * without requiring the full landing stylesheet.
 */

/* ── Design tokens (scoped to .footer so they don't leak) ── */
.footer {
  --sidebar-dark: #0f172a;
  --grad-brand: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  --brand-cyan: #38bdf8;
  --slate-100: #F1F5F9;
  --slate-500: #64748B;
  --slate-600: #475569;
}

/* ── Footer ── */
.footer {
  padding: 64px 0 0;
  background: var(--sidebar-dark);
  color: var(--slate-100);
  font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  box-sizing: border-box;
}

.footer-brand { max-width: 260px; }

.footer-logo {
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-logo span {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-tagline {
  color: var(--slate-500);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-company-info {
  color: var(--slate-500);
  font-size: 0.78rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-company-info strong {
  color: var(--slate-100);
  font-weight: 600;
}

.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-500);
  transition: all 0.2s;
  text-decoration: none;
}
.footer-social a:hover { background: var(--grad-brand); color: white; }

.footer-column h4 {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--slate-600); margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: var(--slate-500); text-decoration: none;
  font-size: 0.875rem; transition: color 0.2s;
}
.footer-links a:hover { color: var(--brand-cyan); }

/* ── Legal bar ── */
.footer-legal-bar {
  background: #111827;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 20px 48px;
  display: flex; justify-content: center; align-items: center; gap: 20px;
}
.footer-legal-bar a {
  color: #e2e8f0; text-decoration: none;
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.3px;
  padding: 6px 16px; border-radius: 6px; transition: all 0.2s;
}
.footer-legal-bar a:hover { color: #ffffff; background: rgba(255,255,255,0.08); }
.footer-legal-divider { color: rgba(255,255,255,0.2); font-size: 0.9rem; }

/* ── Copyright ── */
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding: 24px 48px; text-align: center;
}
.footer-copyright { color: var(--slate-600); font-size: 0.8rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-content { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .footer { padding-top: 40px; }
  .footer-content { padding: 0 20px; grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
  .footer-brand { max-width: 100%; text-align: center; }
  .footer-social { justify-content: center; }
  .footer-column { text-align: center; }
  .footer-links { align-items: center; }
  .footer-legal-bar { padding: 18px 20px; gap: 12px; }
  .footer-legal-bar a { font-size: 0.9rem; padding: 6px 12px; }
  .footer-bottom { padding: 20px; }
}
@media (max-width: 480px) {
  .footer-content { padding: 0 16px; }
  .footer-logo { font-size: 1.1rem; }
  .footer-tagline { font-size: 0.8rem; }
  .footer-column h4 { font-size: 0.65rem; }
  .footer-links a { font-size: 0.8rem; }
  .footer-legal-bar { padding: 16px; gap: 8px; }
  .footer-legal-bar a { font-size: 0.85rem; padding: 6px 10px; }
  .footer-copyright { font-size: 0.7rem; }
}
@media (hover: none) and (pointer: coarse) {
  .footer-links a { padding: 6px 0; }
  .footer-legal-bar a { padding: 10px 16px; }
}
@supports (padding: env(safe-area-inset-bottom)) {
  .footer { padding-bottom: 0; }
  .footer-bottom { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
