* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --page-bg: #f7f8fb;
  --text: #1f2937;
  --muted: #4b5563;
  --subtle: #6b7280;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --border: #e5e7eb;
  --brand: #2563eb;
}

body.dark-mode {
  color-scheme: dark;
  --page-bg: #0f172a;
  --text: #e5e7eb;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --surface: #111827;
  --surface-soft: #1e293b;
  --border: #334155;
  --brand: #60a5fa;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(920px, 92%);
  margin: 0 auto;
}

.site-header,
.site-footer {
  background: var(--surface);
  border-color: var(--border);
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.logo {
  color: var(--brand);
  font-size: 20px;
  font-weight: 800;
}

.nav-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.theme-toggle,
.lang-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
}

.actions {
  display: flex;
  gap: 8px;
}

.hero {
  padding: 54px 0 24px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: 38px;
  line-height: 1.2;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.content {
  padding: 24px 0 64px;
}

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

.section h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.section h3 {
  margin: 20px 0 8px;
  font-size: 18px;
}

.section p,
.section li {
  color: var(--muted);
}

.section ul,
.section ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

.notice {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--subtle);
}

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero h1 {
    font-size: 30px;
  }
}
