:root {
  color-scheme: light;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: #172033;
  background: #f4f6f9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.legal-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(24px, calc((100vw - 1080px) / 2));
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}
.legal-topbar a {
  color: #312e81;
  font-weight: 750;
  text-decoration: none;
}
.legal-topbar nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.legal-shell {
  width: min(960px, calc(100% - 32px));
  margin: 40px auto 72px;
}
.legal-card {
  padding: clamp(24px, 5vw, 64px);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}
.legal-kicker {
  color: #4f46e5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
h1 {
  margin: 8px 0;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.04em;
}
.legal-meta {
  color: #64748b;
}
.legal-version-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 16px 18px;
  color: #78350f;
  border: 1px solid #f5cf7a;
  border-radius: 14px;
  background: #fffbeb;
}
.legal-version-notice[hidden] {
  display: none;
}
.legal-version-notice div {
  display: grid;
  gap: 4px;
}
.legal-version-notice strong {
  font-size: 15px;
}
.legal-version-notice span {
  color: #92400e;
  font-size: 14px;
  line-height: 1.6;
}
.legal-version-notice a {
  flex: 0 0 auto;
  padding: 9px 13px;
  color: #312e81;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.legal-rendered-content {
  margin: 36px 0 0;
  overflow-wrap: anywhere;
  font:
    16px/1.9 Inter,
    "Noto Sans SC",
    "Microsoft YaHei",
    sans-serif;
  color: #334155;
}
.legal-rendered-content h2,
.legal-rendered-content h3,
.legal-rendered-content h4,
.legal-rendered-content h5 {
  margin: 2em 0 0.7em;
  color: #172033;
  line-height: 1.35;
}
.legal-rendered-content h2 {
  padding-bottom: 0.45em;
  font-size: 1.45rem;
  border-bottom: 1px solid #e2e8f0;
}
.legal-rendered-content h3 {
  font-size: 1.18rem;
}
.legal-rendered-content p {
  margin: 0.9em 0;
}
.legal-rendered-content .legal-document-meta {
  display: inline-block;
  margin: 0.25em 1.25em 0.25em 0;
  color: #64748b;
  font-size: 0.94rem;
}
.legal-rendered-content ul,
.legal-rendered-content ol {
  margin: 0.9em 0;
  padding-left: 1.65em;
}
.legal-rendered-content li + li {
  margin-top: 0.35em;
}
.legal-rendered-content blockquote {
  margin: 1.2em 0;
  padding: 0.7em 1em;
  color: #475569;
  border-left: 4px solid #818cf8;
  background: #f8fafc;
}
.legal-rendered-content code {
  padding: 0.12em 0.36em;
  border-radius: 6px;
  background: #eef2ff;
}
.legal-rendered-content hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid #e2e8f0;
}
.legal-status {
  padding: 16px;
  color: #991b1b;
  border-radius: 12px;
  background: #fef2f2;
}
@media (max-width: 680px) {
  .legal-topbar {
    position: static;
    flex-direction: column;
  }
  .legal-topbar nav {
    display: grid;
    gap: 10px;
  }
  .legal-shell {
    margin-top: 18px;
  }
  .legal-version-notice {
    align-items: stretch;
    flex-direction: column;
  }
  .legal-version-notice a {
    text-align: center;
  }
}
