/* =========================================================
   코딩두잇 이용약관·개인정보 처리방침 (WEB-INF/etc/termsOfService.jsp, personInformation.jsp)
   틀(제목·목차·카드)은 guide.css(이용가이드)를 그대로 쓰고, 여기서는 약관 본문 모양만 정함 (2026-11-11)
   본문은 pUse2.jsp·pInfo.jsp를 그대로 include (회원가입 화면과 같은 글)
   ========================================================= */

/* 이용약관 / 개인정보 처리방침 바꾸기 */
.p-switch { display: inline-flex; gap: 4px; margin-top: 20px; padding: 4px; border: 1px solid #d5dbe4; border-radius: 999px; background: #fff; }
.p-switch a { display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 700; color: #4b5563; white-space: nowrap; transition: .15s; }
.p-switch a:hover { color: var(--blue); }
.p-switch a[aria-current="page"] { background: var(--blue); color: #fff; }

.p-doc { min-width: 0; line-height: 1.85; }	/* min-width 0: 표가 넓어도 화면 밖으로 밀지 않게 (g-body가 grid) */
.p-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.p-print { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid #d5dbe4; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: #374151; cursor: pointer; }
.p-print:hover { border-color: var(--blue); color: var(--blue); }

/* include한 본문(<p> 안에 <span>·<b>·<br>로 된 글) */
.p-body { margin-top: 18px; font-size: 15.5px; color: #374151; overflow-wrap: anywhere; }
.p-body p { margin: 0; }
.p-body .agree-title { display: block; margin-bottom: 4px; font-size: 20px !important; font-weight: 800; letter-spacing: -.4px; color: var(--title); }
.p-body .agree-title2 { display: block; scroll-margin-top: 110px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 19px; font-weight: 800; letter-spacing: -.3px; color: var(--title); }
.p-body .agree-title + br + .agree-title2,
.p-body .agree-title2:first-of-type { margin-top: 18px; }
.p-body b { scroll-margin-top: 110px; font-size: 16px; font-weight: 800; color: var(--blue-ink); }

/* 이용약관: 전체 조항 보기 (제1조~) */
.p-articles { margin-top: 12px; border: 1px solid #d5dbe4; border-radius: 14px; background: #fff; }
.p-articles summary { padding: 12px 16px; font-size: 15px; font-weight: 700; color: #374151; cursor: pointer; }
.p-articles summary:hover { color: var(--blue); }
.p-articles-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; padding: 4px 16px 14px; }
.p-articles-list a { display: flex; gap: 8px; padding: 6px 4px; border-radius: 8px; font-size: 14.5px; color: #374151; }
.p-articles-list a:hover { background: var(--blue-tint); color: var(--blue-ink); }
.p-articles-list b { flex-shrink: 0; min-width: 48px; color: var(--blue-ink); }
.p-articles-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 개인정보 처리방침 전문(pPrivacy.jsp): 제목·목록·표 */
.p-pol { line-height: 1.8; }
.p-pol-intro { padding: 14px 16px; border-radius: 12px; background: var(--soft); }
.p-pol h2.agree-title2 { margin-bottom: 10px; }
.p-pol h2.agree-title2:first-of-type { margin-top: 24px; }
.p-pol p + p { margin-top: 8px; }
.guide .p-list { margin: 10px 0 0; padding-left: 22px; list-style: decimal; }
.guide .p-list li + li { margin-top: 6px; }
.guide .p-list.p-dash { list-style: disc; }
.p-pol .p-list b { scroll-margin-top: 110px; color: var(--title); font-size: inherit; }
.p-table-wrap { margin-top: 12px; overflow-x: auto; }
.p-table { width: 100%; min-width: 520px; border-collapse: collapse; border-top: 2px solid var(--title); font-size: 14.5px; line-height: 1.65; }
.p-table th, .p-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.p-table thead th { background: var(--soft); font-weight: 700; color: var(--title); white-space: nowrap; }
.p-table tbody th { width: 170px; background: #fafbfd; font-weight: 700; color: var(--title); }
.p-table td[rowspan] { border-left: 1px solid var(--line); }
.p-table small { display: block; margin-top: 4px; color: var(--muted); }
.p-note { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* 맨 위로 */
.p-top { position: fixed; right: 24px; bottom: 24px; z-index: 20; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #d5dbe4; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(30, 70, 140, .15); color: #374151; opacity: 0; pointer-events: none; transition: opacity .2s; }
.p-top.is-on { opacity: 1; pointer-events: auto; }
.p-top:hover { color: var(--blue); border-color: var(--blue); }

@media (max-width: 960px) {
  .p-body .agree-title2, .p-body b { scroll-margin-top: 86px; }
}
@media (max-width: 760px) {
  .p-switch { display: flex; width: 100%; }
  .p-switch a { flex: 1; justify-content: center; height: 36px; padding: 0 10px; font-size: 14px; }
  .p-body { font-size: 14.5px; line-height: 1.8; }
  .p-body .agree-title { font-size: 18px !important; }
  .p-body .agree-title2 { margin-top: 24px; padding-top: 18px; font-size: 17px; }
  .p-body b { font-size: 15px; }
  .p-meta { display: none; }
  .p-articles-list { grid-template-columns: minmax(0, 1fr); }
  .p-table { min-width: 0; font-size: 13.5px; }
  .p-table th, .p-table td { padding: 8px 8px; overflow-wrap: anywhere; }
  .p-table tbody th { width: 96px; }
  .p-body { margin-top: 0; }
  .p-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}
@media print {
  header, footer, .g-crumb, .g-toc, .p-switch, .p-print, .p-top { display: none !important; }
  .guide { background: #fff; padding: 0; }
  .g-sec { border: 0; box-shadow: none; padding: 0; }
}
