/* =============================================
   RiCH ALiEN Games - Legal Pages
   Minimal, text-focused layout
   ============================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #fafafa;
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #888;
  --border: #e5e5e5;
  --accent: #7c3aed;
  --font-en: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-kr: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 800px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-en);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body[data-lang="ko"] {
  font-family: var(--font-kr), var(--font-en);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.legal-header {
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
}

.legal-header-logo {
  height: 28px;
  width: auto;
}

.legal-header-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.legal-header-nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.legal-header-nav a:hover { color: var(--accent); text-decoration: none; }

.legal-lang-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-en);
  transition: all 0.2s;
}

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

/* ---------- Content ---------- */
.legal-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* ---------- Article Content ---------- */
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text);
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.85;
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.9rem;
}

.legal-content th,
.legal-content td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  color: var(--text-secondary);
}

.legal-content th {
  background: #f0f0f0;
  font-weight: 600;
  color: var(--text);
}

/* Placeholder for content to be filled */
.legal-placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* ---------- Footer ---------- */
.legal-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 1000px;
  margin: 0 auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .legal-title { font-size: 1.4rem; }
  .legal-container { padding: 32px 16px 60px; }
  .legal-content h2 { font-size: 1.1rem; }
}
