
/* ===== Footer (One Intelligence) ===== */
.footer {
  width: 100%;
  background: #0A101C;
  color: rgba(255, 255, 255, 0.85);
}

.footer * {
  box-sizing: border-box;
}

/* Outer container mirrors page gutters */
.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 64px 80px 64px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* === Brand + Nav row === */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Logo */
.logo-wrapper .logo-link {
  display: inline-flex;
  width: 96px;
  height: 96px;
  border-radius: 18px;
  background: #FAFAFA;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.logo-wrapper .logo-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* Nav */
.footer-nav {
  display: inline-flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.footer-nav a:hover {
  color: #FFFFFF;
  opacity: 0.95;
}
.footer-nav a.external::after {
  content: " ↗";
  opacity: 0.8;
}

/* === Bottom section === */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.divider {
  width: 100%;
  height: 0;
  outline: 1px rgba(255, 255, 255, 0.20) solid;
  outline-offset: -0.5px;
}

/* Copyright + legal links row */
.footer-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.copyright {
  margin: 0;
  color: #FFFFFF;
  font-family: Roboto, Inter, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
}

.legal-links {
  display: inline-flex;
  gap: 24px;
}
.legal-links a {
  color: rgba(255, 255, 255, 0.50);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.legal-links a:hover {
  color: rgba(255, 255, 255, 0.85);
  opacity: 1;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .footer-container { padding: 48px 32px 64px 32px; gap: 64px; }
}
@media (max-width: 640px) {
  .footer-container { padding: 40px 24px 56px 24px; gap: 48px; }
  .footer-info {
    flex-direction: column;
    gap: 16px;
  }
  .logo-wrapper .logo-link {
    width: 80px; height: 80px;
  }
  .footer-nav {
    gap: 20px;
  }
}

/* === High-contrast focus for accessibility === */
.footer a:focus-visible,
.logo-wrapper .logo-link:focus-visible {
  outline: 2px solid #9DB1FF;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Optional: subtle entrance animation */
@media (prefers-reduced-motion: no-preference) {
  .footer-nav a { transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease; }
  .footer-nav a:hover { transform: translateY(-1px); }
}

