body.legal-page .subpage-header {
  width: 100%;
  background: #f5faff;
  border-bottom: 1px solid rgba(22, 42, 72, 0.06);
}

body.legal-page .subpage-header .topnav {
  position: relative !important;
  top: auto;
  left: auto;
  z-index: 20;
  width: min(100% - 32px, 1200px);
  max-width: 1200px;
  height: 66px;
  margin: 0 auto;
  padding: 0;
  transform: none;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: transparent !important;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.legal-page .subpage-header .topnav::before {
  display: none;
}

body.legal-page .subpage-header .brand {
  width: 120px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #303236;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

body.legal-page .subpage-header .brand img {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

body.legal-page .subpage-header .nav-links {
  display: none;
  align-items: center;
  gap: 34px;
  color: rgba(48, 50, 54, 0.82);
  font-size: 15px;
  font-weight: 700;
}

body.legal-page .subpage-header .nav-links a {
  padding: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: none;
}

body.legal-page .subpage-header .nav-actions {
  display: none;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

body.legal-page .subpage-header .nav-btn {
  min-width: 120px;
  height: 36px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

body.legal-page .subpage-header .nav-btn:hover,
body.legal-page .subpage-header .nav-btn:focus-visible {
  opacity: 0.7;
}

body.legal-page .subpage-header .nav-btn.outline {
  color: #1688ff;
  background: #fff;
  border: 1px solid #1688ff;
}

body.legal-page .subpage-header .nav-btn.fill {
  color: #fff;
  background: linear-gradient(90deg, #247bff 0%, #22c3ee 100%);
  border: 0;
}

body.legal-page .subpage-header .mobile-menu {
  position: relative;
  margin-left: auto;
}

body.legal-page .subpage-header .mobile-menu summary {
  list-style: none;
}

body.legal-page .subpage-header .mobile-menu summary::-webkit-details-marker {
  display: none;
}

body.legal-page .subpage-header .menu-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(48, 50, 54, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

body.legal-page .subpage-header .mobile-panel {
  position: absolute;
  right: 0;
  top: 52px;
  z-index: 30;
  width: min(280px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid rgba(22, 42, 72, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(22, 42, 72, 0.16);
}

body.legal-page .subpage-header .mobile-panel a {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #303236;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

body.legal-page .site-footer-design {
  width: 100%;
  height: 154px;
  margin: 0;
  padding: 0;
  color: #777;
  background: #f5faff;
  text-align: center;
}

body.legal-page .footer-legal-row {
  width: max-content;
  max-width: calc(100% - 32px);
  height: 22px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #555;
  font-size: 16px;
  line-height: 1.4;
}

body.legal-page .footer-legal-row a {
  color: #555 !important;
  text-decoration: none;
  text-underline-offset: 3px;
}

body.legal-page .footer-legal-row a:hover {
  text-decoration: underline;
}

body.legal-page .footer-separator {
  width: 1px;
  height: 14px;
  flex: 0 0 1px;
  background: #555;
}

body.legal-page .site-footer-design .footer-meta {
  width: 460px;
  margin: 20px auto 0;
  padding: 0;
  border: 0;
  color: #777;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
}

body.legal-page .footer-copyright {
  height: 22px;
}

body.legal-page .footer-records {
  height: 22px;
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

body.legal-page .footer-records a {
  color: #777;
  text-decoration: none;
  text-underline-offset: 3px;
}

body.legal-page .footer-records a:hover {
  text-decoration: underline;
}

@media (min-width: 900px) {
  body.legal-page .subpage-header .nav-links,
  body.legal-page .subpage-header .nav-actions {
    display: flex;
  }

  body.legal-page .subpage-header .mobile-menu {
    display: none;
  }
}

@media (max-width: 899px) {
  body.legal-page .subpage-header .topnav {
    width: min(100% - 32px, 430px);
  }

  body.legal-page .subpage-header .brand {
    font-size: 18px;
  }

  body.legal-page .subpage-header .brand img {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  body.legal-page .site-footer-design {
    height: auto;
    padding: 24px 16px 28px;
  }

  body.legal-page .footer-legal-row {
    width: min(100%, 430px);
    height: auto;
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 12px;
    font-size: 13px;
  }

  body.legal-page .footer-separator {
    height: 12px;
  }

  body.legal-page .site-footer-design .footer-meta {
    width: min(100%, 430px);
    margin-top: 18px;
    font-size: 13px;
  }

  body.legal-page .footer-records {
    height: auto;
    flex-wrap: wrap;
    gap: 6px 14px;
  }
}
