:root {
  --primary: #003057;
  --bg: #FDFCF0;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #55606b;
  --border: rgba(0, 48, 87, 0.12);
  --accent: #c98a1f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #6fa8dc;
    --bg: #0e1a24;
    --surface: #16232f;
    --text: #eef2f5;
    --text-muted: #a9b6c0;
    --border: rgba(255, 255, 255, 0.12);
    --accent: #e0ac4c;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

header.site {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

header.site .logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

header.site h1 {
  font-size: 19px;
  margin: 0;
  color: var(--primary);
}

header.site .tagline {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 2px 0 0;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 16px;
}

.card h2 {
  margin-top: 0;
  font-size: 17px;
  color: var(--primary);
}

.card p { color: var(--text-muted); font-size: 14px; }

.links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.links a.button {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
}

.links a.button span.arrow {
  float: right;
  color: var(--primary);
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}

.lang-toggle button {
  border: none;
  background: transparent;
  padding: 7px 16px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 600;
}

.lang-toggle button.active {
  background: var(--primary);
  color: #fff;
}

[data-lang-content] { display: none; }
[data-lang-content].active { display: block; }

.legal-body h3 {
  color: var(--primary);
  font-size: 15px;
  margin: 22px 0 6px;
}

.legal-body p { white-space: pre-wrap; font-size: 14.5px; }

.notice {
  background: rgba(201, 138, 31, 0.12);
  border: 1px solid rgba(201, 138, 31, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 22px;
}

footer.site {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
  text-align: center;
}

.back-link { display: inline-block; margin-bottom: 20px; font-size: 13.5px; }
