footer.foot { padding: 28px clamp(20px, 5.2vw, 104px) 80px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 0.82rem; color: #3E536E; background: #F7F9FC; position: relative; z-index: 1; }

/* In-repo integration: footer legal links (PreNet routes) */
.foot-legal { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 4px; }
.foot-legal a { color: inherit; opacity: .8; text-decoration: none; font-size: 0.82em; }
.foot-legal a:hover { opacity: 1; text-decoration: underline; }

/* Footer: dark/cosmic finish (links and routes unchanged) */
.foot[data-theme="dark"] {
  background: radial-gradient(120% 140% at 0% 0%, rgba(253, 110, 12, 0.10) 0%, rgba(253, 110, 12, 0) 45%), #0B1828;
  color: rgba(247, 249, 252, 0.72);
  border-top: 1px solid rgba(247, 249, 252, 0.08);
}
.foot[data-theme="dark"]::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, #FD6E0C 0%, #FEB121 100%); opacity: 0.55;
}
.foot[data-theme="dark"] .foot-legal a { color: #F7F9FC; opacity: 0.78; }
.foot[data-theme="dark"] .foot-legal a:hover, .foot[data-theme="dark"] .foot-legal a:focus-visible { color: #FEB121; opacity: 1; }
.foot-copy { flex-basis: 100%; font-size: 0.78em; opacity: 0.6; }

/* Align the icons even when some links have labels above them. */
.foot-social { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: flex-end; gap: 12px clamp(16px, 2.6vw, 24px); margin-top: 10px; }
.foot-social[hidden] { display: none; }
.foot-social__link { display: inline-flex; align-items: center; justify-content: center; color: rgba(247, 249, 252, 0.72); transition: color 0.2s, transform 0.2s; border-radius: 6px; }
.foot-social__link svg { width: 22px; height: 22px; display: block; }
.foot-social__link:hover, .foot-social__link:focus-visible { color: #FEB121; transform: translateY(-2px); }
.foot-social__link:focus-visible { outline: 2px solid #FEB121; outline-offset: 4px; }
.foot-social__link[hidden] { display: none; }
.foot-social__link--telegram { flex-direction: column; justify-content: flex-end; gap: 4px; min-width: 44px; min-height: 44px; text-decoration: none; }
.foot-social__link--telegram span { color: #F7F9FC; font-size: 0.75rem; line-height: 1.25; font-weight: 500; }
.foot-social__link--telegram svg { color: #229ED9; }
.foot-social__link--telegram:focus-visible { outline-color: #229ED9; }
@media (max-width: 680px) {
  .foot-social { justify-content: center; column-gap: clamp(12px, 2.6vw, 24px); }
}
