/* 약관·정책 문서 (v2) */
.doc { max-width: 1080px; margin: 0 auto; padding: 8px 0 40px; }
.doc-head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.doc-kicker { font-size: 13px; font-weight: 700; color: var(--brand); }
.doc-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.doc-meta { font-size: 13px; color: var(--text-3); }
.doc-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.doc-switch a { height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-3); background: var(--bg-elev); border: 1px solid var(--line); }
.doc-switch a:hover { color: var(--text); }
.doc-switch a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
.doc-toc { position: sticky; top: calc(var(--topbar-h) + 16px); max-height: calc(100vh - var(--topbar-h) - 32px); overflow-y: auto; padding: 16px; border-radius: var(--radius-l); background: var(--bg-elev); border: 1px solid var(--line); }
.doc-toc summary { font-size: 14px; font-weight: 800; cursor: pointer; list-style: none; }
.doc-toc summary::-webkit-details-marker { display: none; }
.doc-toc ol { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.doc-toc a { display: block; padding: 6px 8px; border-radius: 8px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.doc-toc a:hover { background: var(--bg-hover); color: var(--text); }
.doc-body { font-size: 15px; line-height: 1.85; color: var(--text-2); overflow-wrap: anywhere; }
.doc-body > *:first-child { margin-top: 0; }
.doc-body h3 { margin: 40px 0 12px; padding-top: 8px; font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.doc-body strong { display: block; margin: 26px 0 8px; font-size: 16px; font-weight: 800; color: var(--text); }
.doc-body p { margin: 0 0 6px; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: 14px; }
.doc-body th, .doc-body td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-body th { background: var(--bg-elev); color: var(--text); }
.doc-anchor { scroll-margin-top: calc(var(--topbar-h) + 16px); }
@media (max-width: 1023px) {
  .doc-layout { grid-template-columns: 1fr; gap: 16px; }
  .doc-toc { position: static; max-height: none; }
  .doc-head h1 { font-size: 24px; }
}
