/*
  이용약관·개인정보처리방침처럼 글이 긴 페이지.

  읽으라고 만든 문서이므로 장식을 넣지 않는다. 글줄 길이를 좁히고, 조 제목과 본문의 간격만
  분명히 한다. 색과 모서리와 글꼴은 site.css 것을 그대로 쓴다.
*/

.doc { padding: 44px 0 72px; }

.doc__head { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.doc__head .title { margin-top: 8px; }
.doc__head .note { margin-top: 12px; }

/* 글줄이 길면 눈이 다음 줄을 놓친다. 본문은 그보다 좁게 둔다. */
.doc__body { max-width: 760px; margin-top: 36px; }

.doc h2 {
  margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  font-size: 17px;
}
.doc h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc h3 { margin-top: 22px; font-size: 15px; }

.doc p { margin-top: 12px; font-size: 14.5px; line-height: 1.85; color: var(--text-2); }
.doc p.tight { margin-top: 6px; }

/* 번호는 ::before 로 직접 그린다. 브라우저가 붙이는 번호까지 나오면 '1. 1.' 이 된다. */
.doc ol, .doc ul { margin-top: 12px; display: grid; gap: 8px; padding: 0; list-style: none; }
.doc li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.85; color: var(--text-2); }
.doc ol { counter-reset: n; }
.doc ol > li::before {
  counter-increment: n; content: counter(n) ".";
  position: absolute; left: 0; color: var(--text-3); font-variant-numeric: tabular-nums;
}
.doc ul > li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--dot);
}
.doc li ul, .doc li ol { margin-top: 8px; }

.doc b, .doc strong { color: var(--text); font-weight: 600; }

/* 표. 무엇을 내보내고 무엇을 안 내보내는지는 글보다 표가 빠르다. */
.doc__table { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.doc table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.doc th, .doc td { padding: 11px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line-soft); }
.doc thead th { border-top: 0; background: var(--surface-2); font-weight: 600; color: var(--text); white-space: nowrap; }
.doc td { color: var(--text-2); }
.doc tbody th { font-weight: 600; color: var(--text); white-space: nowrap; }

/* 차례 */
.toc { margin-top: 28px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.toc p { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--text-3); }
.toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; margin: 0; }
/*
  차례의 번호는 지운다. 항목마다 '제1조' 가 이미 붙어 있어 번호가 겹쳐 보인다.
  본문 목록 규칙(.doc ol > li::before)이 더 세므로 클래스를 하나 더 얹어 이긴다.
*/
.doc .toc li { padding-left: 0; font-size: 13.5px; }
.doc .toc li::before { content: none; }
.toc a:hover { color: var(--brand); }

/*
  아직 정해지지 않은 것. 회사명·제품명·연락처가 확정되지 않았으므로 빈칸으로 두지 않고
  눈에 띄게 표시한다. 빈칸으로 두면 그대로 공개될 수 있다.
*/
.tbd {
  padding: 1px 5px; border-radius: 3px;
  background: #FFF4D6; border-bottom: 1px dashed #D9A93A;
  color: #7A5B12; font-weight: 600;
}

/*
  줄바꿈을 막지 않는다. 〈회사명〉 처럼 짧은 것은 어차피 한 줄에 들어가고, 한 문장짜리
  안내가 들어간 자리는 막아 두면 화면 밖으로 밀려 나간다 - 실제로 좁은 화면에서 가로
  스크롤이 생겼다. 한글은 띄어쓰기에서만 끊기므로(keep-all) 이대로도 말이 갈라지지 않는다.
*/

.doc__warn {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 24px; padding: 16px 18px;
  border: 1px solid #E8D7A6; border-radius: var(--r); background: #FFFBF0;
}
.doc__warn .ico { color: #B8860B; margin-top: 2px; }
.doc__warn p { margin: 0; font-size: 13.5px; line-height: 1.75; color: #6B5518; }
.doc__warn b { color: #5A470F; }

.doc__foot { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc__foot p { font-size: 13px; color: var(--text-3); }

@media (max-width: 620px) {
  .doc { padding: 28px 0 48px; }
  .toc ol { grid-template-columns: 1fr; }
}
