:root {
  color-scheme: dark;
  --bg: #05080b;
  --panel: rgba(12, 18, 24, 0.88);
  --panel-soft: rgba(18, 27, 35, 0.72);
  --text: #edf3f7;
  --muted: #9ba9b5;
  --line: rgba(167, 188, 204, 0.18);
  --accent: #bad9f2;
  --accent-strong: #e4f3ff;
  --max: 960px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 8%, rgba(66, 113, 145, 0.14), transparent 28rem),
    radial-gradient(circle at 90% 20%, rgba(120, 91, 61, 0.1), transparent 25rem),
    linear-gradient(180deg, #06090c 0%, #030507 100%);
  line-height: 1.72;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.24;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.7) 0 1px, transparent 1.2px),
    radial-gradient(circle, rgba(141,190,225,.7) 0 1px, transparent 1.2px);
  background-position: 0 0, 37px 61px;
  background-size: 89px 89px, 131px 131px;
  content: "";
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
code { padding: .08em .35em; border: 1px solid rgba(167, 188, 204, .14); border-radius: 6px; background: rgba(255,255,255,.05); color: #dbeaf5; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 10; padding: 10px 14px; background: #fff; color: #000; }
.skip-link:focus { top: 12px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), 1120px);
  min-height: 70px;
  margin: 14px auto 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(6, 10, 13, 0.78);
  box-shadow: 0 16px 45px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 680; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.toplinks { display: flex; align-items: center; gap: 6px; }
.toplinks a { padding: 8px 12px; border-radius: 12px; color: var(--muted); font-size: 13px; text-decoration: none; }
.toplinks a:hover, .toplinks a[aria-current="page"] { background: rgba(255,255,255,.07); color: var(--text); }

.hero, .legal-main, .site-footer { width: min(calc(100% - 36px), var(--max)); margin-inline: auto; }
.hero { padding: 92px 0 54px; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 820px; margin: 0; font-size: clamp(42px, 8vw, 76px); font-weight: 680; letter-spacing: -.055em; line-height: .98; }
.hero .lead { max-width: 720px; margin: 26px 0 0; color: #bdc8d1; font-size: clamp(16px, 2.2vw, 20px); }
.meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 25px; color: var(--muted); font-size: 13px; }
.language-switch { display: flex; width: fit-content; margin-top: 18px; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.035); }
.language-switch a, .language-switch span { padding: 6px 11px; border-radius: 9px; color: var(--muted); font-size: 12px; text-decoration: none; }
.language-switch [aria-current="true"] { background: rgba(255,255,255,.09); color: var(--text); }

.legal-main { display: grid; gap: 18px; padding-bottom: 70px; }
.policy-card {
  scroll-margin-top: 100px;
  padding: clamp(23px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 24px 65px rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
}
.policy-card h2 { margin: 0 0 15px; font-size: clamp(23px, 3.5vw, 32px); letter-spacing: -.025em; line-height: 1.2; }
.policy-card h3 { margin: 28px 0 10px; color: #dce9f2; font-size: 17px; }
.policy-card p { margin: 10px 0; color: #bdc8d1; }
.policy-card ul { margin: 12px 0; padding-left: 1.25rem; color: #bdc8d1; }
.policy-card li + li { margin-top: 7px; }
.policy-card strong { color: var(--text); }
.notice { border-color: rgba(142, 194, 230, .34); background: linear-gradient(145deg, rgba(25,45,59,.92), rgba(11,17,22,.9)); }
.english { border-style: dashed; background: rgba(8, 13, 17, .78); }
.english p, .english li { color: #aebbc5; }

.data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.data-item { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: var(--panel-soft); }
.data-item strong { display: block; margin-bottom: 4px; }
.data-item span { color: var(--muted); font-size: 14px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.06); color: var(--text); font-size: 14px; font-weight: 650; text-decoration: none; }
.button.primary { background: #e1edf6; color: #071017; }

.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 46px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 680px) {
  .topbar { width: calc(100% - 20px); min-height: 62px; margin-top: 9px; border-radius: 18px; }
  .toplinks a:not([aria-current="page"]) { display: none; }
  .hero { padding-top: 68px; }
  .data-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
