:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --border: #e5e5e0;
  --accent: #d97706;
  --accent-soft: #fef3c7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a17;
    --surface: #242420;
    --text: #f5f5f0;
    --text-muted: #a8a8a0;
    --border: #34342f;
    --accent: #fbbf24;
    --accent-soft: #44340a;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo",
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero {
  text-align: center;
  padding: 32px 0 48px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

.hero .tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0 0 48px;
}

@media (max-width: 480px) {
  .links { grid-template-columns: 1fr; }
}

.card {
  display: block;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.card h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

article.legal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 36px;
}

article.legal h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
}

article.legal .meta {
  margin: 0 0 32px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

article.legal h2 {
  margin: 36px 0 12px;
  font-size: 1.15rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

article.legal h3 {
  margin: 24px 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

article.legal p, article.legal li {
  font-size: 0.95rem;
}

article.legal ul, article.legal ol {
  padding-left: 24px;
}

article.legal li {
  margin-bottom: 6px;
}

article.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.9rem;
}

article.legal th, article.legal td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

article.legal th {
  background: var(--accent-soft);
  font-weight: 600;
}

article.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover { color: var(--accent); }

.lang-switch {
  float: right;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
}

.lang-switch:hover { border-color: var(--accent); color: var(--accent); }

footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--text-muted);
  text-decoration: underline;
}
