/* ===== 공통 레이아웃 ===== */
.pp-wrap { display: flex; gap: 30px; align-items: flex-start; padding: 20px 10px; text-align: left; }

.pp-nav { flex: 0 0 260px; position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%); border-radius: 16px; padding: 24px 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.pp-nav::-webkit-scrollbar { width: 5px; }
.pp-nav::-webkit-scrollbar-thumb { background: #bcd0ea; border-radius: 3px; }
.pp-nav h3 { font-size: 16px; font-weight: 700; color: #3B5998; margin: 0 0 14px; letter-spacing: -0.3px; }
.pp-nav ol { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.pp-nav li { counter-increment: n; margin-bottom: 2px; }
.pp-nav a { display: block; padding: 8px 10px; font-size: 13px; color: #666; text-decoration: none; border-radius: 8px; transition: all 0.25s ease; line-height: 1.4; }
.pp-nav a::before { content: counter(n) "."; color: #00B2F9; font-weight: 700; margin-right: 6px; }
.pp-nav a:hover { background: #fff; color: #3B5998; transform: translateX(4px); }
.pp-nav a.active { background: #fff; color: #3B5998; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.pp-nav a.active::before { color: #3B5998; }

/* 장(章) 구분 - 목차용 */
.pp-chapter { margin: 20px 0 8px; padding-left: 4px; font-size: 12px; font-weight: 700; color: #00B2F9; letter-spacing: 0.5px; }
.pp-chapter:first-child { margin-top: 0; }

/* ===== 버튼 ===== */
.pp-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(59,89,152,0.15); }
.pp-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 12px; font-size: 13px; font-weight: 600; color: #3B5998; background: #fff; border: 1px solid #d6e2f2; border-radius: 10px; cursor: pointer; transition: all 0.25s ease; font-family: inherit; }
.pp-btn:hover { background: linear-gradient(135deg, #3B5998, #00B2F9); color: #fff; border-color: #3B5998; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(59,89,152,0.25); }

/* ===== 본문 ===== */
.pp-main { flex: 1; min-width: 0; }
.pp-head { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 2px solid #3B5998; }
.pp-head h1 { font-size: 30px; font-weight: 800; color: #333; margin: 0 0 10px; letter-spacing: -1px; }
.pp-head p { font-size: 14px; line-height: 24px; color: #777; margin: 0; }

/* ===== 아코디언 ===== */
.pp-item { background: #fff; border: 1px solid #e8ecef; border-radius: 14px; margin-bottom: 12px; overflow: hidden; transition: all 0.3s ease; }
.pp-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.07); border-color: #cfdcef; }
.pp-item[open] { box-shadow: 0 10px 30px rgba(0,0,0,0.09); border-color: #00B2F9; }

.pp-item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-size: 16px; font-weight: 700; color: #2b3a55; display: flex; align-items: center; gap: 12px; transition: background 0.25s ease; }
.pp-item summary::-webkit-details-marker { display: none; }
.pp-item summary:hover { background: #f4f8fd; }
.pp-num { flex: 0 0 34px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #3B5998, #00B2F9); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.pp-item summary::after { content: '+'; margin-left: auto; font-size: 22px; font-weight: 400; color: #00B2F9; transition: transform 0.3s ease; }
.pp-item[open] summary::after { transform: rotate(45deg); }

.pp-body { padding: 4px 24px 26px 70px; font-size: 14px; line-height: 26px; color: #5a5a5a; animation: ppFade 0.35s ease; }
@keyframes ppFade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.pp-body h5 { font-size: 14px; font-weight: 700; color: #3B5998; margin: 20px 0 8px; }
.pp-body h5:first-child { margin-top: 0; }
.pp-body p { margin: 0 0 10px; }
.pp-body ul { list-style: none; margin: 0 0 12px; padding: 0; }
.pp-body ul li { position: relative; padding-left: 14px; margin-bottom: 6px; }
.pp-body ul li::before { content: ''; position: absolute; left: 0; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: #00B2F9; }
.pp-body ul ul { margin: 6px 0 0; padding-left: 6px; }
.pp-body ol { margin: 0 0 12px; padding-left: 20px; }
.pp-body ol li { margin-bottom: 6px; }
.pp-body a { color: #3B5998; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(0,178,249,0.4); transition: all 0.25s ease; }
.pp-body a:hover { color: #00B2F9; border-color: #00B2F9; }

/* ===== 본문 - 장 헤더 ===== */
.pp-sect { margin: 30px 0 14px; padding: 14px 20px; background: linear-gradient(135deg, #3B5998, #00B2F9); color: #fff; border-radius: 12px; font-size: 15px; font-weight: 700; letter-spacing: -0.3px; }
.pp-sect:first-child { margin-top: 0; }

/* ===== 컴포넌트 ===== */
.pp-tag { display: inline-block; padding: 3px 10px; margin: 2px 4px 2px 0; font-size: 12px; font-weight: 600; color: #2f4a7a; background: #e8f1fb; border-radius: 20px; }
.pp-note { padding: 14px 16px; margin: 14px 0; background: #f4f8fd; border-left: 3px solid #00B2F9; border-radius: 0 10px 10px 0; font-size: 13px; line-height: 23px; }
.pp-warn { padding: 14px 16px; margin: 14px 0; background: #fff5ef; border-left: 3px solid #FC6A24; border-radius: 0 10px 10px 0; font-size: 13px; line-height: 23px; color: #a5481c; }

.pp-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0; font-size: 13px; border: 1px solid #e8ecef; border-radius: 12px; overflow: hidden; }
.pp-table th { background: linear-gradient(135deg, #3B5998, #00B2F9); color: #fff; font-weight: 600; padding: 12px; text-align: center; }
.pp-table td { padding: 12px; text-align: center; border-top: 1px solid #eef2f7; color: #666; }
.pp-table tbody tr:hover td { background: #f6f9fe; }

.pp-cards { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.pp-card { flex: 1; min-width: 200px; padding: 18px; background: linear-gradient(135deg, #f5f7fa, #e9ecef); border-radius: 12px; transition: transform 0.3s ease; }
.pp-card:hover { transform: translateY(-4px); }
.pp-card strong { display: block; font-size: 13px; color: #3B5998; margin-bottom: 8px; }
.pp-card span { display: block; font-size: 13px; color: #666; line-height: 22px; }

.pp-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pp-links a { flex: 1; min-width: 220px; padding: 14px 16px; background: #fff; border: 1px solid #e8ecef; border-radius: 12px; font-size: 13px; font-weight: 500; color: #555; transition: all 0.3s ease; }
.pp-links a:hover { border-color: #00B2F9; color: #3B5998; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.pp-links a small { display: block; margin-top: 4px; color: #999; font-weight: 400; }

.pp-date { margin-top: 24px; padding: 18px 24px; background: linear-gradient(135deg, #f5f7fa, #e9ecef); border-radius: 14px; font-size: 14px; font-weight: 600; color: #2f4a7a; text-align: center; }


/* ===== 이용약관 전용: 조밀한 목차 (.pp-nav-dense) ===== */
.pp-nav-dense { display: flex; flex-direction: column; padding: 20px 18px; overflow: visible; box-sizing: border-box; }
.pp-nav-dense h3 { flex: none; margin-bottom: 12px; }

.pp-nav-dense .pp-nav-scroll { flex: 1 1 auto; overflow-y: auto; min-height: 0; margin-right: -6px; padding-right: 6px; }
.pp-nav-dense .pp-nav-scroll::-webkit-scrollbar { width: 5px; }
.pp-nav-dense .pp-nav-scroll::-webkit-scrollbar-thumb { background: #bcd0ea; border-radius: 3px; }

.pp-nav-dense li { margin: 0; }
.pp-nav-dense a { padding: 4px 8px; font-size: 12.5px; line-height: 1.35; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-nav-dense a::before { margin-right: 5px; }
.pp-nav-dense a:hover { transform: translateX(3px); }

.pp-nav-dense .pp-chapter { margin: 12px 0 4px; font-size: 11.5px; }
.pp-nav-dense .pp-chapter:first-child { margin-top: 0; }

.pp-nav-dense .pp-btns { flex: none; margin-top: 14px; padding-top: 14px; }
.pp-nav-dense .pp-btn { padding: 10px 12px; }

/* ===== 반응형 ===== */
@media (max-width: 900px) {
	.pp-wrap { flex-direction: column; }
	.pp-nav { position: static; flex: none; width: 100%; max-height: none; overflow: visible; box-sizing: border-box; }
	.pp-nav ol { display: flex; flex-wrap: wrap; gap: 4px; }
	.pp-nav li { flex: 1 1 45%; }
	.pp-chapter { flex: 1 1 100%; }
	.pp-head h1 { font-size: 24px; }
	.pp-body { padding: 4px 20px 22px 20px; }
	.pp-item summary { padding: 16px 18px; font-size: 15px; }
	.pp-btn-top { display: none; }

	.pp-nav-dense { display: block; }
	.pp-nav-dense .pp-nav-scroll { overflow: visible; max-height: none; margin-right: 0; padding-right: 0; }
	.pp-nav-dense a { white-space: normal; }
}