.site-footer-mount {
  width: min(1120px, 100%);
  margin: 14px auto 0;
}

.site-footer-mount--dashboard {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0;
}

main.layout > .site-footer-mount {
  grid-column: 1 / -1;
  justify-self: stretch;
}

.legal-doc-shell > .site-footer-mount {
  width: 100%;
  margin-top: 18px;
}

.site-footer {
  --site-footer-text: var(--text, var(--legal-text, #e9fff2));
  --site-footer-muted: var(--muted, var(--legal-muted, #9fd7b8));
  --site-footer-green: var(--green, var(--legal-accent, #6ef6a2));
  --site-footer-border: var(--panel-border, var(--legal-border, rgba(110, 246, 162, 0.24)));
  --site-footer-panel: var(--panel, var(--legal-panel, rgba(9, 35, 24, 0.92)));
  --site-footer-shadow: var(--shadow, 0 20px 50px rgba(0, 0, 0, 0.38));

  overflow: hidden;
  border: 1px solid var(--site-footer-border);
  border-radius: 20px;
  background: var(--site-footer-panel);
  box-shadow: var(--site-footer-shadow);
  backdrop-filter: blur(6px);
}

.site-footer.panel {
  padding: 0;
}

.site-footer-inner {
  display: grid;
  gap: 24px 28px;
  padding: 24px 22px 20px;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
}

.site-footer-brand {
  display: grid;
  gap: 10px;
  align-content: start;
}

.site-footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(110, 246, 162, 0.35);
  box-shadow: 0 8px 20px rgba(48, 201, 117, 0.16);
}

.site-footer-brand strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--site-footer-text);
}

.site-footer-tagline {
  margin: 0;
  color: var(--site-footer-muted);
  font-size: 0.84rem;
  line-height: 1.5;
  max-width: 28ch;
}

.site-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.site-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--site-footer-text);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.site-footer-social a:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 246, 162, 0.45);
  background: rgba(110, 246, 162, 0.1);
}

.site-footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-footer-social .social-telegram { color: #27a7e7; }
.site-footer-social .social-x { color: #ffffff; }
.site-footer-social .social-youtube { color: #ff4444; }
.site-footer-social .social-github { color: #f0f6fc; }
.site-footer-social .social-email { color: var(--site-footer-green); }

.site-footer-col h3 {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--site-footer-green);
}

.site-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-footer-col a {
  color: var(--site-footer-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.15s ease;
}

.site-footer-col a:hover {
  color: var(--site-footer-text);
}

.site-footer-bottom {
  margin: 0;
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(110, 246, 162, 0.12);
  text-align: center;
  color: var(--site-footer-muted);
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.12);
}

@media (max-width: 920px) {
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
    padding: 20px 16px 16px;
  }

  .site-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
