.site-footer,
body.home-page .site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-top: 1px solid #164e63;
  padding: 0 clamp(20px, 5vw, 72px);
  color: #d1d5db;
  background: #000;
}

.site-footer-inner {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px) 0 24px;
}

.site-footer-main {
  display: grid;
  grid-template-columns: minmax(250px, 1.65fr) repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(34px, 5vw, 52px);
}

.site-footer-brand {
  display: block;
  min-width: 0;
}

.site-footer-logo-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-bottom: 22px;
}

.site-footer .footer-logo {
  display: block;
  width: auto;
  height: 46px;
  max-width: min(200px, 100%);
  object-fit: contain;
}

.site-footer-brand h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.site-footer-brand > p {
  max-width: 380px;
  margin: 0;
  color: #d1d5db;
  font-size: 0.92rem;
  line-height: 1.75;
}

.site-footer-contact {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  font-size: 0.9rem;
  font-style: normal;
}

.site-footer-contact a,
.site-footer-address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  color: #e5e7eb;
  line-height: 1.55;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 160ms ease;
}

.site-footer-contact svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  fill: none;
  stroke: #22d3ee;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.site-footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding-top: 4px;
}

.site-footer-column h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer-column a,
.site-footer-bottom a {
  color: #d1d5db;
  font-size: 0.88rem;
  line-height: 1.5;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer-column a:hover,
.site-footer-contact a:hover,
.site-footer-bottom a:hover {
  color: #22d3ee;
}

.site-footer a:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 4px;
  border-radius: 3px;
}

.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid #164e63;
  color: #9ca3af;
  font-size: 0.82rem;
}

.site-footer-bottom a {
  color: #9ca3af;
  font-size: inherit;
}

.legal-page-main {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 900px);
  margin: 72px auto;
}

.legal-page-card {
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid #e3eaf5;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 43, 82, 0.09);
}

.legal-page-eyebrow {
  margin-bottom: 12px;
  color: #397bd1;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-page-card h1 {
  margin: 0 0 12px;
  color: #14213a;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.045em;
}

.legal-page-card > p:not(.legal-page-eyebrow) {
  color: #596a84;
  line-height: 1.7;
}

.legal-page-notice {
  display: grid;
  gap: 8px;
  margin: 28px 0;
  padding: 20px;
  border: 1px solid #cfe1fb;
  border-radius: 16px;
  background: #f3f8ff;
  color: #38516f;
  line-height: 1.65;
}

.legal-page-notice strong {
  color: #18365e;
}

.legal-page-notice a {
  color: #176bc0;
}

.legal-page-back {
  display: inline-flex;
  padding: 11px 16px;
  border-radius: 10px;
  background: linear-gradient(105deg, #1689d8, #5864e8);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 960px) {
  .site-footer-main {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 28px;
  }

  .site-footer-brand {
    grid-column: 1 / -1;
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  .site-footer,
  body.home-page .site-footer {
    padding-right: 22px;
    padding-left: 22px;
  }

  .site-footer-inner {
    padding-top: 40px;
  }

  .site-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
    padding-bottom: 32px;
  }

  .site-footer-brand {
    grid-column: 1 / -1;
  }

  .site-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .site-footer,
  body.home-page .site-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-footer-main {
    column-gap: 16px;
  }

  .site-footer-column a {
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer-column a,
  .site-footer-contact a,
  .site-footer-bottom a {
    transition: none;
  }
}
