/* 처리방침·계정 삭제 안내(읽는 페이지)만 쓰는 모양. style.css 다음에 읽는다. */
.doc { display: grid; gap: 28px; align-items: start; }
.doc > * { min-width: 0; }
@media (min-width: 980px) { .doc { grid-template-columns: 230px minmax(0, 1fr); } .toc { position: sticky; top: 88px; } }
.toc { font-size: .9rem; }
.toc p { font-weight: 800; color: var(--faint); font-size: .78rem; letter-spacing: .08em; margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc li { margin: 0; }
.toc a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; border-left: 2px solid var(--line); border-radius: 0 10px 10px 0; transition: color .2s, background .2s, border-color .2s; }
.toc a:hover { color: var(--ink); background: var(--bg-2); }
.toc a.on { color: var(--on-soft); background: var(--soft); border-left-color: var(--primary); font-weight: 700; }
@media (max-width: 979px) {
  .toc { position: sticky; top: 64px; z-index: 5; margin: 0 -16px; padding: 8px 16px; background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .toc p { display: none; }
  .toc ol { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: var(--surface); }
  .toc a.on { border-color: transparent; }
}
.doc section.card { padding: 26px 24px; scroll-margin-top: 130px; }
.doc h2 { font-size: 1.25rem; display: flex; align-items: baseline; gap: 10px; }
.doc h2 .num { font-family: var(--serif); font-size: 1.7rem; color: var(--primary); line-height: 1; min-width: 1.4em; }
.doc li { color: var(--ink); }
.doc li::marker { color: var(--primary); }
.summary {
  position: relative; overflow: hidden; display: grid; gap: 14px; grid-template-columns: auto 1fr; align-items: center;
  border-radius: var(--r); padding: 22px; margin-bottom: 16px; color: var(--on-soft);
  background: linear-gradient(130deg, var(--soft), color-mix(in srgb, var(--lav-soft) 80%, var(--soft)));
}
.summary { isolation: isolate; }
.summary p { margin: 0; font-weight: 600; }
.summary a { color: inherit; font-weight: 800; }
.summary .ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.summary .ic svg { width: 26px; height: 26px; }
.summary::after { content: ""; position: absolute; z-index: -1; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
@media (prefers-color-scheme: dark) { .summary::after { background: rgba(255, 255, 255, .05); } }

/* 넓은 화면은 표, 좁은 화면은 행마다 카드 */
.table { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th:first-child { width: 22%; }
th { background: var(--bg-2); font-weight: 700; font-size: .85rem; color: var(--muted); }
tbody tr { transition: background .2s; }
tbody tr:hover { background: var(--surface-2); }
@media (max-width: 680px) {
  .table { border: 0; border-radius: 0; overflow: visible; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { border: 1px solid var(--line); border-radius: 16px; padding: 6px 0; margin-bottom: 10px; background: var(--surface-2); }
  td { border: 0; padding: 6px 16px; }
  td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 700; color: var(--primary); }
}

.steps { counter-reset: step; list-style: none; padding: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--line); }
.steps li { counter-increment: step; position: relative; padding-left: 52px; min-height: 36px; padding-top: 5px; }
.steps li + li { margin-top: 18px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(140deg, var(--primary), #EA580C); color: #fff; font-family: var(--serif); font-weight: 700;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(194, 65, 12, .25);
}
.split { display: grid; gap: 16px; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; } }
.split .card { margin-bottom: 0; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.tag svg { width: 14px; height: 14px; }
.tag.gone { background: var(--soft); color: var(--on-soft); }
.tag.kept { background: var(--lav-soft); color: var(--on-lav); }
