/*
  LEGACY — общий тёмно-синий подвал с документами.
  Одинаковый на всех страницах: разметка <footer class="legacy-footer-final">,
  стили только отсюда (не зависят от стилей конкретной страницы).
*/

.legacy-footer-final {
  margin-top: 0;
  padding: 72px 0 26px;
  background: #0c1a2b;
  color: #fff;
  font-family: "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  line-height: 1.5;
}

.legacy-footer-final .legacy-footer-container {
  width: min(1500px, calc(100% - 80px));
  margin: 0 auto;
}

.legacy-footer-grid {
  display: grid;
  grid-template-columns:
    minmax(320px, 1.45fr)
    minmax(160px, 0.7fr)
    minmax(260px, 1fr)
    minmax(300px, 1.15fr);
  gap: 64px;
  align-items: start;
}

.legacy-footer-brand img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  margin-bottom: 28px;
}

.legacy-footer-brand p,
.legacy-footer-join p {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  line-height: 1.65;
}

.legacy-footer-col h5,
.legacy-footer-join h5 {
  margin: 0 0 22px;
  color: #ecd39b;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legacy-footer-col a {
  display: block;
  margin-bottom: 13px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  text-decoration: none;
}

.legacy-footer-col a:hover {
  color: #fff;
}

.legacy-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  padding: 16px 22px;
  border: 0;
  border-radius: 10px;
  background: #e9d4a5;
  box-shadow: 0 8px 24px rgba(214, 198, 171, 0.15);
  color: #0e1b2d;
  font: 700 15px "Segoe UI", Inter, Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.legacy-footer-cta:hover {
  transform: translateY(-2px);
}

.legacy-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

@media (max-width: 1050px) {
  .legacy-footer-final .legacy-footer-container {
    width: min(100% - 36px, 1100px);
  }

  .legacy-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Телефон: компактно, помещается в один экран. */
@media (max-width: 680px) {
  .legacy-footer-final {
    padding: 36px 0 24px;
  }

  .legacy-footer-final .legacy-footer-container {
    width: calc(100% - 24px);
  }

  .legacy-footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .legacy-footer-brand img {
    width: auto;
    height: 40px;
    margin-bottom: 10px;
  }

  .legacy-footer-brand p {
    font-size: 13px;
    line-height: 1.5;
  }

  .legacy-footer-col {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .legacy-footer-col h5 {
    width: 100%;
    margin: 0 0 2px;
  }

  .legacy-footer-col a {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
  }

  .legacy-footer-join p {
    display: none;
  }

  .legacy-footer-join h5 {
    margin-bottom: 10px;
  }

  .legacy-footer-cta {
    width: 100%;
    margin-top: 0;
  }

  .legacy-footer-bottom {
    flex-direction: column;
    gap: 6px;
    margin-top: 22px;
    padding-top: 16px;
  }
}
