.legal-document footer.legal-site-footer {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 64px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #45494e;
  border-top-color: #5a5f65;
  border-radius: 8px;
  background: linear-gradient(145deg, #303235 0%, #292b2e 58%, #242629 100%);
  box-shadow: inset 0 1px 0 #ffffff12, 0 12px 32px #0005;
  color: #f4f5f6;
  font-size: 13px;
}

.legal-site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #84b9f7, #3976bc 46%, transparent 78%);
}

.legal-footer-identity {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #17191b;
  box-shadow: inset 0 -1px 0 #ffffff08;
}

.legal-footer-brand {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid #6d8fb8;
  border-top-color: #a9c7ea;
  border-radius: 7px;
  background: linear-gradient(#3b71aa, #244e79 74%, #1a3b5e);
  box-shadow: inset 0 1px #ffffff42, inset 0 -3px #132d48, 0 3px 7px #0006;
  color: #fff !important;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.07em;
  text-decoration: none;
}

.legal-footer-copy { min-width: 0; }

.legal-footer-kicker {
  margin-bottom: 4px;
  color: #9fc8f5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.legal-footer-identity strong,
.legal-footer-identity span { display: block; }

.legal-footer-identity strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.25;
}

.legal-footer-identity span {
  margin-top: 3px;
  color: #c1c7cd;
  line-height: 1.45;
}

.legal-footer-links {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 16px 24px 19px;
  flex-wrap: wrap;
  background: #20222580;
  font-size: 13px !important;
}

.legal-footer-links a,
.legal-footer-links .cookie-settings-link {
  width: auto !important;
  height: auto !important;
  min-width: max-content;
  min-height: 44px;
  margin: 0 !important;
  padding: 10px 15px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid #26292c !important;
  border-top-color: #858b92 !important;
  border-radius: 6px !important;
  background: linear-gradient(#62676d, #44494f 73%, #393e44) !important;
  box-shadow: inset 0 1px 0 #ffffff38, inset 0 -3px 0 #292d31, 0 2px 4px #0006 !important;
  color: #f6f7f8 !important;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
}

.legal-footer-links a:hover,
.legal-footer-links a:focus-visible,
.legal-footer-links .cookie-settings-link:hover,
.legal-footer-links .cookie-settings-link:focus-visible {
  border-color: #8ab6e5 !important;
  border-top-color: #c5ddf7 !important;
  background: linear-gradient(#727980, #535a62 73%, #424950) !important;
  outline: 2px solid #78aee866;
  outline-offset: 2px;
}

.legal-footer-links a[aria-current="page"] {
  border-color: #659bd4 !important;
  border-top-color: #add0f5 !important;
  background: linear-gradient(#4b79a9, #315d89 74%, #274b70) !important;
  box-shadow: inset 0 1px 0 #ffffff40, inset 0 -3px 0 #1c3b5a, 0 2px 4px #0006 !important;
}

.legal-footer-links a:last-child {
  margin-left: auto !important;
  border-color: #557fac !important;
  border-top-color: #a7c8eb !important;
}

@media (max-width: 760px) {
  .legal-document footer.legal-site-footer { margin-top: 46px; }
  .legal-footer-identity { align-items: flex-start; padding: 20px 18px 17px; }
  .legal-footer-links { display: grid !important; grid-template-columns: 1fr 1fr; padding: 15px 18px 18px; }
  .legal-footer-links a,
  .legal-footer-links .cookie-settings-link { width: 100% !important; min-width: 0; white-space: normal; }
  .legal-footer-links a:last-child { grid-column: 1 / -1; margin-left: 0 !important; }
}

@media (max-width: 420px) {
  .legal-footer-identity { gap: 12px; }
  .legal-footer-brand { width: 44px; height: 44px; }
  .legal-footer-links { grid-template-columns: 1fr; }
  .legal-footer-links a:last-child { grid-column: auto; }
}

html[data-theme="light"] .legal-document footer.legal-site-footer {
  border-color: #aeb6bd;
  border-top-color: #e5e9ec;
  background: linear-gradient(145deg, #f7f8f9, #e8ebee 60%, #dce1e5);
  box-shadow: inset 0 1px 0 #fff, 0 12px 28px #26384a26;
  color: #18222b;
}

html[data-theme="light"] .legal-footer-identity { border-bottom-color: #b7bec5; box-shadow: inset 0 -1px #fff; }
html[data-theme="light"] .legal-footer-identity strong { color: #152331; }
html[data-theme="light"] .legal-footer-identity span { color: #4e5c68; }
html[data-theme="light"] .legal-footer-kicker { color: #285f99; }
html[data-theme="light"] .legal-footer-links { background: #d7dde380; }

@media (prefers-reduced-motion: reduce) {
  .legal-footer-links a,
  .legal-footer-links .cookie-settings-link { transition: none; }
}
