/*
  Shared footer, used by the client SPA (index.html) and every
  worker-rendered static page (Rule Guide). Self-contained tokens so it
  renders identically wherever it's used, with a dark-mode variant for
  Rule Guide pages (the landing page itself is light-only).
*/

:root {
  --footer-bg: #f8f9fb;
  --footer-text: #000000;
  --footer-text-muted: #6d6d6d;
}

@media (prefers-color-scheme: dark) {
  :root {
    --footer-bg: #1e2126;
    --footer-text: #f2f3f5;
    --footer-text-muted: #a3abb5;
  }
}

.site-footer {
  position: relative;
  z-index: 4;
  width: 100%;
  background: var(--footer-bg);
  padding: 64px 0 48px;
  font-family: "Rethink Sans", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer__contact-label {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--footer-text);
}

.site-footer a.site-footer__email {
  font-size: 20px;
  font-weight: 500;
  color: var(--footer-text-muted);
  text-underline-offset: 4px;
  text-decoration: none;
}

.site-footer a.site-footer__email:hover {
  opacity: 0.75;
}

.site-footer__cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 120px;
}

.site-footer a.site-footer__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--footer-text-muted);
  padding: 4px 0;
  text-decoration: none;
}

.site-footer a.site-footer__link:hover {
  opacity: 0.65;
}

.site-footer a:hover {
  text-decoration: none;
}

@media (max-width: 640px) {
  .site-footer__inner {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 20px;
  }

  .site-footer__cols {
    flex-wrap: nowrap;
    gap: 20px;
    margin-left: auto;
  }

  .site-footer__contact-label,
  .site-footer a.site-footer__email {
    font-size: 18px;
  }

  .site-footer__col {
    min-width: auto;
  }
}
