.footer-copy {
  color: #52687d;
  font-size: 1.3rem;
  line-height: 1.9;
}

.footer-copy a {
  color: #52687d;
  text-decoration: none;
}

.footer-copy a:hover,
.footer-copy a:focus {
  color: #93a7bb;
  text-decoration: underline;
}

.footer-legal-divider {
  color: rgba(82, 104, 125, 0.88);
}

.footer-copy-links {
  white-space: normal;
}

@media (max-width: 768px) {
  .footer-copy-links a {
    display: inline;
  }
}

.legal-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 38, 0.56);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1500;
}

.legal-panel-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.legal-side-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(440px, 100vw);
  height: 100vh;
  padding: 40px 30px 92px;
  overflow-y: auto;
  background: #ffffff;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 1501;
}

.legal-side-panel.active {
  transform: translateX(0);
}

.legal-side-panel-header {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 18px 30px;
  background: #1B5789;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 -10px 24px rgba(16, 28, 43, 0.08);
}

.legal-side-panel h2,
.legal-side-panel h3 {
  margin: 0 0 18px;
  color: #15304f;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1.15;
}

.legal-side-panel h4 {
  margin: 26px 0 10px;
  color: #15304f;
  font-size: 1.8rem;
  line-height: 1.4;
}

.legal-side-panel h5 {
  margin: 16px 0 8px;
  color: #1f4b74;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.45;
}

.legal-side-panel p,
.legal-side-panel li {
  color: #405268;
  font-size: 1.45rem;
  line-height: 1.8;
}

.legal-side-panel ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal-side-panel a {
  color: #0c5e8a;
}

.legal-side-panel a:hover,
.legal-side-panel a:focus {
  color: #15304f;
}

.legal-side-panel a:focus-visible,
.legal-side-close:focus-visible {
  outline: 3px solid #5ac8ff;
  outline-offset: 3px;
}

.legal-side-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
  padding: 5px 8px;
  border: 1px solid rgba(29, 120, 171, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: #54708d;
  font-size: 1.15rem;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: none;
  white-space: nowrap;
}

.legal-side-close:hover,
.legal-side-close:focus {
  background: #eef7ff;
  border-color: rgba(29, 120, 171, 0.34);
  color: #15304f;
}

body.legal-panel-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .legal-side-panel {
    width: 100vw;
    padding: 32px 20px 80px;
  }

  .legal-side-panel-header {
    padding: 16px 20px;
  }

  .legal-side-panel h2,
  .legal-side-panel h3 {
    font-size: 2.6rem;
  }
}
