
@layer legacy {
body.deletion-page { min-height: 100dvh; background: var(--bg); overflow-x: hidden; }
.deletion-page [hidden] { display: none !important; }
/* 앱 마이페이지 하위 화면(이용약관 · 개인정보처리방침)과 같은 모양: 좌우 16px, 넓은 화면 720px,
   탭 제목 → ‹ 마이페이지 → 화면 제목 → 카드. 실제 처리는 이 페이지에 그대로 둔다. */
.deletion-shell { width: min(100% - 32px, 720px); margin-inline: auto; padding: max(24px, calc(env(safe-area-inset-top, 0px) + 12px)) 0 calc(28px + var(--safe-b)); }
.deletion-app-title { margin: 0 0 16px; color: var(--text); font-size: var(--fs-display-s); font-weight: 700; letter-spacing: -.02em; }
.deletion-head { display: grid; gap: 6px; margin-bottom: 12px; }
.deletion-back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 4px 0 0; color: var(--gold); font-size: var(--fs-body-l); font-weight: 600; text-decoration: none; }
.deletion-back::before { content: ""; width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.deletion-page a { color: var(--gold); text-underline-offset: .2em; }
.deletion-page h1 { margin: 0; color: var(--text); font-size: var(--fs-title-l); font-weight: 800; line-height: 1.35; letter-spacing: -.012em; }
.deletion-page h2 { font-size: var(--fs-title-m); font-weight: 700; margin: 0 0 10px; }
.deletion-page p { margin: 0 0 12px; line-height: 1.65; overflow-wrap: anywhere; }
#deletionLead { color: var(--muted); font-size: var(--fs-body); }
.deletion-card { padding: 16px 18px; border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow-card); margin-block: 12px; }
.deletion-card ul { padding-left: 18px; margin: 0; font-size: var(--fs-body-l); line-height: 1.7; }
.deletion-card li + li { margin-top: 6px; }
.deletion-muted { color: var(--muted); font-size: var(--fs-body); }
.deletion-check { display: flex; gap: 12px; margin-top: 4px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--panel); box-shadow: var(--shadow-card); font-size: var(--fs-body-l); line-height: 1.6; align-items: flex-start; }
.deletion-check input { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--gold); }
.deletion-actions { display: grid; gap: 12px; margin-top: 16px; }
.deletion-actions button, .deletion-actions a { display: grid; place-content: center; width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-full); text-decoration: none; font-weight: 700; font-size: var(--fs-body-l); }
/* 지우는 동작은 마이페이지의 회원 탈퇴 줄처럼 빨강. */
.deletion-primary.deletion-danger { background: var(--red-bg); color: var(--red); border: 0; }
.deletion-primary { background: var(--gold); color: var(--gold-ink); border: 0; }
.deletion-secondary { background: var(--button-secondary); border: 0; color: var(--button-secondary-text); }
.deletion-actions .deletion-secondary { color: var(--button-secondary-text); }
.deletion-actions button:disabled { opacity: .45; }
.deletion-actions button:not(:disabled):active { filter: brightness(.94); }
.deletion-status { min-height: 32px; margin-top: 18px; color: var(--muted); font-size: var(--fs-body-l); }
.deletion-status[data-error="true"] { color: var(--red); }
.deletion-complete-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-full); background: var(--green-bg); color: var(--green); font-size: var(--fs-display-l); margin-bottom: 24px; }
.deletion-support { margin-top: 28px; font-size: var(--fs-body); line-height: 1.65; color: var(--muted); }
}
