/* 개인정보처리방침·이용약관 문서 페이지. site.css 위에 얹는다 */

/* 머리 막대: 첫 화면의 .bar 를 그대로 쓰되, 키아트 없이 문서 위에 놓는다 */
.site-top { position: relative; background: var(--hero); color: #f5ecda; overflow: clip; border-bottom: 1px solid var(--rule); }
.site-top .bar { position: relative; }

/* 문서 */
.doc { max-width: 800px; padding-top: 48px; padding-bottom: 80px; overflow-wrap: anywhere; }
.doc-head { padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--gold); }
.doc h1 { margin-top: 8px; font-size: clamp(1.75rem, 6vw, 2.4rem); font-weight: 800; line-height: 1.25; letter-spacing: -.03em; }
.eff { margin-top: 12px; color: var(--muted); font-size: .95rem; }

.toc { margin: 28px 0 32px; padding: 20px 22px; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; }
.toc-h { font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--gold); margin-bottom: 10px; }
.toc a { text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.toc-flat { list-style: none; font-size: .92rem; line-height: 1.55; }
.toc-flat li { break-inside: avoid; padding: 4px 0; }
.toc-groups { display: grid; gap: 16px; font-size: .9rem; line-height: 1.55; }
.toc-ch { font-weight: 700; display: inline-block; margin-bottom: 4px; }
.toc-groups ul { list-style: none; }
.toc-groups li { padding: 2px 0; }
.toc-groups li a { color: var(--muted); }

.doc .body { font-size: 1rem; line-height: 1.8; }
.doc .body h2, .doc .body h3, .doc .body h4 { scroll-margin-top: 16px; }
.doc .body h2 { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 1.3rem; font-weight: 800; line-height: 1.45; letter-spacing: -.02em; }
.doc .body h3 { margin-top: 30px; font-size: 1.08rem; font-weight: 800; line-height: 1.5; color: var(--ink); }
.doc .body h3.sub { margin-top: 26px; font-size: 1rem; font-weight: 700; color: var(--ink); text-wrap: wrap; }
.doc .body h4 { margin-top: 24px; font-size: 1rem; font-weight: 700; }
.doc .body h2 + h3 { margin-top: 18px; }
.doc .body p { margin-top: 12px; }
.doc .body ul, .doc .body ol { margin-top: 12px; padding-left: 1.4em; }
.doc .body li { margin-top: 6px; }
.doc .body li > ul, .doc .body li > ol { margin-top: 6px; }
.doc .body ul ul { list-style: circle; }
.doc .body li.lbl { list-style: none; margin-left: -1.2em; }
.doc .body ol > li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.doc .body a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(242, 196, 80, .4); text-underline-offset: 3px; }
.doc .body a:hover { text-decoration-color: var(--gold); }

/* 표: 좁은 화면에서는 표만 가로로 넘긴다(페이지는 넘치지 않는다) */
.table-scroll { margin-top: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: 10px; }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .92rem; line-height: 1.65; overflow-wrap: normal; }
.table-scroll th, .table-scroll td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.table-scroll th { font-weight: 700; background: var(--card); white-space: nowrap; }
.table-scroll tr:last-child td { border-bottom: 0; }

.back { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: .92rem; color: var(--muted); }
.back a { color: var(--ink); text-underline-offset: 3px; }

@media (min-width: 700px) {
  .doc { max-width: 824px; padding-top: 64px; padding-bottom: 96px; }
  .toc { padding: 22px 26px; }
  .toc-flat { columns: 2; column-gap: 32px; }
  .toc-groups { grid-template-columns: 1fr 1fr; gap: 18px 32px; }
  .doc .body h2 { margin-top: 56px; }
}
