/* =========================================================
   글사유 ON · 개인정보처리방침 · 이용약관 (gsu-on 스킨 전용) - 시안 privacy_handoff (2026-11-28)
   마크업: cham/member/policy_page.php (privacy.php · terms.php). 머리말 · 바닥글은 chrome_on.php 것.
   값은 tokens-on.css 의 var(--gs-…)만. 경로 줄 · 왼쪽 색 세로줄 없음.
   예전 css(common.css 등)가 앞뒤로 실려 있어 선택자를 #pv · html.pv-page 로 시작해 이긴다.
   ========================================================= */

/* ---------- 바탕 · 바깥 틀 ---------- */
html.pv-page body,
html.pv-page #wrapper { background: var(--gs-sand) !important; }

#pv { padding: 40px 0 80px; font-family: var(--gs-font); color: var(--gs-text); line-height: var(--gs-lh-ui); -webkit-font-smoothing: antialiased; }
#pv *, #pv *::before, #pv *::after { box-sizing: border-box; }
#pv h1, #pv h2, #pv h3, #pv p, #pv ul, #pv ol, #pv li, #pv table, #pv details, #pv summary { margin: 0; padding: 0; }
#pv ul, #pv ol, #pv li { list-style: none; }
#pv a { color: inherit; text-decoration: none; }
#pv h1, #pv h2, #pv h3, #pv table { font-family: inherit; }
#pv svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- 제목 · 종이 ---------- */
#pv .page-title { font-size: var(--gs-fs-h1); line-height: var(--gs-lh-tight); font-weight: 800; color: var(--gs-navy); letter-spacing: var(--gs-ls-title); margin-bottom: 24px; }
#pv .sheet { background: var(--gs-white); border-radius: var(--gs-r-card); box-shadow: var(--gs-shadow-card); padding: 40px 48px 56px; }

/* 맨 위 줄: 시행일 · 이용약관/처리방침 */
#pv .p-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 24px; }
#pv .eff { font-size: var(--gs-fs-ui); color: var(--gs-text-sub); font-weight: 500; }
#pv .eff b { color: var(--gs-navy); font-weight: 700; margin-right: 8px; }
#pv .p-tools { display: flex; align-items: center; gap: 10px; }
#pv .txt-link { display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 0 6px; font-size: var(--gs-fs-small); font-weight: 600; color: var(--gs-text-sub); transition: color var(--gs-dur) var(--gs-ease); }
#pv .txt-link:hover { color: var(--gs-navy); }
#pv .txt-link svg.i { width: 16px; height: 16px; }

#pv .lead { font-size: var(--gs-fs-body); line-height: 1.85; color: var(--gs-text); max-width: 900px; word-break: keep-all; }

/* ---------- 목차 + 본문 ---------- */
#pv .p-grid { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 40px; }
#pv.terms-page .p-grid { margin-top: 16px; }
#pv .toc { position: sticky; top: 24px; }
#pv .toc summary { display: block; list-style: none; font-size: var(--gs-fs-label); font-weight: 700; color: var(--gs-text-muted); letter-spacing: var(--gs-ls-label); padding: 0 12px 10px; }
#pv .toc summary::-webkit-details-marker { display: none; }
#pv .toc summary svg { display: none; }
#pv .toc ol { display: flex; flex-direction: column; gap: 2px; }
#pv .toc a { display: flex; gap: 10px; padding: 9px 12px; border-radius: var(--gs-r-btn); font-size: var(--gs-fs-small); font-weight: 500; line-height: 1.45; color: var(--gs-text-sub); transition: background var(--gs-dur) var(--gs-ease), color var(--gs-dur) var(--gs-ease); }
#pv .toc a .n { flex: none; width: 22px; font-weight: 700; color: var(--gs-text-muted); font-variant-numeric: tabular-nums; }
#pv .toc a:hover { color: var(--gs-navy); }
#pv .toc a.on { background: var(--gs-tint); color: var(--gs-navy); font-weight: 800; }
#pv .toc a.on .n { color: var(--gs-navy); }

#pv .doc { max-width: var(--gs-read-w); word-break: keep-all; overflow-wrap: anywhere; }
#pv .doc section { padding: 0 0 44px; scroll-margin-top: 24px; }
#pv .doc section + section { padding-top: 4px; }
#pv .doc h2 { display: flex; align-items: baseline; gap: 12px; font-size: 22px; line-height: var(--gs-lh-tight); font-weight: 800; color: var(--gs-navy); letter-spacing: var(--gs-ls-title); margin-bottom: 16px; }
#pv .doc h2 .no { font-size: var(--gs-fs-small); font-weight: 700; color: var(--gs-text-muted); font-variant-numeric: tabular-nums; }
#pv .doc p { font-size: var(--gs-fs-body); line-height: 1.85; color: var(--gs-text); margin: 0 0 12px; }
#pv .doc ul.dots { margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
#pv .doc ul.dots > li { position: relative; padding-left: 18px; font-size: var(--gs-fs-body); line-height: 1.8; }
#pv .doc ul.dots > li::before { content: ""; position: absolute; left: 3px; top: .78em; width: 5px; height: 5px; border-radius: 50%; background: var(--gs-text-muted); }
#pv .doc ul.dots > li b { font-weight: 700; color: var(--gs-navy); }
#pv .doc ul.sub { margin: 6px 0 2px; padding: 12px 16px; background: var(--gs-tint); border-radius: var(--gs-r-btn); display: flex; flex-direction: column; gap: 4px; }
#pv .doc ul.sub li { font-size: var(--gs-fs-small); line-height: 1.7; color: var(--gs-text-sub); }

/* 표: 머리 줄은 옅은 면, 줄 사이는 아주 옅은 선 */
#pv .tbl { width: 100%; border-collapse: separate; border-spacing: 0; margin: 4px 0 16px; font-size: var(--gs-fs-small); line-height: 1.65; }
#pv .tbl th { background: var(--gs-tint); color: var(--gs-text-sub); font-weight: 700; text-align: left; padding: 11px 16px; white-space: nowrap; border: 0; }
#pv .tbl th:first-child { border-radius: var(--gs-r-btn) 0 0 var(--gs-r-btn); }
#pv .tbl th:last-child { border-radius: 0 var(--gs-r-btn) var(--gs-r-btn) 0; }
#pv .tbl td { padding: 13px 16px; vertical-align: top; text-align: left; color: var(--gs-text); border: 0; box-shadow: inset 0 -1px 0 var(--gs-line); }
#pv .tbl td:first-child { font-weight: 700; color: var(--gs-navy); width: 30%; }
#pv .tbl.c3 td:first-child { width: 38%; }
#pv .tbl.c3 td:last-child, #pv .tbl.c4 td:last-child { white-space: nowrap; }
#pv .tbl tr:last-child td { box-shadow: none; }

#pv .p-end { margin-top: 8px; padding: 20px 24px; background: var(--gs-tint); border-radius: var(--gs-r-item); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: var(--gs-fs-small); color: var(--gs-text-sub); }
#pv .p-end b { color: var(--gs-navy); font-weight: 800; }

/* 이용약관: 장 = h2, 조 = h3 */
#pv .doc .art { margin: 0 0 26px; }
#pv .doc .art h3 { font-size: var(--gs-fs-body); font-weight: 800; color: var(--gs-text); margin-bottom: 8px; }
#pv .doc p.num { display: flex; gap: 8px; margin-bottom: 6px; }
#pv .doc p.num .n { flex: none; min-width: 18px; font-weight: 700; color: var(--gs-text-sub); font-variant-numeric: tabular-nums; }
#pv .doc p.sub { padding-left: 26px; margin-bottom: 4px; font-size: var(--gs-fs-ui); color: var(--gs-text-sub); }

/* =========================================================
   휴대폰 (900px 미만): 목차 접힘 · 표는 줄별 묶음
   ========================================================= */
@media (max-width: 899px) {
  #pv { padding: 20px 0 48px; }
  #pv .page-title { margin-bottom: 14px; }
  #pv .sheet { padding: 20px 16px 28px; }
  #pv .p-top { flex-direction: column; align-items: stretch; gap: 10px; padding-bottom: 16px; }
  #pv .p-tools { justify-content: space-between; }
  #pv .txt-link { height: var(--gs-touch); }
  #pv .lead { font-size: var(--gs-fs-ui); line-height: 1.8; }

  #pv .p-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 20px; }
  #pv .toc { position: static; background: var(--gs-tint); border-radius: var(--gs-r-item); }
  #pv .toc summary { display: flex; align-items: center; justify-content: space-between; min-height: var(--gs-touch); padding: 0 16px; font-size: var(--gs-fs-ui); font-weight: 700; color: var(--gs-navy); letter-spacing: 0; cursor: pointer; }
  #pv .toc summary svg { display: block; width: 18px; height: 18px; transition: transform var(--gs-dur) var(--gs-ease); }
  #pv .toc[open] summary svg { transform: rotate(180deg); }
  #pv .toc ol { padding: 0 8px 10px; }
  #pv .toc a { min-height: var(--gs-touch); align-items: center; padding: 6px 10px; }
  #pv .toc a.on { background: var(--gs-white); }

  #pv .doc section { padding-bottom: 32px; scroll-margin-top: 12px; }
  #pv .doc h2 { font-size: 19px; gap: 10px; margin-bottom: 12px; }
  #pv .doc p, #pv .doc ul.dots > li { font-size: var(--gs-fs-ui); line-height: 1.8; }

  /* 표 -> 줄마다 옅은 면 묶음 */
  #pv .tbl, #pv .tbl tbody, #pv .tbl tr, #pv .tbl td { display: block; width: auto !important; }
  #pv .tbl thead { display: none; }
  #pv .tbl { margin: 4px 0 14px; }
  #pv .tbl tr { padding: 12px 14px; background: var(--gs-tint); border-radius: var(--gs-r-btn); }
  #pv .tbl tr + tr { margin-top: 8px; }
  #pv .tbl td { padding: 0; box-shadow: none; white-space: normal !important; }
  #pv .tbl td + td { margin-top: 4px; }
  #pv .tbl td:first-child { margin-bottom: 6px; }
  #pv .tbl td[data-l]:not(:first-child)::before { content: attr(data-l); display: inline-block; min-width: 64px; margin-right: 8px; font-size: var(--gs-fs-micro); font-weight: 700; color: var(--gs-text-muted); }
  #pv .tbl.c2 td[data-l]:not(:first-child)::before { display: none; }
  #pv .p-end { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { #pv * { transition: none !important; animation: none !important; } }
