/* wslaw.kr — 법적 고지·부속 페이지 (site.css 위에 덧씀) */

.doc-page { background: var(--paper); }

/* 간략형 헤더 (고정하지 않음) */
.doc-header { background: var(--navy-deep); color: var(--white); border-bottom: 1px solid rgba(213, 178, 108, .25); }
.doc-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.doc-header-nav { display: flex; align-items: center; gap: 8px; }
.doc-home {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  color: #e6eaf0; text-decoration: none; font-size: 14.5px; font-weight: 600;
}
.doc-home:hover { color: var(--gold-soft); }

/* 레이아웃: 머리말 / 목차(넓은 화면 고정 사이드바) / 본문 */
.doc-main { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 112px); }
.doc-main:focus { outline: none; }
.doc-layout {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "toc" "body"; gap: 28px;
}
.doc-head { grid-area: head; max-width: 46rem; }
.doc-toc { grid-area: toc; }
.doc-body { grid-area: body; max-width: 46rem; min-width: 0; }
@media (min-width: 1080px) {
  .doc-layout { grid-template-columns: 260px minmax(0, 46rem); grid-template-areas: ". head" "toc body"; gap: 36px 64px; justify-content: center; }
  .doc-layout.no-toc { grid-template-columns: minmax(0, 48rem); grid-template-areas: "head" "body"; }
  .doc-toc { align-self: start; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
}

.doc-kicker { display: flex; gap: 12px; align-items: baseline; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.doc-kicker span { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); }
.doc-head h1 {
  font-family: var(--serif); font-weight: 700; color: var(--navy);
  font-size: clamp(30px, 4vw, 44px); line-height: 1.3; letter-spacing: -.02em;
  padding-bottom: 18px; border-bottom: 3px double var(--gold); margin-bottom: 18px;
}
.doc-head > p { color: var(--text); font-size: 16.5px; line-height: 1.85; }
.doc-head > p + p { margin-top: .8em; }
.doc-head > p:first-of-type + h1 + p, .doc-head h1 + p { color: var(--muted); font-size: 15px; }

/* 목차 */
.doc-toc nav { border-top: 1px solid var(--navy); padding-top: 12px; }
.doc-toc nav::before { content: "목차"; display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; color: var(--gold-ink); margin-bottom: 6px; }
.doc-toc ol { list-style: none; padding: 0; margin: 0; }
.doc-toc li { border-bottom: 1px solid var(--line); }
.doc-toc a {
  display: block; padding: 9px 4px 9px 10px; min-height: 40px; border-left: 2px solid transparent;
  color: var(--text); text-decoration: none; font-size: 14.5px; line-height: 1.5;
}
.doc-toc a:hover { color: var(--gold-ink); }
.doc-toc a[aria-current="true"] { border-left-color: var(--gold); color: var(--navy); font-weight: 700; background: var(--white); }
@media (max-width: 1079px) {
  .doc-toc nav { background: var(--white); border: 1px solid var(--line); border-top: 2px solid var(--navy); padding: 14px 16px; }
  .doc-toc ol { columns: 2 16rem; column-gap: 24px; }
  .doc-toc li { break-inside: avoid; }
}

/* 본문 */
.doc-body { font-size: 16.5px; line-height: 1.9; color: #232d3f; }
.doc-body section, .doc-head section { padding-top: 8px; margin-top: 40px; scroll-margin-top: 24px; }
.doc-body section:first-child { margin-top: 0; }
.doc-body h2, .doc-head h2 {
  font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: clamp(20px, 2vw, 24px); line-height: 1.45;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.doc-body h3, .doc-head h3 { font-size: 17px; color: var(--navy); margin: 22px 0 8px; }
.doc-body p, .doc-head section p { margin: 0 0 .75em; }
.doc-body ul, .doc-body ol, .doc-head section ul { list-style: revert; padding-left: 1.4em; margin: 0 0 .9em; }
.doc-body li + li, .doc-head section li + li { margin-top: .35em; }
.doc-body a, .doc-head a { color: var(--gold-ink); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc-body a:hover, .doc-head a:hover { color: var(--navy); }
.doc-body strong { color: var(--navy); }
.doc-head section { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 20px 22px 12px; margin-top: 24px; }

/* 표 */
.table-wrap { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--line); background: var(--white); }
.table-wrap:focus-visible { outline-offset: 2px; }
.doc-page table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.7; min-width: 520px; }
.doc-page caption { caption-side: top; text-align: left; padding: 12px 14px; font-weight: 700; color: var(--navy); font-size: 14.5px; border-bottom: 2px solid var(--navy); }
.doc-page th, .doc-page td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc-page thead th { background: var(--paper); color: var(--navy); font-size: 14px; letter-spacing: .02em; white-space: nowrap; }
.doc-page tbody th { color: var(--navy); font-weight: 700; background: rgba(245, 241, 232, .5); }
.doc-page tbody tr:last-child > * { border-bottom: 0; }

/* 이전 방침 보관본 */
.prev-notice { padding: 14px 18px; background: var(--white); border-left: 3px solid var(--gold); }
.prev-notice strong { color: var(--navy); }
.prev-text {
  margin: 0; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere;
  font-family: var(--sans); font-size: 15.5px; line-height: 1.85; color: #232d3f;
  background: var(--white); border: 1px solid var(--line); padding: clamp(18px, 3vw, 32px);
}

.doc-print { margin-top: 40px; }
html:not(.has-js) .doc-print { display: none; }

/* 404 */
.nf { max-width: 760px; text-align: left; }
.nf-code { font-family: var(--serif); font-weight: 700; font-size: clamp(64px, 12vw, 120px); line-height: 1; color: var(--gold-ink); letter-spacing: .04em; }
.nf-title { margin-top: 16px; font-family: var(--serif); font-size: clamp(26px, 3.4vw, 38px); color: var(--navy); line-height: 1.35; }
.nf-rule { display: block; width: 64px; height: 1px; background: var(--gold); margin: 22px 0; }
.nf-lead { color: var(--muted); font-size: 17px; }
.nf-links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.nf-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid rgba(15, 31, 54, .28);
  border-radius: 999px; color: var(--navy); font-weight: 600; text-decoration: none; background: var(--white);
}
.nf-links a:hover { border-color: var(--gold); }
.nf-call { margin-top: 28px; color: var(--muted); }
.nf-call a { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--navy); text-decoration: none; margin-left: 8px; }

@media (max-width: 760px) {
  .doc-header-inner { min-height: 64px; }
  .doc-home { padding: 0 8px; font-size: 14px; }
  .doc-header .hbtn-gold { width: auto; height: 40px; padding: 0 12px; }
  .doc-body { font-size: 16px; }
}
@media (max-width: 420px) {
  .doc-header .hbtn-gold { display: none; }
}

/* 인쇄: 머리·목차·푸터 링크 없이 본문만 */
@media print {
  @page { margin: 16mm; }
  .doc-header, .doc-toc, .site-footer, .skip-link, .doc-print, .doc-kicker { display: none !important; }
  .doc-page, .doc-head section, .table-wrap, .prev-text { background: #fff !important; }
  .doc-layout { display: block; }
  .doc-body, .doc-head { max-width: none; font-size: 10.5pt; color: #000; }
  .doc-head h1 { font-size: 18pt; color: #000; }
  .doc-body h2 { font-size: 13pt; color: #000; break-after: avoid; }
  .doc-body a { color: #000; text-decoration: underline; }
  .doc-body a[href^="http"]::after { content: " (" attr(href) ")"; font-weight: 400; font-size: 9pt; }
  .table-wrap { overflow: visible; border: 0; }
  .doc-page table { min-width: 0; font-size: 9.5pt; }
  .doc-page th, .doc-page td { border: 1px solid #999; }
  tr, .doc-head section { break-inside: avoid; }
}

/* 문장 속 링크도 누르기 쉬운 높이(24px 이상)를 확보한다 */
.doc-body a, .doc-head a { padding-block: 3px; }
