/* elcherlab.com — 개인정보처리방침 문서 전용 스타일.
   색·폰트·간격 토큰은 style.css 의 것을 그대로 쓴다(변수만 참조). */

.doc { max-width: 52rem; }

/* ── 머리말 ─────────────────────────────── */

.crumb {
  margin: 0 0 1.25rem;
  font-size: .875rem;
}

.crumb a {
  color: var(--muted);
  text-decoration: none;
}

.crumb a:hover { color: var(--accent); }

.doc .intro h1 { margin-bottom: .75rem; }

.doc .intro p { margin: 0 0 .5rem; color: var(--muted); }

.meta {
  font-size: .875rem;
  color: var(--faint);
}

/* ── 목차 ─────────────────────────────── */

.toc {
  margin: 0 0 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--note-bg);
  border: 1px solid var(--note-bd);
  border-radius: .625rem;
}

.toc h2 {
  margin: 0 0 .625rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--faint);
  border: 0;
  padding: 0;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2;
  column-gap: 2rem;
  font-size: .9375rem;
}

.toc li { margin-bottom: .25rem; break-inside: avoid; }

.toc a { color: var(--text); text-decoration: none; }

.toc a:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 34rem) {
  .toc ol { columns: 1; }
}

/* ── 절 ─────────────────────────────── */

.doc section { margin-bottom: 2.75rem; scroll-margin-top: 1.5rem; }

.doc h2 {
  margin: 0 0 1rem;
  padding-bottom: .5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.01em;
  border-bottom: 2px solid var(--border);
}

.doc h3 {
  margin: 1.75rem 0 .625rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.doc p { margin: 0 0 .875rem; }

/* AI 고지처럼 특별히 눈에 띄어야 하는 절 */
.callout {
  padding: 1.5rem 1.5rem .5rem;
  background: var(--tint-soft);
  border: 1px solid var(--border);
  border-radius: .75rem;
}

.callout h2 { border-bottom-color: var(--border-hi); }

/* ── 표 ─────────────────────────────── */

/* 좁은 화면에서 표가 페이지를 밀지 않도록 표만 가로 스크롤한다. */
.tbl {
  display: block;
  overflow-x: auto;
  width: 100%;
  margin: 0 0 1.25rem;
  border-collapse: collapse;
  font-size: .9375rem;
  white-space: normal;
}

.tbl caption {
  margin-bottom: .5rem;
  font-size: .8125rem;
  color: var(--faint);
  text-align: left;
}

.tbl th,
.tbl td {
  padding: .625rem .75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  min-width: 7rem;
}

.tbl thead th {
  background: var(--note-bg);
  font-weight: 600;
  font-size: .875rem;
  color: var(--muted);
  white-space: nowrap;
}

.tbl tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--note-bg) 45%, transparent); }

.sub {
  display: inline-block;
  font-size: .8125rem;
  color: var(--faint);
}

/* ── 목록 ─────────────────────────────── */

.facts,
.nope {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.facts li,
.nope li { margin-bottom: .5rem; }

.nope { list-style: none; padding-left: 0; }

.nope li { position: relative; padding-left: 1.5rem; }

.nope li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--faint);
  font-size: .875rem;
}

/* ── 강조 문단 ─────────────────────────────── */

.note,
.warn {
  margin: 0 0 1.25rem;
  padding: .875rem 1.125rem;
  border-radius: .5rem;
  font-size: .9375rem;
  border: 1px solid var(--note-bd);
  background: var(--note-bg);
  color: var(--muted);
}

/* 반드시 읽고 넘어가야 하는 것 — 왼쪽에 굵은 표시줄을 둔다. */
.warn {
  border-left: 3px solid var(--accent);
  color: var(--text);
}

.contact-box {
  margin: 0 0 1.25rem;
  padding: 1.125rem 1.375rem;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: .625rem;
  box-shadow: var(--shadow);
}

.contact-box p:last-child { margin-bottom: 0; }

/* ── 기타 ─────────────────────────────── */

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  word-break: break-all;
}

.doc a { color: var(--accent); }

.doc-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .9375rem;
}

.doc-footer p { margin: 0 0 .375rem; }

.doc-footer a { color: var(--muted); text-decoration: none; }

.doc-footer a:hover { color: var(--accent); }

/* ── 인쇄 ─────────────────────────────── */

@media print {
  .toc, .crumb, .doc-footer { display: none; }
  .doc { max-width: none; }
  .doc section { break-inside: avoid-page; }
  .callout { background: none; }
}
