.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  color: #69738e;
  font-size: 12px;
  line-height: 1.7;
}
.legal-links a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 3px;
}
.legal-links a:hover,
.legal-links a[aria-current="page"] {
  color: #6262ff;
}
.legal-links a:hover {
  text-decoration: underline;
}
.footer-info .legal-links {
  justify-content: flex-end;
  margin-top: 9px;
}
.card > .legal-links {
  margin-top: 25px;
}
.legal-links a:focus-visible {
  outline: 3px solid #6262ff;
  outline-offset: 4px;
  border-radius: 4px;
}

.legal-page {
  --ink: #252b49;
  --muted: #69738e;
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 80% 0%, #d6d4ff70, transparent 45%),
    linear-gradient(145deg, #edf4ff, #f7f9ff 40%, #f8f5ff);
  font-family:
    "PingFang SC",
    "Microsoft YaHei",
    "Hiragino Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
.legal-page *,
.legal-page *:before,
.legal-page *:after {
  box-sizing: border-box;
}
.legal-page a {
  text-underline-offset: 3px;
}
.legal-page :focus-visible {
  outline: 3px solid #6262ff;
  outline-offset: 4px;
}
.legal-shell {
  width: min(980px, calc(100% - 64px));
  margin-inline: auto;
}
.legal-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 0;
}
.legal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 750;
  text-decoration: none;
}
.legal-brand img {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  flex-shrink: 0;
}
.legal-language {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}
.legal-language select {
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid #d4dffb;
  border-radius: 22px;
  color: #53618b;
  background: #ffffffb3;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.legal-main {
  flex: 1;
  padding: 20px 0 45px;
}
.legal-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #65739a;
  font-size: 13px;
  text-decoration: none;
}
.legal-home:hover {
  color: #6262ff;
}
.legal-intro {
  padding: 24px 0 30px;
}
.legal-intro h1 {
  margin: 0 0 15px;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.4;
  letter-spacing: -0.6px;
  overflow-wrap: anywhere;
}
.legal-intro .legal-links {
  justify-content: flex-start;
}
.legal-layout {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}
.legal-toc {
  position: sticky;
  top: 24px;
  padding: 18px 16px;
  border: 1px solid #dce3fa;
  border-radius: 18px;
  background: #ffffff80;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  font-size: 12px;
}
.legal-toc h2 {
  font-size: 13px;
  margin: 0 0 10px;
}
.legal-toc ol {
  padding: 0;
  margin: 0;
  list-style: none;
}
.legal-toc li + li {
  margin-top: 10px;
}
.legal-toc a {
  color: var(--muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.legal-toc a:hover {
  color: #6262ff;
}
.legal-article {
  min-width: 0;
  border: 1px solid #e0e6f8;
  border-radius: 25px;
  background: #fff;
  padding: 34px 38px;
  font-size: 15px;
  box-shadow: 0 16px 50px #6388ff08;
  overflow-wrap: anywhere;
}
.legal-article p {
  margin: 0 0 16px;
}
.legal-article h2 {
  margin: 32px 0 15px;
  font-size: 20px;
  line-height: 1.55;
  color: #3e4690;
  scroll-margin-top: 25px;
}
.legal-article h3,
.legal-article h4 {
  font-size: 17px;
  line-height: 1.6;
  margin: 22px 0 12px;
  scroll-margin-top: 25px;
}
.legal-article > :first-child {
  margin-top: 0;
}
.legal-article > :last-child {
  margin-bottom: 0;
}
.legal-article a {
  color: #5656db;
}
.legal-article strong {
  font-weight: 700;
}
.legal-article ul,
.legal-article ol {
  margin: 12px 0 18px;
  padding-left: 24px;
}
.legal-article li {
  margin-bottom: 8px;
}
.legal-article li > p {
  margin-bottom: 8px;
}
.legal-article table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.legal-article td,
.legal-article th {
  border: 1px solid #dce3fa;
  padding: 10px;
  text-align: left;
}
.legal-article img {
  display: block;
  max-width: 100%;
  height: auto;
}
.legal-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 0 0;
}
.legal-bottom .legal-home {
  margin-left: auto;
}
.legal-footer {
  border-top: 1px solid #dce3fa;
  padding: 23px 0;
  text-align: center;
  color: #7c86a2;
  font-size: 11px;
}
.legal-footer p {
  margin: 2px 0;
}
.legal-page .registration-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 12px;
  padding: 12px 20px 24px;
  color: #7c86a2;
  font-size: 11px;
  text-align: center;
}
.legal-page .registration-footer a {
  color: inherit;
  text-decoration: none;
}
.legal-page .registration-footer a:hover {
  color: #6262ff;
  text-decoration: underline;
}
.legal-page .registration-divider {
  color: #b3bbd1;
}
html:not([lang="zh-CN"]) .legal-page .registration-footer {
  display: none;
}
.legal-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 800px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .legal-toc {
    position: static;
    max-height: 240px;
  }
}
@media (max-width: 480px) {
  .footer-info .legal-links {
    justify-content: center;
  }
  .legal-shell {
    width: calc(100% - 36px);
  }
  .legal-header {
    gap: 14px;
    padding: 20px 0;
  }
  .legal-brand {
    font-size: 15px;
    gap: 8px;
    flex: 1;
    min-width: 0;
  }
  .legal-brand img {
    width: 35px;
    height: 35px;
    border-radius: 11px;
  }
  .legal-language select {
    width: 100px;
    padding: 7px 8px;
    font-size: 11px;
  }
  .legal-main {
    padding-top: 10px;
  }
  .legal-intro {
    padding: 20px 0;
  }
  .legal-article {
    padding: 24px 19px;
    border-radius: 20px;
    font-size: 14px;
  }
  .legal-article h2 {
    font-size: 18px;
  }
  .legal-page .registration-footer {
    flex-direction: column;
    gap: 3px;
  }
  .legal-page .registration-divider {
    display: none;
  }
}
@media print {
  .legal-page {
    display: block;
    background: #fff;
  }
  .legal-header,
  .legal-toc,
  .legal-home,
  .legal-links,
  .legal-footer,
  .legal-bottom,
  .legal-page .registration-footer {
    display: none;
  }
  .legal-shell {
    width: 100%;
  }
  .legal-layout {
    display: block;
  }
  .legal-article {
    border: 0;
    padding: 0;
    box-shadow: none;
  }
  .legal-reader-controls {
    display: none;
  }
}

.legal-page [hidden] {
  display: none !important;
}
.legal-layout.legal-layout-no-toc {
  grid-template-columns: minmax(0, 1fr);
}
.legal-toc[hidden] + .legal-article {
  grid-column: 1 / -1;
}
.legal-article[data-load-state="loading"],
.legal-article[data-load-state="error"] {
  min-height: 150px;
}
.legal-reader-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: #69738e;
  font-size: 12px;
}
.legal-reader-controls p {
  width: 100%;
  margin: 0;
  line-height: 1.8;
}
.legal-reader-controls a {
  color: #6262ff;
}
.legal-reader-controls button {
  border: 0;
  border-radius: 12px;
  padding: 10px 17px;
  background: linear-gradient(
    120deg,
    #639aff,
    #6388ff 32%,
    #6262ff 66%,
    #7f5bff
  );
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.legal-article pre {
  overflow-x: auto;
  background: #f1f4ff;
  border-radius: 12px;
  padding: 16px;
}
.legal-article code {
  font-size: 0.9em;
}
.legal-article blockquote {
  margin-inline: 0;
  padding-left: 18px;
  border-left: 3px solid #b8c6ff;
  color: #69738e;
}
