/* 로또핀더 법무 문서 페이지 공통 스타일 — 모바일 우선, 한국어 가독성 최적화 */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --bg-card: #f7f8fa;
  --fg: #111827;
  --fg-muted: #4b5563;
  --fg-faint: #6b7280;
  --accent: #0066ff;
  --accent-soft: rgba(0, 102, 255, 0.08);
  --border: #e5e7eb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0b0d;
    --bg-card: #15171c;
    --fg: #f3f4f6;
    --fg-muted: #cbd5e1;
    --fg-faint: #94a3b8;
    --accent: #4d8aff;
    --accent-soft: rgba(77, 138, 255, 0.12);
    --border: #1f2937;
  }
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo',
               'Malgun Gothic', '맑은 고딕', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

header.page-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

header.page-header .brand {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

header.page-header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.meta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--fg-faint);
  margin-bottom: 16px;
}

.lead {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.75;
  margin: 12px 0 28px;
}

section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 14px;
}

section h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.01em;
}

section p, section ul {
  margin: 0;
  color: var(--fg-muted);
  font-size: 14.5px;
  line-height: 1.75;
}

section p + p, section p + ul, section ul + p {
  margin-top: 10px;
}

section ul {
  padding-left: 20px;
}

section li {
  margin-bottom: 6px;
}

section li::marker { color: var(--accent); }

section .warn {
  background: rgba(0, 102, 255, 0.06);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--fg);
  margin-top: 12px;
  font-size: 14px;
}

strong { font-weight: 700; color: var(--fg); }

footer.page-footer {
  text-align: center;
  margin-top: 32px;
  padding: 20px 0;
  color: var(--fg-faint);
  font-size: 12.5px;
  border-top: 1px solid var(--border);
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--fg-faint);
  margin-bottom: 16px;
}

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

/* 인덱스 페이지 */
.doc-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.doc-card {
  display: block;
  padding: 24px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.doc-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--accent);
}

.doc-card .doc-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 6px;
}

.doc-card .doc-desc {
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.6;
}
