/* ===== 기본 리셋 & 변수 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #eef2ff;
  --accent: #06b6d4;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(79,70,229,0.08);
  --shadow-lg: 0 8px 40px rgba(79,70,229,0.14);
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* ===== 레이아웃 ===== */
.container { max-width: 820px; margin: 0 auto; padding: 0 16px; }

/* ===== 헤더 ===== */
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 48px 20px 36px;
  text-align: center;
}
header h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.5px; }
header p { margin-top: 10px; opacity: 0.88; font-size: 1rem; }

/* ===== 네비게이션 바 ===== */
.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}
.nav-brand { font-weight: 800; color: var(--primary); font-size: 0.97rem; text-decoration: none; }
.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-links a { font-size: 0.85rem; color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover { color: var(--primary); }

/* ===== 뒤로 가기 버튼 ===== */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 24px 0 4px;
  padding: 8px 16px;
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  font-family: inherit;
}
.back-btn:hover { background: #dde4ff; }

/* ===== 광고 슬롯 ===== */
.ad-slot {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  text-align: center;
  padding: 20px;
  margin: 0 auto 28px;
  color: var(--text-muted);
  font-size: 0.78rem;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 개인정보처리방침 모달 ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: #fff;
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}
.modal-box h2 { font-size: 1.15rem; font-weight: 800; color: var(--primary); margin-bottom: 16px; }
.modal-box h3 { font-size: 0.95rem; font-weight: 700; margin: 16px 0 6px; color: var(--text); }
.modal-box p, .modal-box li { font-size: 0.88rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 6px; }
.modal-box ul { padding-left: 18px; }
.modal-box li { list-style: disc; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 1.3rem;
  cursor: pointer; color: var(--text-muted);
}

/* ===== 푸터 ===== */
footer { background: #1e293b; color: #94a3b8; text-align: center; padding: 24px 16px; font-size: 0.85rem; }

/* ===== 애니메이션 ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== 모바일 ===== */
@media (max-width: 600px) {
  .nav-links { gap: 12px; }
}
