html {
  scroll-behavior: smooth;
}

body.fws-legal-page {
  margin: 0;
  background: #f5f8fa;
  color: #0a1825;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.fws-legal-page *,
.fws-legal-page *::before,
.fws-legal-page *::after {
  box-sizing: border-box;
}

.fws-legal-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 14px 22px;
  background: rgba(245, 248, 250, .92);
  border-bottom: 1px solid rgba(13, 39, 60, .09);
  backdrop-filter: blur(16px);
}

.fws-legal-header__inner {
  width: min(1220px, 100%);
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.fws-legal-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #081522;
  text-decoration: none;
  font-size: 17px;
  font-weight: 750;
}

.fws-legal-header__brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.fws-legal-header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.fws-legal-header__nav a {
  color: #31475c;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.fws-legal-header__nav a:last-child {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  padding: 0 17px;
  background: #088fd3;
  color: #ffffff;
}

.fws-legal-hero {
  padding: clamp(72px, 9vw, 132px) 22px clamp(58px, 7vw, 94px);
  background:
    radial-gradient(circle at var(--mx, 13%) var(--my, 48%), rgba(8, 143, 211, .24), transparent 30%),
    radial-gradient(circle at 8% 46%, rgba(8, 143, 211, .32), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(255, 255, 255, .10), transparent 28%),
    radial-gradient(circle at 82% 88%, rgba(8, 143, 211, .22), transparent 34%),
    linear-gradient(135deg, #04101c 0%, #061522 42%, #102e4b 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.fws-legal-hero__inner,
.fws-legal-layout {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.fws-legal-eyebrow {
  display: block;
  margin-bottom: 18px;
  color: #8fdcff;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 850;
}

.fws-legal-hero h1 {
  max-width: 850px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 84px);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 620;
}

.fws-legal-hero p {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(229, 241, 249, .74);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.62;
  font-weight: 500;
}

.fws-legal-updated {
  display: inline-flex;
  margin-top: 25px;
  color: rgba(229, 241, 249, .64);
  font-size: 13px;
  font-weight: 650;
}

.fws-legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(44px, 7vw, 92px);
  padding: clamp(56px, 7vw, 96px) 22px clamp(80px, 9vw, 130px);
}

.fws-legal-toc {
  position: sticky;
  top: 112px;
  align-self: start;
}

.fws-legal-toc span {
  display: block;
  margin-bottom: 14px;
  color: #708194;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 850;
}

.fws-legal-toc a {
  display: block;
  padding: 8px 0;
  color: #40566b;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 650;
}

.fws-legal-content {
  min-width: 0;
}

.fws-legal-section {
  scroll-margin-top: 120px;
  padding: 0 0 42px;
}

.fws-legal-section + .fws-legal-section {
  padding-top: 42px;
  border-top: 1px solid #dce5eb;
}

.fws-legal-section h2 {
  margin: 0 0 18px;
  color: #0a1825;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -.045em;
  font-weight: 650;
}

.fws-legal-section h3 {
  margin: 27px 0 10px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 750;
}

.fws-legal-section p,
.fws-legal-section li {
  color: #455b6f;
  font-size: 15px;
  line-height: 1.72;
  font-weight: 500;
}

.fws-legal-section p {
  margin: 0 0 14px;
}

.fws-legal-section ul {
  margin: 14px 0 0;
  padding-left: 21px;
}

.fws-legal-section li + li {
  margin-top: 7px;
}

.fws-legal-section a {
  color: #087fbd;
  text-underline-offset: 3px;
}

.fws-legal-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.fws-legal-data div {
  padding: 16px;
  border: 1px solid #dce5eb;
  border-radius: 6px;
  background: #ffffff;
}

.fws-legal-data strong,
.fws-legal-data span {
  display: block;
}

.fws-legal-data strong {
  margin-bottom: 6px;
  color: #718294;
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.fws-legal-data span {
  color: #172a3c;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}

.fws-legal-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid #dce5eb;
  border-radius: 6px;
  background: #ffffff;
}

.fws-legal-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.fws-legal-table th,
.fws-legal-table td {
  padding: 15px 16px;
  border-bottom: 1px solid #e3e9ee;
  text-align: left;
  vertical-align: top;
}

.fws-legal-table tr:last-child td {
  border-bottom: 0;
}

.fws-legal-table th {
  background: #eef3f6;
  color: #5b6e81;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.fws-legal-table td {
  color: #40566b;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 500;
}

.fws-legal-preferences {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  border: 0;
  border-radius: 5px;
  padding: 0 18px;
  background: #088fd3;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.fws-legal-footer {
  padding: 48px 22px 30px;
  background: #061522;
  color: #ffffff;
}

.fws-legal-footer__inner {
  width: min(1100px, 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto;
}

.fws-legal-footer strong {
  display: block;
  font-size: 21px;
}

.fws-legal-footer p {
  max-width: 520px;
  margin: 10px 0 0;
  color: rgba(232, 244, 252, .68);
  font-size: 13px;
  line-height: 1.55;
}

.fws-legal-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 17px;
}

.fws-legal-footer__links a,
.fws-legal-footer__links button {
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 760px) {
  .fws-legal-header {
    padding: 10px 16px;
  }

  .fws-legal-header__inner {
    min-height: 54px;
  }

  .fws-legal-header__brand {
    font-size: 14px;
  }

  .fws-legal-header__brand img {
    width: 34px;
    height: 34px;
  }

  .fws-legal-header__nav a:not(:last-child) {
    display: none;
  }

  .fws-legal-header__nav a:last-child {
    min-height: 38px;
    padding: 0 13px;
    font-size: 12px;
  }

  .fws-legal-hero {
    padding-inline: 18px;
  }

  .fws-legal-layout {
    grid-template-columns: 1fr;
    padding-inline: 18px;
  }

  .fws-legal-toc {
    position: static;
    display: none;
  }

  .fws-legal-data {
    grid-template-columns: 1fr;
  }

  .fws-legal-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .fws-legal-footer__links {
    justify-content: flex-start;
  }
}
