.site-footer {
  --footer-tg: #0088cc;
  --footer-primary: #0b5cad;
  --footer-primary-soft: #e8f2ff;
  --footer-text-muted: #65758b;
  --footer-text-faint: #8a96a8;
  --footer-divider: #e4eaf2;
  --footer-surface: rgba(255, 255, 255, 0.94);

  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--footer-divider);
  background: var(--footer-surface);
  padding: 2.5rem 0;
}

[data-theme="dark"] .site-footer {
  --footer-tg: #5cc8ff;
  --footer-primary: #68adf4;
  --footer-primary-soft: rgba(104, 173, 244, 0.16);
  --footer-text-muted: #a8b5c7;
  --footer-text-faint: #8795a8;
  --footer-divider: #2c384a;
  --footer-surface: rgba(16, 20, 28, 0.94);
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-brand {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--footer-text-muted);
  text-decoration: none;
}

.footer-brand:hover {
  color: var(--footer-primary);
}

.footer-brand-accent {
  color: var(--footer-primary);
}

.footer-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.footer-cta-bunch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.footer-cta-bunch--secondary {
  justify-content: center;
}

.footer-cta-row .tg-cta,
.footer-cta-row .footer-contract-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  white-space: nowrap;
  line-height: 1.2;
  text-decoration: none;
}

.tg-cta {
  background: var(--footer-tg);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  transition: opacity 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.tg-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.35);
}

.tg-cta:focus-visible,
.footer-contract-btn:focus-visible,
.footer-legal-link:focus-visible {
  outline: 2px solid var(--footer-primary);
  outline-offset: 2px;
}

.tg-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-contract-btn {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--footer-primary);
  background: var(--footer-primary-soft);
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.footer-contract-btn:hover {
  background: #eef3f8;
  border-color: var(--footer-divider);
  transform: translateY(-1px);
}

.footer-contract-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--footer-primary);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.35em;
  max-width: min(100%, 72rem);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--footer-text-faint);
  text-align: center;
}

.footer-meta-sep,
.footer-legal-sep {
  user-select: none;
}

.footer-note {
  color: inherit;
}

.footer-legal {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.35em;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.footer-legal-link {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.footer-legal-link:hover {
  text-decoration: underline;
}

.footer-legal-link[aria-current="page"] {
  text-decoration: underline;
}

body:not(.landing-body) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body:not(.landing-body) > main:not(.shell) {
  flex: 1;
}

body:not(.landing-body) > .shell {
  flex: 0 0 auto;
}

@media (max-width: 560px) {
  .site-footer {
    padding: 2rem 0;
  }

  .footer-cta-bunch {
    width: 100%;
  }

  .footer-cta-row .tg-cta,
  .footer-cta-row .footer-contract-btn {
    width: 100%;
    max-width: 320px;
  }
}
