:root {
  color-scheme: light dark;
  --background: #f5f7fa;
  --surface: #ffffff;
  --text: #172033;
  --secondary: #5f6b7a;
  --border: #dfe5ec;
  --accent: #1677ff;
  --accent-soft: #eaf3ff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  line-height: 1.7;
}

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

.page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.hero,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgb(28 42 61 / 7%);
}

.hero {
  padding: 32px;
  margin-bottom: 20px;
}

.card {
  padding: 26px 30px;
  margin-top: 16px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

h1,
h2 {
  line-height: 1.3;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 44px);
}

h2 {
  margin: 0 0 12px;
  font-size: 21px;
}

p,
ul {
  margin: 10px 0 0;
}

.subtitle,
.meta,
footer {
  color: var(--secondary);
}

.subtitle {
  max-width: 680px;
  font-size: 17px;
}

.meta {
  font-size: 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 650;
  text-decoration: none;
}

.button.secondary {
  background: var(--accent-soft);
  color: var(--accent);
}

.notice {
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
}

footer {
  padding: 28px 4px 0;
  text-align: center;
  font-size: 14px;
}

footer p {
  margin: 0;
}

footer .beian {
  margin-top: 8px;
  font-size: 13px;
}

footer .beian a {
  color: var(--secondary);
  text-decoration: none;
}

footer .beian a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0f1218;
    --surface: #181d26;
    --text: #eef3fa;
    --secondary: #aab5c4;
    --border: #2b3442;
    --accent: #60a5fa;
    --accent-soft: #172b45;
  }

  .hero,
  .card {
    box-shadow: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(860px, calc(100% - 32px));
  margin: 20px auto 0;
}

.legal-home {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

html[data-i18n-pending] body {
  visibility: hidden;
}

html[dir="rtl"] .legal-nav,
html[dir="rtl"] .legal-home {
  text-align: right;
}

@media (max-width: 560px) {
  .page,
  .legal-nav {
    width: min(100% - 20px, 860px);
  }

  .page {
    padding-top: 20px;
  }

  .hero,
  .card {
    padding: 22px 20px;
    border-radius: 14px;
  }
}
