/* ============================================================
   문서 페이지(지원·개인정보 처리방침) — coden.css 위에 얹는 본문 모양.

   마크업은 예전 문서 그대로다(hero, section, section-head, ticks, faq-list, summary-hint, btn-text).
   본문은 사람이 직접 고치는 법적 문구라 마크업을 바꾸지 않고 모양만 coden 에 맞춘다.
   넓은 화면에서는 왼쪽 단에 구획 제목을 두고 읽는 동안 따라오게 해, 긴 처리방침에서도 지금 어디를
   읽는지 알 수 있게 한다. 좁은 화면에서는 한 단이다.
   ============================================================ */

/* 구획 사이 선이 본문 왼쪽 끝과 같은 곳에서 시작하도록, 여백을 안쪽 패딩이 아니라 폭에서 뺀다 */
.cd-doc main > section {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--wrap) - 2 * var(--gutter));
  margin-inline: auto;
}

/* ------------------------------------------------------------ 첫머리 */
.cd-doc .hero { padding-block: clamp(44px, 6vw, 88px) clamp(32px, 4.5vw, 56px); }
.cd-doc .hero-copy { display: grid; gap: 16px; max-width: 46rem; }
.cd-doc .hero-copy > p { margin: 0; color: var(--ink-2); }
.cd-doc .app-badge { display: block; }
/* 앱 아이콘은 바로 위 앱 메뉴 막대가 보여 주므로 여기서는 감춘다(장식 이미지라 읽히지도 않는다) */
.cd-doc .app-icon { display: none; }
.cd-doc .app-label { margin: 0 0 12px; font-size: 0.9375rem; font-weight: 700; color: var(--ink-3); }
.cd-doc .hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.cd-doc .hero .hero-lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink);
  text-wrap: pretty;
}

/* ------------------------------------------------------------ 구획 */
.cd-doc .section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.cd-doc .section > * { margin: 0; min-width: 0; }
.cd-doc .section > * + * { margin-top: 16px; }
.cd-doc .section-head { display: grid; gap: 8px; max-width: 46rem; margin-bottom: 8px; }
.cd-doc .section-head h2 { margin: 0; font-size: 1.375rem; font-weight: 800; line-height: 1.3; letter-spacing: -0.03em; text-wrap: balance; }
.cd-doc .section-head p { margin: 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.65; }
.cd-doc .section > :not(.section-head) { max-width: 46rem; }

@media (min-width: 960px) {
  /* 왼쪽 단: 구획 제목(읽는 동안 따라온다), 오른쪽 단: 본문 */
  .cd-doc .section { grid-template-columns: minmax(0, 17rem) minmax(0, 46rem); column-gap: clamp(40px, 6vw, 96px); }
  .cd-doc .section > * { grid-column: 2; }
  .cd-doc .section-head {
    grid-column: 1;
    grid-row: 1 / span 60;
    align-self: start;
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + var(--header-height) + 28px);
    margin-bottom: 0;
  }
  .cd-doc .section-head + * { margin-top: 0; }
}

.cd-doc .section h3 { font-size: 1.0625rem; font-weight: 750; line-height: 1.4; letter-spacing: -0.02em; margin-top: 28px; }
.cd-doc .section p { line-height: 1.75; }
.cd-doc .section code {
  font-family: var(--font-mono); font-size: 0.875em; letter-spacing: 0;
  background: var(--surface); border-radius: 6px; padding: 0.1em 0.4em; overflow-wrap: anywhere;
}
.cd-doc main a:not([class]) {
  color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em; text-decoration-color: var(--line-strong);
}
.cd-doc main a:not([class]):hover { text-decoration-color: var(--signal); }
.cd-doc .btn-text {
  color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em; text-decoration-color: var(--line-strong);
}
.cd-doc .btn-text:hover { text-decoration-color: var(--signal); }

/* 작은 덧붙임: 왼쪽 선 하나로 본문과 구분한다 */
.cd-doc .summary-hint {
  font-size: 0.875rem; line-height: 1.7; color: var(--ink-3);
  border-left: 2px solid var(--line-strong); padding-left: 14px;
}
.cd-doc .hero .summary-hint { color: var(--ink-3); }

/* ------------------------------------------------------------ 목록
   ticks: 하는 일(체크), ticks no: 하지 않는 일(줄표), ol.ticks: 순서가 있는 단계(번호) */
.cd-doc .ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.cd-doc .ticks li { position: relative; padding-left: 30px; line-height: 1.7; }
.cd-doc .ticks li::before {
  content: ""; position: absolute; left: 5px; top: 0.5em;
  width: 11px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}
.cd-doc .ticks.no li::before { width: 11px; height: 0; top: 0.85em; border-left: 0; border-bottom-color: var(--ink-3); transform: none; }
.cd-doc ol.ticks { counter-reset: doc-step; gap: 14px; }
.cd-doc ol.ticks li { padding-left: 40px; counter-increment: doc-step; }
.cd-doc ol.ticks li::before {
  content: counter(doc-step); top: 0.1em; left: 0; width: 26px; height: 26px; transform: none;
  display: grid; place-items: center; border: 0; border-radius: 999px;
  background: var(--surface-2); color: var(--ink); font-size: 0.8125rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
html[data-contrast="high"] .cd-doc ol.ticks li::before { box-shadow: inset 0 0 0 1.5px var(--line-strong); }

/* ------------------------------------------------------------ 자주 묻는 질문 */
.cd-doc .faq-list { border-top: 1px solid var(--line); }
.cd-doc .faq-item { border-bottom: 1px solid var(--line); }
.cd-doc .faq-item summary {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 18px 0; list-style: none; cursor: pointer;
  font-weight: 700; font-size: 1.0625rem; line-height: 1.5; letter-spacing: -0.015em;
}
.cd-doc .faq-item summary::-webkit-details-marker { display: none; }
.cd-doc .faq-item summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-top: 0.45em;
  background:
    linear-gradient(var(--ink-2), var(--ink-2)) center / 100% 2px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) center / 2px 100% no-repeat;
  transition: transform 0.2s ease;
}
.cd-doc .faq-item[open] summary::after { transform: rotate(45deg); }
.cd-doc .faq-item summary:hover { color: var(--ink); }
.cd-doc .faq-item p { margin: 0 0 20px; color: var(--ink-2); line-height: 1.75; max-width: 42rem; }
