/* =============================================
   클릭샘 약관/정책 페이지 (이용약관·개인정보·보안약정서)
   · 워드프레스 테마 스타일 완전 차단 (#ct-wrap 스코프)
   · 홈페이지(style.css)와 동일한 디자인 토큰 사용
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');

:root {
  --p:       #00BFA5;
  --p-d:     #00A896;
  --p-l:     #E0F5F2;
  --p-xl:    #F0FEFA;
  --navy:    #0F172A;
  --body:    #334155;
  --muted:   #64748B;
  --border:  #E2E8F0;
  --bg:      #F8FAFC;
  --radius:  14px;
  --shadow:  0 4px 24px rgba(0,0,0,.07);
}

#ct-wrap {
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color: var(--body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: hidden;
  background: #fff;
  font-size: 16px;
  letter-spacing: normal;
}
#ct-wrap *, #ct-wrap *::before, #ct-wrap *::after { box-sizing: border-box; }
#ct-wrap h1, #ct-wrap h2, #ct-wrap h3, #ct-wrap h4 { margin: 0; padding: 0; font-weight: 900; }
#ct-wrap p { margin: 0; padding: 0; }
#ct-wrap ul, #ct-wrap ol { margin: 0; padding: 0; list-style: none; }
#ct-wrap a { text-decoration: none; color: inherit; }
#ct-wrap img { max-width: 100%; display: block; }

/* ── 상단 헤더 ── */
.ct-top {
  position: sticky;
  top: 0;
  z-index: 900;
  width: 100%;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.ct-top-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.ct-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1.12rem;
  color: var(--navy);
  flex-shrink: 0;
}
.ct-logo img { height: 28px; width: auto; object-fit: contain; }
.ct-logo b { color: var(--p); }
.ct-tabs {
  margin-left: auto;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
#ct-wrap .ct-tab {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
#ct-wrap .ct-tab:hover { color: var(--p-d); background: var(--p-xl); }
#ct-wrap .ct-tab.active { color: #fff; background: var(--p); }

/* ── 문서 본문 ── */
.ct-doc {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.ct-doc-title {
  font-size: 2.1rem;
  color: var(--navy);
  line-height: 1.3;
  letter-spacing: -.5px;
  margin-bottom: 18px;
}
.ct-doc-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--body);
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 40px;
}
.ct-doc-date::after { content: '▾'; color: var(--muted); font-size: .8rem; }

.ct-intro {
  font-size: .96rem;
  color: var(--body);
  background: var(--p-xl);
  border: 1px solid var(--p-l);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 36px;
}

.ct-h2 {
  font-size: 1.18rem;
  color: var(--navy);
  margin: 38px 0 14px;
  padding-top: 8px;
}
.ct-h2:first-of-type { margin-top: 8px; }
.ct-h3 {
  font-size: 1rem;
  color: var(--navy);
  margin: 22px 0 8px;
}
.ct-doc p { font-size: .95rem; margin-bottom: 12px; }
.ct-doc .ct-list { margin: 6px 0 16px; }
.ct-doc .ct-list li {
  position: relative;
  padding-left: 18px;
  font-size: .94rem;
  margin-bottom: 7px;
}
.ct-doc .ct-list li::before {
  content: '';
  position: absolute;
  left: 4px; top: 11px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--p);
}
.ct-doc .ct-num { margin: 6px 0 16px; counter-reset: ct; }
.ct-doc .ct-num > li {
  position: relative;
  padding-left: 26px;
  font-size: .94rem;
  margin-bottom: 8px;
}
.ct-doc .ct-num > li::before {
  counter-increment: ct;
  content: counter(ct) ".";
  position: absolute;
  left: 0; top: 0;
  font-weight: 700;
  color: var(--p-d);
}
.ct-doc strong { color: var(--navy); }
.ct-doc .ct-muted { color: var(--muted); font-size: .88rem; }

/* 표 */
.ct-table-wrap { overflow-x: auto; margin: 8px 0 20px; }
.ct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 520px;
}
.ct-table th, .ct-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.ct-table th {
  background: var(--bg);
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

.ct-divider { height: 1px; background: var(--border); border: 0; margin: 40px 0; }

/* ── 푸터 ── */
.ct-footer {
  background: var(--navy);
  color: #94A3B8;
  padding: 28px 0;
  font-size: .85rem;
}
.ct-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.ct-footer b { color: #fff; }
#ct-wrap .ct-footer a { color: #CBD5E1; margin-left: 14px; }
#ct-wrap .ct-footer a:hover { color: #fff; }

@media (max-width: 640px) {
  .ct-tabs { display: none; }
  .ct-doc-title { font-size: 1.6rem; }
  .ct-doc { padding: 36px 20px 64px; }
}
