@font-face {
  font-family: 'Source Han Sans Old';
  src: url('/fonts/SourceHanSansOLD-Normal-2.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Han Sans Old';
  src: url('/fonts/SourceHanSansOLD-Medium-2.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Han Sans Old';
  src: url('/fonts/SourceHanSansOLD-Bold-2.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #040507;
  --bg-soft: rgba(255, 255, 255, 0.03);
  --surface: rgba(10, 12, 16, 0.78);
  --surface-soft: rgba(255, 255, 255, 0.02);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f5f7ff;
  --muted: #a0a9b8;
  --muted-2: #727b89;
  --accent: #6ed6ff;
  --accent-2: #67e5ca;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shadow: 0 22px 58px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(110, 214, 255, 0.1), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(103, 229, 202, 0.08), transparent 24%),
    linear-gradient(180deg, #06080b 0%, #050608 100%);
  font-family: 'Source Han Sans Old', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
  line-height: 1.78;
}

a {
  color: inherit;
}

#main-content {
  min-height: 100dvh;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(4, 6, 10, 0.72);
  border-bottom: 1px solid var(--line);
}

.navbar-content {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-text {
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  font-weight: 800;
  text-decoration: none;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.contact-btn:hover,
.contact-btn:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  color: var(--text);
}

.legal-page {
  padding: 34px 0 48px;
}

.legal-container {
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto;
}

.lang-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 18px;
}

.lang-switch button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.lang-switch button.active {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.lang-content {
  display: none;
}

.lang-content.active {
  display: block;
}

.lang-content > h1,
.lang-content > p {
  max-width: 78ch;
}

h1 {
  margin: 10px 0 14px;
  font-size: clamp(2rem, 5.4vw, 3.1rem);
  letter-spacing: -0.04em;
  line-height: 1.06;
  text-wrap: balance;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.18rem, 2.7vw, 1.58rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h3 {
  margin: 16px 0 8px;
  font-size: 1.04rem;
  line-height: 1.38;
}

p,
li,
td,
th {
  color: var(--muted);
  font-size: 0.98rem;
}

strong {
  color: var(--text);
}

.legal-section {
  margin-top: 14px;
  padding: 18px 18px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 90%, transparent), transparent 40%),
    var(--surface);
  box-shadow: var(--shadow);
}

.legal-section h2::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  vertical-align: middle;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  border-radius: 12px;
  overflow: hidden;
}

th,
td {
  border: 1px solid var(--line);
  text-align: left;
  padding: 10px 11px;
  vertical-align: top;
}

th {
  color: var(--text);
  font-weight: 600;
  background: color-mix(in srgb, var(--surface) 84%, black 16%);
}

ul,
ol {
  padding-left: 22px;
}

li + li {
  margin-top: 6px;
}

.legal-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.legal-footer a:hover,
.legal-footer a:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  background: color-mix(in srgb, var(--surface) 70%, var(--accent) 10%);
}

.footer {
  border-top: 1px solid var(--line);
  margin-top: 38px;
}

.footer-container {
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 30px;
}

.footer-copyright {
  display: grid;
  gap: 7px;
}

.footer-copyright a {
  color: var(--text);
  text-decoration-color: rgba(255, 255, 255, 0.38);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

@media (max-width: 760px) {
  .legal-page {
    padding-top: 24px;
  }

  .legal-section {
    padding: 14px 14px 16px;
    border-radius: var(--radius-md);
  }

  table {
    display: block;
    overflow-x: auto;
  }
}
