/* 약관 · 개인정보처리방침: 왼쪽 목차(따라옴) + 본문 720px */
.doc-sec { padding-block: 64px 96px; }
.doc { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px; align-items: start; }
.doc-side { position: sticky; top: 100px; display: grid; gap: 22px; }
.doc-switch { display: grid; gap: 4px; padding: 5px; border-radius: 14px; background: var(--blue-soft); }
.doc-switch a { display: flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color .15s, background .15s; }
.doc-switch a:hover { color: var(--blue-deep); }
.doc-switch a[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(20, 60, 140, .18); }
.doc-toc h2 { font-size: 13px; font-weight: 700; color: var(--faint); letter-spacing: 0; margin-bottom: 8px; padding-left: 16px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: grid; border-left: 2px solid var(--line); }
.doc-toc a { display: block; margin-left: -2px; padding: 7px 0 7px 14px; border-left: 2px solid transparent; font-size: 14.5px; line-height: 1.5; color: var(--muted); transition: color .15s, border-color .15s; }
.doc-toc a:hover, .doc-toc a.on { color: var(--blue-deep); border-left-color: var(--blue); font-weight: 600; }

.doc-paper { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 30px 60px -48px rgba(20, 60, 140, .5); overflow: hidden; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin: 0; padding: 22px 44px; background: #F7FAFF; border-bottom: 1px solid var(--line); }
.doc-meta div { display: flex; align-items: baseline; gap: 10px; }
.doc-meta dt { font-size: 13.5px; color: var(--faint); }
.doc-meta dd { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.doc-body { padding: 12px 44px 20px; }
.doc-art { padding: 30px 0 32px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.doc-art:last-child { border-bottom: 0; }
.doc-art h2 { font-size: 20px; font-weight: 800; line-height: 1.4; letter-spacing: -.02em; color: var(--ink); margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.doc-art h2::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--blue); flex: none; }
.doc-art p { font-size: 16.5px; line-height: 1.9; color: #26375C; padding-left: 16px; text-wrap: pretty; }
.doc-art p + p { margin-top: 6px; }
.doc-next { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 20px 26px; border-radius: 18px; background: var(--ink); color: #fff; transition: background .15s; }
.doc-next:hover { background: #18294A; }
.doc-next small { display: block; font-size: 13.5px; color: var(--night-muted); }
.doc-next b { font-size: 17px; font-weight: 700; }
.doc-next i { font-style: normal; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font-size: 18px; transition: translate .2s; }
.doc-next:hover i { translate: 3px 0; }

@media (max-width: 960px) {
  .doc-sec { padding-block: 32px 64px; }
  .doc { grid-template-columns: minmax(0, 720px); gap: 20px; }
  .doc-side { position: static; gap: 16px; }
  .doc-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-switch a { justify-content: center; text-align: center; }
  .doc-toc { padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
  .doc-toc h2 { padding-left: 0; }
  .doc-toc ol { border-left: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .doc-toc a { margin-left: 0; padding: 6px 0; border-left: 0; }
}
@media (max-width: 560px) {
  .doc-toc ol { grid-template-columns: minmax(0, 1fr); }
  .doc-paper { border-radius: 20px; }
  .doc-meta { padding: 16px 22px; gap: 4px 20px; }
  .doc-body { padding: 4px 22px 8px; }
  .doc-art { padding: 24px 0 26px; }
  .doc-art h2 { font-size: 18.5px; }
  .doc-art p { font-size: 16px; line-height: 1.85; padding-left: 0; }
  .doc-next { padding: 18px 20px; }
}

.doc-art p, .doc-art li { max-width: 46em; }
.doc-page .phero .hero-frame { padding-block: 56px 48px; }
.doc-page .phero .hero-frame::before { display: none; }
