/* 개인정보처리방침 · 404 등 보조 페이지 */

.doc {
    max-width: 820px;
    padding-top: calc(var(--header-h) + 72px);
    padding-bottom: 120px;
}
.doc h1 {
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
}
.doc__lead {
    margin-top: 20px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}
.doc h2 {
    margin: 44px 0 12px;
    font-size: 20px;
    font-weight: 700;
}
.doc p,
.doc li { color: var(--muted); }
.doc p + p { margin-top: 10px; }
.doc ul { margin-top: 10px; display: grid; gap: 6px; }
.doc li { position: relative; padding-left: 16px; }
.doc li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .75em;
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: var(--pink);
}
.doc strong { color: var(--text); }

.notfound {
    min-height: 72vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px 16px;
}
.notfound__code {
    font-family: var(--mono);
    font-size: clamp(88px, 18vw, 160px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
}
.notfound p { margin: 20px 0 36px; color: var(--muted); font-size: 17px; }

/* ---------- 문서 보조 요소 (게임 방침·삭제 안내) ---------- */
.doc a:not(.btn) { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.doc code {
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--surface-2);
    font-family: var(--mono);
    font-size: 14px;
    color: var(--text);
}

.doc__summary {
    margin-top: 32px;
    padding: 22px 24px;
    border: 1px solid rgba(31, 224, 255, .3);
    border-radius: var(--radius);
    background: var(--cyan-soft);
}
.doc__summary li::before { background: var(--cyan); }

.doc__table {
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow-x: auto;
}
.doc__table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc__table th,
.doc__table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}
.doc__table tr:last-child th,
.doc__table tr:last-child td { border-bottom: 0; }
.doc__table thead th { background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; }
.doc__table tbody th { width: 150px; color: var(--text); font-weight: 600; background: var(--surface); white-space: nowrap; }
.doc__table td:first-child { color: var(--text); }
.doc__table + p { margin-top: 14px; }

.doc__steps { margin-top: 16px; display: grid; gap: 14px; counter-reset: step; }
.doc__steps > li {
    position: relative;
    padding: 20px 22px 20px 64px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    counter-increment: step;
}
.doc__steps > li::before {
    content: counter(step);
    position: absolute;
    left: 20px;
    top: 19px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--pink-soft);
    color: var(--pink);
    font-family: var(--mono);
    font-weight: 600;
    font-size: 14px;
}
.doc__steps > li > strong { display: block; margin-bottom: 4px; }
.doc__steps ul { margin-top: 8px; }

.doc__cta { margin-top: 24px; }
.doc__meta {
    margin-top: 56px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 13.5px;
    color: var(--dim) !important;
}

@media (max-width: 640px) {
    .doc__table tbody th { width: 110px; white-space: normal; }
    .doc__steps > li { padding: 18px 18px 18px 58px; }
    .doc__steps > li::before { left: 16px; }
}

/* ---------- 버전별 구분 (토스 / Google Play) ---------- */
.doc h3 { margin: 28px 0 10px; font-size: 17px; font-weight: 700; color: var(--text); }
.doc__versions { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.doc__version {
    --accent: #3182f6;
    display: block;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius);
    background: var(--surface);
    text-decoration: none !important;
}
.doc__version--play { --accent: #34c26b; }
a.doc__version:hover { border-color: var(--accent); }
.doc__version-name { font-weight: 800; font-size: 17px; color: var(--accent) !important; margin-bottom: 8px; }
.doc__version li::before { background: var(--accent); }
@media (max-width: 640px) { .doc__versions { grid-template-columns: 1fr; } }
