/* 쎄듀 이용약관 · 개인정보 처리방침 */
:root {
  --c-text: #1f2937;
  --c-body: #374151;
  --c-sub: #4b5563;
  --c-muted: #6b7280;
  --c-strong: #111827;
  --c-line: #e5e7eb;
  --c-line-soft: #f0f1f3;
  --c-input: #d1d5db;
  --c-band: #f4f5f7;
  --c-hover: #f1f3f6;
  --c-active-bg: #eef0f4;
  --c-point: #2b3445;
  --c-warn-bg: #fff7ed;
  --c-warn-line: #fed7aa;
  --c-warn: #9a3412;
  --w-max: 1200px;
  --font: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--c-text); font: 14px/1.7 var(--font); }
a { color: var(--c-point); }
button, select { font: inherit; }
[hidden] { display: none !important; }

/* ---------- head ---------- */
.policy__head { max-width: var(--w-max); margin: 0 auto; padding: 0 24px; }
.gnb { display: flex; gap: 8px; border-bottom: 1px solid var(--c-line); }
.gnb__item { padding: 18px 20px 14px; color: var(--c-muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.gnb__item:hover { color: var(--c-strong); }
.gnb__item.is-on { font-weight: 700; color: var(--c-strong); border-bottom-color: var(--c-strong); }

.subbar { margin-top: 12px; padding: 0 12px; background: var(--c-band); border-radius: 6px; }
.subtabs { display: flex; flex-wrap: wrap; gap: 4px; }
.subtab { min-height: 44px; padding: 12px 14px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; font-size: 13px; color: var(--c-muted); cursor: pointer; }
.subtab:hover { color: var(--c-strong); }
.subtab.is-on { font-weight: 700; color: var(--c-strong); border-bottom-color: var(--c-point); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; border-top: 1px solid var(--c-line); }
.pill { min-height: 36px; padding: 7px 16px; border: 1px solid var(--c-input); border-radius: 999px; background: #fff; font-size: 13px; color: var(--c-body); cursor: pointer; }
.pill:hover { border-color: var(--c-point); }
.pill.is-on { border-color: var(--c-point); background: var(--c-point); color: #fff; font-weight: 500; }

/* ---------- layout ---------- */
.policy__body { max-width: var(--w-max); margin: 0 auto; padding: 28px 24px 64px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.lnb { flex: 1 1 200px; max-width: 240px; min-width: 0; }
.lnb__label { padding: 0 10px 8px; font-size: 12px; color: var(--c-muted); }
.lnb__list { display: flex; flex-direction: column; gap: 2px; }
.lnb__item { display: block; padding: 7px 10px; border-radius: 4px; font-size: 13px; line-height: 1.5; color: var(--c-sub); text-decoration: none; }
.lnb__item--sub { padding: 4px 10px 4px 22px; font-size: 12px; }
.lnb__item:hover { background: var(--c-hover); }
.lnb__item.is-on { background: var(--c-active-bg); color: var(--c-strong); font-weight: 700; }
.content { flex: 999 1 560px; min-width: 0; }

/* ---------- content head ---------- */
.content__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--c-line); }
.content__title { margin: 0; font-size: 24px; font-weight: 700; color: var(--c-strong); }
.version { display: flex; align-items: center; gap: 8px; }
.version label { font-size: 12px; color: var(--c-muted); }
.version select { min-height: 36px; max-width: 260px; padding: 7px 10px; border: 1px solid var(--c-input); border-radius: 6px; background: #fff; font-size: 13px; color: var(--c-text); }
.status { margin: 24px 0; font-size: 13px; color: var(--c-muted); }

/* 이전 버전 */
.old-notice { margin-top: 16px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; background: var(--c-warn-bg); border: 1px solid var(--c-warn-line); border-radius: 6px; font-size: 13px; color: var(--c-warn); }
.old-notice button { min-height: 32px; padding: 6px 12px; border: 1px solid var(--c-warn); border-radius: 4px; background: #fff; font-size: 13px; color: var(--c-warn); cursor: pointer; }
.old-slot { margin-top: 16px; padding: 40px 20px; border: 1px dashed var(--c-input); border-radius: 6px; text-align: center; font-size: 13px; color: var(--c-muted); }

/* ---------- 조항 ---------- */
.toc { margin-top: 20px; padding: 18px 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 6px; border: 1px solid var(--c-line); border-radius: 6px; font-size: 13px; }
.toc a { color: var(--c-sub); text-decoration: none; }
.toc a:hover { color: var(--c-strong); text-decoration: underline; }
.articles { margin-top: 12px; display: flex; flex-direction: column; }
.articles--card { margin-top: 20px; padding: 4px 20px; border: 1px solid var(--c-line); border-radius: 6px; }
.article { padding: 16px 0; border-left: 3px solid transparent; border-bottom: 1px solid var(--c-line-soft); scroll-margin-top: 16px; }
.article:last-child { border-bottom: 0; }
.article.is-on { padding-left: 16px; border-left-color: var(--c-point); }
.article__title { margin: 0 0 8px; font-size: 15px; font-weight: 700; color: var(--c-strong); }
.article__title--sub { font-size: 14px; }
.p { margin: 0 0 8px; font-size: 13.5px; color: var(--c-body); }
.p--item { padding-left: 14px; }
.p--sub { margin: 10px 0 6px; font-weight: 700; color: var(--c-strong); }
.part { margin: 24px 0 4px; padding: 12px 16px; background: var(--c-band); border-radius: 6px; }
.part__label { font-size: 12px; color: var(--c-muted); }
.part__title { margin: 0; font-size: 16px; font-weight: 700; color: var(--c-strong); }

/* 표 */
.tbl-wrap { margin: 8px 0 12px; overflow-x: auto; }
.tbl { width: 100%; min-width: 480px; border-collapse: collapse; border-top: 1px solid var(--c-input); font-size: 13px; }
.tbl th, .tbl td { padding: 9px 12px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; color: var(--c-body); white-space: pre-line; }
.tbl thead th { background: var(--c-band); font-weight: 700; color: var(--c-strong); }
.kv { margin: 8px 0 12px; border: 1px solid var(--c-line); border-radius: 4px; overflow: hidden; }
.kv__row { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--c-line); font-size: 13px; }
.kv__row:last-child { border-bottom: 0; }
.kv__k { flex: 0 0 120px; padding: 10px 14px; background: var(--c-band); font-weight: 700; color: var(--c-strong); }
.kv__v { flex: 1 1 240px; padding: 10px 14px; color: var(--c-body); white-space: pre-line; }

/* ---------- 개인정보 처리방침 요약 ---------- */
.intro { margin-top: 20px; padding: 16px 20px; background: var(--c-band); border-radius: 6px; font-size: 13px; color: var(--c-body); }
.intro p { margin: 0 0 4px; }
.intro strong { display: block; margin-top: 6px; color: var(--c-strong); }
.summary { margin-top: 16px; border: 1px solid var(--c-line); border-radius: 6px; overflow: hidden; scroll-margin-top: 16px; }
.summary__title { margin: 0; padding: 12px 20px; background: var(--c-band); font-size: 14px; font-weight: 700; color: var(--c-strong); }
.sum-tbl { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; }
.sum-tbl th, .sum-tbl td { padding: 13px 12px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; color: var(--c-body); white-space: pre-line; }
.sum-tbl th:first-child { width: 140px; padding-left: 20px; font-weight: 700; color: var(--c-strong); }
.sum-tbl thead th { padding-top: 10px; padding-bottom: 10px; font-weight: 500; color: var(--c-sub); }
.sum-tbl td:last-child, .sum-tbl th:last-child { width: 120px; padding-right: 20px; text-align: right; white-space: nowrap; }
.sum-tbl a { font-size: 12px; text-decoration: none; }
.sum-tbl a:hover { text-decoration: underline; }
.accs { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.acc { background: var(--c-band); border-radius: 6px; overflow: hidden; }
.acc__btn { width: 100%; min-height: 44px; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; background: none; font-size: 13px; font-weight: 700; color: var(--c-strong); text-align: left; cursor: pointer; }
.acc__btn:hover { background: #eceef2; }
.acc__btn svg { flex: none; transition: transform .15s; }
.acc__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.acc__panel { margin: 0 1px 1px; padding: 4px 0 8px; background: #fff; }
.acc__group { padding: 10px 20px 0; font-size: 12.5px; font-weight: 700; color: var(--c-point); }
.divider { margin: 36px 0 20px; display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--c-muted); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--c-line); }

/* ---------- footer ---------- */
.content__foot { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--c-line); font-size: 12px; line-height: 1.6; color: var(--c-muted); }

@media (max-width: 760px) {
  .lnb { max-width: none; }
  .toc { grid-template-columns: minmax(0, 1fr); }
}
