:root {
  color-scheme: light;
  --brand: #2463eb;
  --brand-dark: #173f9e;
  --ink: #172033;
  --muted: #5d677a;
  --line: #e4e8f0;
  --surface: #ffffff;
  --page: #f5f7fb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.72;
}

a { color: var(--brand); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.header-inner,
.page,
.footer-inner {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand small { display: block; color: var(--muted); font-weight: 500; }
.language-links { white-space: nowrap; font-size: 14px; }

.page {
  margin-top: 36px;
  margin-bottom: 48px;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(31, 49, 89, 0.07);
}

h1, h2, h3 { line-height: 1.35; }
h1 { margin: 0 0 8px; font-size: clamp(28px, 5vw, 42px); }
h2 { margin-top: 36px; padding-top: 8px; font-size: 23px; }
h3 { margin-top: 26px; font-size: 18px; }
p, li { color: #303a4c; }
ul { padding-left: 22px; }

.meta,
.notice {
  color: var(--muted);
}

.notice {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #f1f6ff;
}

.section-break {
  margin: 48px 0 32px;
  border: 0;
  border-top: 1px solid var(--line);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 20px 0 0;
  font-size: 14px;
}

.site-footer {
  padding: 0 0 40px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

code {
  padding: 2px 6px;
  border-radius: 5px;
  background: #eef1f6;
}

@media (max-width: 640px) {
  .header-inner { align-items: flex-start; padding: 12px 0; }
  .brand small { display: none; }
  .page { margin-top: 18px; border-radius: 12px; }
}
