/* Homepage footer: same layout and styling as the C5C and X5 pages. */
footer.site-footer {
  display: block;
  min-height: 0;
  padding: 0;
  border-top: 1px solid #1c2635;
  background: #0a0e17;
  color: #8b99ae;
  font-family: 'Segoe UI', system-ui, -apple-system, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
footer.site-footer .foot-inner {
  width: calc(100% - 48px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: 'logo social links' 'fine fine fine';
  gap: 8px 32px;
  align-items: center;
  text-align: center;
}
footer.site-footer .logo { grid-area: logo; color: #3d8bff; font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; }
footer.site-footer .social { grid-area: social; display: flex; flex-direction: column; align-items: center; gap: 10px; }
footer.site-footer .social-note { color: #8b99ae; font-size: 13px; letter-spacing: .04em; }
footer.site-footer .social-icons { display: flex; gap: 12px; }
footer.site-footer .social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #1c2635;
  color: #8b99ae;
  transition: transform .25s, color .25s, border-color .25s, background .25s, box-shadow .25s;
}
footer.site-footer .social-icons svg { width: 18px; height: 18px; display: block; }
footer.site-footer .social-icons a:hover {
  color: #fff;
  border-color: #3d8bff;
  background: rgba(61, 139, 255, .14);
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(61, 139, 255, .28);
}
footer.site-footer nav { grid-area: links; display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; font-size: 14px; }
footer.site-footer nav a { transition: color .2s; }
footer.site-footer nav a:hover { color: #3d8bff; }
footer.site-footer .fine { grid-area: fine; color: #56627a; font-size: 12px; }

@media (min-width: 1001px) and (max-height: 900px) {
  footer.site-footer .foot-inner { padding: 10px 0; }
  footer.site-footer .social { flex-direction: row; justify-content: center; gap: 16px; }
  footer.site-footer .social-icons a { width: 32px; height: 32px; }
}
@media (max-width: 1000px) {
  footer.site-footer .foot-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'logo' 'social' 'links' 'fine';
    justify-items: center;
  }
}

/* Reset homepage defaults within this footer only. */
footer.site-footer .foot-inner { font-size: inherit; }
footer.site-footer p { margin: 0; line-height: inherit; }
footer.site-footer .fine { overflow-wrap: anywhere; }
footer.site-footer .cookie-settings-link {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
footer.site-footer .cookie-settings-link:hover { color: #3d8bff; }
footer.site-footer .cookie-settings-link:focus-visible { outline: 2px solid #3d8bff; outline-offset: 3px; }

/* Shared desktop footer: logo / inline social links / navigation, copyright below. */
footer.site-footer .foot-inner { width: calc(100% - 104px); max-width: none; padding: 20px 0 10px; gap: 24px 32px; }
footer.site-footer .social { flex-direction: row; justify-content: center; gap: 18px; }
footer.site-footer .social-note { margin: 0; white-space: nowrap; font-size: 14px; }
footer.site-footer .social-icons a { width: 36px; height: 36px; }
footer.site-footer nav { margin: 0; padding: 0; }
footer.site-footer .fine { width: auto; margin: 0; line-height: 1.6; font-size: 12px; }
footer.site-footer .logo { font-size: 24px; }
@media(max-width:1000px) { footer.site-footer .foot-inner { width: calc(100% - 48px); gap: 18px; padding: 26px 0 18px; } footer.site-footer .social { flex-wrap: wrap; } }
@media(max-width:500px) { footer.site-footer .social { flex-direction: column; gap: 12px; } footer.site-footer .social-note { white-space: normal; } }

#cookie-preferences { position: fixed; inset: 0; margin: auto; width: min(620px, calc(100% - 40px)); max-height: calc(100svh - 40px); overflow: auto; padding: 36px; border: 1px solid #ffffff30; border-radius: 15px; background: #171e17; color: #f2f1e9; font: 400 14px/1.6 'DM Sans', Arial, sans-serif; }
#cookie-preferences::backdrop { background: #000a; backdrop-filter: blur(12px); }
#cookie-preferences .close-dialog { position: absolute; top: 10px; right: 20px; background: none; border: 0; color: inherit; font-size: 30px; cursor: pointer; }
#cookie-preferences h2 { font: 500 32px/1.2 'Manrope', Arial, sans-serif; margin: 18px 0 24px; letter-spacing: -.03em; }
#cookie-preferences p, #cookie-preferences small { color: #aeb9ab; font-size: 13px; line-height: 1.6; }
#cookie-preferences .cookie-option { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid #ffffff20; }
#cookie-preferences strong, #cookie-preferences small { display: block; }
#cookie-preferences .cookie-required { white-space: nowrap; color: #ffffff; }
#cookie-preferences input { width: 20px; height: 20px; flex-shrink: 0; accent-color: #1965dd; }
#cookie-preferences .cookie-dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
#cookie-preferences .cookie-dialog-actions button { border: 1px solid #ffffff35; border-radius: 24px; background: #1965dd; color: #fff; padding: 12px 18px; font: inherit; font-size: 12px; cursor: pointer; }
@media(max-width:500px) { #cookie-preferences { padding: 30px 22px; } }
