.legal-page {
  background: #fff;
  color: var(--text);
}

.legal-page main {
  overflow: hidden;
  background: #fff;
}

.legal-hero {
  background: linear-gradient(180deg, #f0f8ff 0%, #e8f6ff 100%);
  border-bottom: 1px solid #edf4fa;
}

.legal-hero__inner {
  min-height: 190px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  padding: 34px 0 36px;
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #163b60;
  font-size: 13px;
  font-weight: 700;
}

.legal-breadcrumb strong {
  color: #102b52;
  font-weight: 900;
}

.legal-hero h1 {
  margin: 28px 0 0;
  color: #071f3d;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.legal-hero p {
  margin: 16px 0 0;
  color: #163b60;
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.legal-hero__meta {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-bottom: 5px;
  color: #405a78;
  font-size: 13px;
  font-weight: 900;
}

.legal-hero__meta a,
.legal-copy a,
.legal-question a {
  color: #006df4;
  font-weight: 900;
}

.legal-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 240px;
  gap: 46px;
  align-items: start;
  padding-top: 22px;
}

.legal-sidebar,
.legal-aside {
  position: sticky;
  top: 20px;
}

.legal-search,
.legal-menu,
.legal-sidebar-help,
.legal-info-card,
.legal-docs-card,
.legal-requests,
.legal-cta {
  border: 1px solid #dbe9f6;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 47, 82, .05);
}

.legal-search {
  height: 64px;
  display: grid;
  grid-template-columns: 45px 1fr 36px;
  align-items: center;
  border-radius: 12px;
  padding: 0 12px;
}

.legal-search span {
  position: relative;
  width: 100%;
  height: 100%;
}

.legal-search span::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 23px;
  width: 14px;
  height: 14px;
  border: 2px solid #526b8a;
  border-radius: 50%;
}

.legal-search span::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 37px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: #526b8a;
  transform: rotate(45deg);
}

.legal-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #1d3c62;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.legal-search button {
  border: 0;
  background: transparent;
  color: #526b8a;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.legal-menu {
  margin-top: 12px;
  border-radius: 13px;
  padding: 0 20px;
}

.legal-menu section {
  border-bottom: 1px solid #e5eef7;
  padding: 20px 0 17px;
}

.legal-menu section:last-child {
  border-bottom: 0;
}

.legal-menu h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
  color: #102b52;
  font-size: 13px;
  font-weight: 900;
}

.legal-menu a {
  display: block;
  margin-top: 13px;
  color: #334e70;
  font-size: 13px;
  font-weight: 700;
}

.legal-menu a.is-active {
  position: relative;
  color: var(--orange);
}

.legal-menu a.is-active::before {
  content: "";
  position: absolute;
  left: -17px;
  top: -7px;
  width: 3px;
  height: 29px;
  border-radius: 999px;
  background: var(--orange);
}

.legal-sidebar-help {
  margin-top: 12px;
  border-radius: 13px;
  padding: 22px 20px;
}

.legal-sidebar-help h2,
.legal-info-card h2,
.legal-question h2,
.legal-page-nav h2,
.legal-docs-card h2,
.legal-requests h2 {
  margin: 0;
  color: #102b52;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
}

.legal-sidebar-help p {
  margin: 14px 0 18px;
  color: #405a78;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.legal-sidebar-help a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #006df4;
  border-radius: 7px;
  padding: 0 18px;
  color: #006df4;
  font-size: 13px;
  font-weight: 900;
}

.legal-document {
  min-width: 0;
  padding-top: 16px;
}

.legal-document__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.legal-document__head h2 {
  margin: 0;
  color: #102b52;
  font-size: 33px;
  font-weight: 900;
  line-height: 1.12;
}

.legal-document__head p {
  margin: 18px 0 0;
  color: #405a78;
  font-size: 13px;
  font-weight: 800;
}

.legal-document__head span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 12px;
  background: #e6f2ff;
  color: #006df4;
  font-size: 12px;
  font-weight: 900;
}

.legal-toc {
  margin-top: 34px;
  border-bottom: 1px solid #cfddec;
  padding-bottom: 24px;
}

.legal-toc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.legal-toc h3 {
  margin: 0;
  color: #102b52;
  font-size: 15px;
  font-weight: 900;
}

.legal-toc button {
  border: 0;
  background: transparent;
  color: #006df4;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.legal-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 98px;
  margin: 22px 0 0;
  padding-left: 18px;
  color: #102b52;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.legal-copy {
  padding-top: 34px;
}

.legal-copy h2,
.legal-copy h3 {
  margin: 0 0 7px;
  color: #102b52;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.legal-copy h2 {
  margin-top: 26px;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p {
  margin: 0 0 25px;
  color: #102b52;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.legal-document__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  color: #405a78;
  font-size: 13px;
  font-weight: 800;
}

.legal-document__foot select,
.legal-language-card select {
  min-height: 42px;
  border: 1px solid #d5e3ef;
  border-radius: 8px;
  padding: 0 42px 0 18px;
  background: #fff;
  color: #163b60;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.legal-page-nav {
  padding: 28px 0 4px 10px;
}

.legal-page-nav ol {
  display: grid;
  gap: 18px;
  margin: 22px 0 0;
  padding-left: 20px;
  color: #49637f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.legal-info-card {
  margin-top: 28px;
  border-radius: 13px;
  padding: 28px 24px;
}

.legal-info-card p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 0;
  color: #102b52;
  font-size: 13px;
  font-weight: 900;
}

.legal-info-card p span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #26c281;
}

.legal-info-card small {
  display: block;
  margin-top: 18px;
  color: #405a78;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.legal-info-card a {
  display: inline-flex;
  margin-top: 20px;
  color: #006df4;
  font-size: 13px;
  font-weight: 900;
}

.legal-language-card {
  margin-top: 20px;
}

.legal-language-card select {
  width: 100%;
  margin-top: 18px;
}

.legal-download {
  min-height: 48px;
  display: grid;
  place-items: center;
  margin-top: 20px;
  border: 2px solid #006df4;
  border-radius: 8px;
  color: #006df4;
  font-size: 13px;
  font-weight: 900;
}

.legal-question {
  margin-top: 30px;
}

.legal-question p {
  margin: 20px 0 8px;
  color: #405a78;
  font-size: 13px;
  font-weight: 800;
}

.legal-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 18px;
  align-items: start;
  padding-top: 60px;
}

.legal-docs-card,
.legal-requests {
  border-radius: 13px;
  padding: 24px 24px 22px;
}

.legal-table {
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid #dbe9f6;
  border-radius: 8px;
}

.legal-table > div {
  min-height: 28px;
  display: grid;
  grid-template-columns: 2fr 1.25fr 1fr 68px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #dbe9f6;
  padding: 0 12px;
  color: #405a78;
  font-size: 12px;
  font-weight: 800;
}

.legal-table > div:last-child {
  border-bottom: 0;
}

.legal-table__head {
  color: #7387a0;
  background: #f8fcff;
}

.legal-table strong {
  color: #102b52;
  font-weight: 900;
}

.legal-table a {
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #006df4;
  border-radius: 5px;
  color: #006df4;
  background: #f7fbff;
}

.legal-index-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding-top: 28px;
}

.legal-index-content {
  min-width: 0;
  display: grid;
  gap: 28px;
}

.legal-card-section {
  scroll-margin-top: 110px;
}

.legal-card-section__head {
  display: block;
  margin-bottom: 14px;
}

.legal-card-section__head span {
  color: #006df4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-card-section__head h2 {
  margin: 4px 0 0;
  color: #102b52;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.08;
}

.legal-doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.legal-doc-card,
.legal-empty {
  border: 1px solid #dbe9f6;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 47, 82, .05);
}

.legal-doc-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
}

.legal-doc-card span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  background: #eaf6ff;
  color: #006df4;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-doc-card h3 {
  margin: 18px 0 0;
  color: #102b52;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.12;
}

.legal-doc-card p {
  margin: 12px 0 0;
  color: #405a78;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.legal-doc-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.legal-doc-card dl div {
  border: 1px solid #e2edf8;
  border-radius: 8px;
  padding: 10px;
  background: #f8fcff;
}

.legal-doc-card dt {
  margin: 0;
  color: #7387a0;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-doc-card dd {
  margin: 5px 0 0;
  color: #102b52;
  font-size: 13px;
  font-weight: 900;
}

.legal-doc-card > a,
.legal-back-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid #006df4;
  border-radius: 8px;
  color: #006df4;
  font-size: 13px;
  font-weight: 900;
}

.legal-empty {
  padding: 30px;
}

.legal-empty h2 {
  margin: 0;
  color: #102b52;
  font-size: 26px;
  font-weight: 900;
}

.legal-empty p {
  margin: 10px 0 18px;
  color: #405a78;
  font-weight: 700;
  line-height: 1.55;
}

.legal-requests details {
  border: 1px solid #dbe9f6;
  border-radius: 8px;
  margin-top: 8px;
  background: #fff;
}

.legal-requests details:first-of-type {
  margin-top: 22px;
}

.legal-requests summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  color: #102b52;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.legal-requests summary::-webkit-details-marker {
  display: none;
}

.legal-requests summary::after {
  content: "v";
  color: #102b52;
  font-size: 12px;
}

.legal-requests p {
  margin: 0;
  padding: 0 16px 14px;
  color: #405a78;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.legal-cta {
  min-height: 128px;
  display: grid;
  grid-template-columns: 72px 1fr 220px auto;
  gap: 26px;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 24px;
  border-radius: 13px;
  padding: 24px 36px;
  background: linear-gradient(135deg, #eef9ff, #dff3ff);
}

.legal-cta > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #57b9ff, #2c82f6);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.legal-cta h2 {
  margin: 0;
  color: #102b52;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
}

.legal-cta p {
  margin: 8px 0 0;
  color: #163b60;
  font-size: 15px;
  font-weight: 700;
}

.legal-cta a {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #006df4;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.legal-cta strong {
  color: #006df4;
}

@media (max-width: 1180px) {
  .legal-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .legal-aside {
    position: static;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }

  .legal-page-nav {
    display: none;
  }

  .legal-info-card,
  .legal-language-card,
  .legal-download,
  .legal-question {
    margin-top: 0;
  }

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

  .legal-index-shell {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
  }

  .legal-cta {
    grid-template-columns: 72px 1fr;
  }

  .legal-cta a,
  .legal-cta > p {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .legal-hero__inner,
  .legal-shell,
  .legal-index-shell,
  .legal-doc-grid,
  .legal-aside,
  .legal-lower,
  .legal-cta {
    grid-template-columns: 1fr;
  }

  .legal-hero__inner {
    min-height: 0;
    align-items: start;
    padding: 28px 0;
  }

  .legal-hero h1 {
    font-size: 34px;
  }

  .legal-breadcrumb,
  .legal-hero h1,
  .legal-hero p,
  .legal-hero__meta {
    width: min(100%, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }

  .legal-hero__meta {
    flex-direction: column;
    align-items: start;
    gap: 12px;
  }

  .legal-sidebar,
  .legal-aside {
    position: static;
  }

  .legal-toc ol {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .legal-document__head,
  .legal-document__foot {
    flex-direction: column;
    align-items: start;
  }

  .legal-table {
    overflow-x: auto;
  }

  .legal-table > div {
    min-width: 640px;
  }

  .legal-cta {
    text-align: left;
  }

  .legal-cta a,
  .legal-cta > p {
    grid-column: auto;
  }
}
