@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
@import url('https://fonts.googleapis.com/css2?family=Jua&display=swap');

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

:root {
  /* 라이트 테마 — 인디고 퍼플 + 옐로우 (index.html과 동일) */
  --bg:          #f4f3fb;
  --bg-card:     #ffffff;
  --bg-card2:    #efeafd;
  --indigo:      #5a3ff0;
  --teal:        #5a3ff0;   /* 레거시 별칭 → 인디고 */
  --accent:      #5a3ff0;   /* 일부 페이지가 참조 */
  --gold:        #ffc43d;
  --teal-glow:   rgba(90,63,240,0.14);
  --text:        #14131a;
  --text-muted:  rgba(20,19,26,0.62);
  --text-faint:  rgba(20,19,26,0.42);
  --border:      rgba(90,63,240,0.16);
  --border-card: rgba(20,19,26,0.09);
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  --font-display: 'Jua', 'Pretendard', sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* 헤더 */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244,243,251,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--indigo);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.back-btn:active { background: var(--teal-glow); }

.header-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* 본문 공통 */
.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.doc-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--indigo);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.doc-date {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 2.5rem;
}

.intro {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-left: 3px solid var(--indigo);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 12px rgba(20,19,26,0.05);
}

/* 섹션 */
.section { margin-bottom: 2.5rem; }

.section-number {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-card);
}

.section p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 0.8rem;
}
.section p:last-child { margin-bottom: 0; }

/* 목록 */
ul, ol {
  padding-left: 1.3rem;
  margin: 0.4rem 0 0.8rem;
}

li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 0.3rem;
}

/* 테이블 */
.table-wrap {
  overflow-x: auto;
  margin: 0.8rem 0;
  border-radius: 12px;
  border: 1px solid var(--border-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

thead tr { background: rgba(90,63,240,0.06); }

th, td {
  padding: 0.65rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border-card);
  color: var(--text-muted);
  vertical-align: top;
  word-break: keep-all;
}

th {
  font-weight: 700;
  color: var(--text);
  font-size: 0.8rem;
}

tbody tr:last-child td { border-bottom: none; }

/* 공통 컴포넌트 */
.highlight { color: var(--indigo); font-weight: 600; }

.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.9;
  box-shadow: 0 2px 12px rgba(20,19,26,0.05);
}
.contact-box strong { color: var(--text); font-weight: 700; }

.divider {
  height: 1px;
  background: var(--border-card);
  margin: 2.5rem 0;
}
