.legal-main {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
  padding-block: 72px 104px;
  color: #17191c;
  background: #fff;
  font-size: 18px;
  line-height: 1.8;
}

.legal-main,
.legal-main * {
  min-width: 0;
}

.legal-hero {
  max-width: 920px;
  margin: 0;
  padding: 0 0 52px;
  overflow: visible;
  isolation: auto;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.legal-hero::before,
.legal-hero::after {
  content: none;
  display: none;
  animation: none;
}

.legal-hero .kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: #63656b;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}

.legal-hero .live-dot {
  flex: none;
}

.not-found-main {
  min-height: 58vh;
}

.not-found-main .legal-hero {
  padding-bottom: 0;
}

.not-found-actions {
  margin-block: 30px 24px;
}

.not-found-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  font-size: 16px;
}

.not-found-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #62666f;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.not-found-links a:hover {
  color: #2458f5;
}

.legal-hero h1 {
  max-width: 900px;
  margin: 0 0 24px;
  color: #17191c;
  font-family: inherit;
  font-size: 64px;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.055em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.legal-hero > p:not(.kicker):not(.legal-date) {
  max-width: 760px;
  margin: 0 0 24px;
  color: #63656b;
  font-size: 20px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.legal-hero .legal-date {
  margin: 0;
  color: #63656b;
  font-size: 16px;
  line-height: 1.6;
}

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 80px;
  align-items: start;
  margin: 0;
  padding: 48px 0 0;
  border: 0;
  border-top: 1px solid #e6e7eb;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.legal-toc {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  align-self: start;
  align-items: stretch;
  gap: 3px;
  margin: 0;
  padding: 0;
  color: #63656b;
  font-size: 16px;
  line-height: 1.6;
}

.legal-toc > .footer-label,
.legal-toc > strong,
.legal-toc > p {
  width: 100%;
  margin: 0 0 15px;
  color: #17191c;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

.legal-toc a {
  display: block;
  width: 100%;
  margin: 0;
  padding: 9px 0 9px 16px;
  color: #63656b;
  font-size: 16px;
  line-height: 1.55;
  text-decoration: none;
  overflow-wrap: anywhere;
  border: 0;
  border-left: 1px solid #e6e7eb;
  border-radius: 0;
  background: none;
}

.legal-toc a:hover {
  color: #2458f5;
  border-left-color: #2458f5;
  background: none;
}

.legal-copy {
  width: 100%;
  max-width: 760px;
  margin: 0;
  padding: 0;
  color: #63656b;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow-wrap: anywhere;
}

.legal-copy section {
  margin: 0;
  padding: 0;
  scroll-margin-top: 112px;
}

.legal-copy section + section {
  margin-top: 48px;
  padding-top: 0;
  border: 0;
}

.legal-copy h2 {
  margin: 0 0 18px;
  color: #17191c;
  font-family: inherit;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.035em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.legal-copy h3 {
  margin: 28px 0 14px;
  color: #17191c;
  font-family: inherit;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.legal-copy p,
.legal-copy li {
  color: #63656b;
  font-size: 18px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.legal-copy p {
  margin: 0 0 20px;
}

.legal-copy p:last-child {
  margin-bottom: 0;
}

.legal-copy ul,
.legal-copy ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.legal-copy li + li {
  margin-top: 10px;
}

.legal-copy a:not(.button) {
  color: #2458f5;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.legal-copy code,
.legal-copy pre {
  max-width: 100%;
  color: #17191c;
  font-size: 17px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-copy code {
  padding: 0;
  border: 0;
  background: none;
}

.legal-main a:focus-visible {
  outline: 2px solid #2458f5;
  outline-offset: 5px;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 40px;
  }

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

@media (max-width: 700px) {
  .legal-main {
    width: calc(100% - 32px);
    padding-block: 44px 64px;
    font-size: 17px;
  }

  .legal-hero {
    padding-bottom: 32px;
  }

  .legal-hero .kicker {
    margin-bottom: 18px;
  }

  .legal-hero h1 {
    margin-bottom: 20px;
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -0.045em;
  }

  .legal-hero > p:not(.kicker):not(.legal-date) {
    margin-bottom: 22px;
    font-size: 18px;
    line-height: 1.75;
  }

  .legal-layout {
    display: block;
    padding-top: 28px;
  }

  .legal-toc {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 36px;
    padding: 0 0 28px;
    border-bottom: 1px solid #e6e7eb;
  }

  .legal-toc > .footer-label,
  .legal-toc > strong,
  .legal-toc > p {
    margin-bottom: 12px;
  }

  .legal-toc a {
    padding-block: 8px;
  }

  .legal-copy section + section {
    margin-top: 36px;
  }

  .legal-copy h2 {
    margin-bottom: 16px;
    font-size: 25px;
  }

  .legal-copy h3 {
    font-size: 20px;
  }

  .legal-copy p,
  .legal-copy li {
    font-size: 17px;
    line-height: 1.8;
  }

  .legal-copy section {
    scroll-margin-top: 88px;
  }
}
