html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #1a1a1a;
  color: #f5f7fb;
  font-family: "Source Han Sans CN", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.legal-page {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 12%, rgba(55, 123, 255, 0.16), transparent 32%),
    radial-gradient(circle at 82% 10%, rgba(203, 255, 0, 0.12), transparent 24%),
    linear-gradient(180deg, #1a1a1a 0%, #17191d 52%, #111318 100%);
}

.legal-root {
  position: relative;
  min-height: 100vh;
}

.legal-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.legal-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 26, 26, 0.06) 0%, rgba(26, 26, 26, 0.32) 36%, rgba(10, 10, 10, 0.82) 100%);
}

.legal-background-stage {
  position: absolute;
  inset: 0;
}

.legal-background-stage img {
  position: absolute;
  max-width: none;
  user-select: none;
}

.bg-hero {
  top: -96px;
  right: -6px;
  width: 620px;
  height: 1454px;
  opacity: 0.95;
}

.bg-process {
  top: 31%;
  left: 50%;
  width: 1952px;
  height: 305px;
  transform: translateX(-50%);
  opacity: 0.72;
}

.bg-creators {
  left: 0;
  bottom: -84px;
  width: 789px;
  height: 502px;
  opacity: 0.7;
}

.legal-topbar,
.legal-shell {
  position: relative;
  z-index: 1;
}

.legal-topbar {
  width: min(1664px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 28px;
}

.legal-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 28px;
  border-radius: 22px;
  background: rgba(250, 250, 250, 0.92);
  box-shadow: 0 8px 28px rgba(20, 28, 44, 0.2);
  backdrop-filter: blur(14px);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111111;
}

.legal-brand img {
  width: 24px;
  height: 24px;
}

.legal-brand-name {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.legal-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(17, 17, 17, 0.04);
  color: #363c48;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.legal-nav-link:hover {
  background: rgba(17, 17, 17, 0.08);
}

.legal-nav-link.is-active {
  background: #111111;
  border-color: #cbff00;
  color: #ffffff;
}

.legal-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 96px;
}

.legal-panel {
  position: relative;
  overflow: hidden;
  padding: 56px 64px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(20, 22, 28, 0.92) 100%);
  border: 1px solid rgba(203, 255, 0, 0.22);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.legal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(203, 255, 0, 0.09) 0%, transparent 28%),
    linear-gradient(180deg, transparent 0%, rgba(55, 123, 255, 0.08) 100%);
  pointer-events: none;
}

.legal-content {
  position: relative;
  z-index: 1;
}

.legal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(198, 255, 0, 0.14);
  border: 1px solid rgba(198, 255, 0, 0.22);
  color: #cbff00;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbff00;
  box-shadow: 0 0 0 6px rgba(203, 255, 0, 0.14);
}

.legal-content h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.legal-content .intro {
  margin-bottom: 28px;
  font-size: 18px;
  line-height: 1.95;
  color: rgba(243, 246, 252, 0.86);
}

.legal-content h2 {
  margin: 42px 0 18px;
  font-size: 28px;
  line-height: 1.35;
  color: #ffffff;
}

.legal-content h3 {
  margin: 24px 0 12px;
  font-size: 20px;
  line-height: 1.5;
  color: #dce5ff;
}

.legal-content p,
.legal-content li {
  font-size: 17px;
  line-height: 1.95;
  color: rgba(236, 241, 248, 0.86);
}

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

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

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

.legal-content strong {
  color: #ffffff;
  font-weight: 700;
}

.highlight-cyan,
.highlight-blue {
  color: #8fd3ff;
}

.highlight-red {
  color: #ff9898;
}

.highlight-white {
  color: #ffffff;
}

.note {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-footer p {
  margin: 0;
}

.legal-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: #cbff00;
  color: #0f1115;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.legal-footer-link::after {
  content: "\2192";
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 1024px) {
  .legal-topbar {
    width: min(100%, calc(100% - 32px));
    padding-top: 18px;
  }

  .legal-topbar-inner {
    padding: 18px 20px;
  }

  .legal-shell {
    width: min(100%, calc(100% - 32px));
    padding-bottom: 64px;
  }

  .legal-panel {
    padding: 40px 28px;
    border-radius: 26px;
  }

  .bg-hero {
    right: -120px;
    width: 560px;
    height: auto;
  }

  .bg-process {
    top: 36%;
    width: 1480px;
    height: auto;
  }

  .bg-creators {
    width: 620px;
    height: auto;
  }
}

@media (max-width: 768px) {
  .legal-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .legal-nav-link {
    min-height: 38px;
    padding: 0 16px;
    font-size: 14px;
  }

  .legal-shell {
    width: calc(100% - 24px);
  }

  .legal-panel {
    padding: 32px 18px 28px;
    border-radius: 22px;
  }

  .legal-content .intro,
  .legal-content p,
  .legal-content li {
    font-size: 15px;
    line-height: 1.82;
  }

  .legal-content h2 {
    font-size: 24px;
  }

  .legal-content h3 {
    font-size: 18px;
  }

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

  .bg-hero {
    right: -180px;
    top: -80px;
    opacity: 0.82;
  }

  .bg-process {
    top: 34%;
    left: 56%;
    opacity: 0.52;
  }

  .bg-creators {
    left: -150px;
    bottom: -40px;
    opacity: 0.54;
  }
}
