.legal-main {
  width: min(840px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 72px;
}
.legal-header {
  padding-bottom: 26px;
  border-bottom: 3px solid var(--navy);
}
.legal-header h1 {
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(1.8rem, 5vw, 2.65rem);
  font-weight: 950;
  letter-spacing: -.06em;
}
.legal-header p { margin: 10px 0 0; color: var(--muted); }
.legal-section { padding: 28px 2px; border-bottom: 1px solid var(--line); }
.legal-section h2 { margin: 0 0 14px; font-size: 1.18rem; font-weight: 900; }
.legal-section h3 { margin: 22px 0 8px; font-size: 1rem; }
.legal-section p,.legal-section li { color: #465466; font-size: .92rem; line-height: 1.8; }
.legal-section ul { margin: 10px 0; padding-left: 1.25rem; list-style: disc; }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .84rem; }
.legal-table th,.legal-table td { border: 1px solid var(--line); padding: 11px; text-align: left; vertical-align: top; line-height: 1.6; }
.legal-table th { background: #eef5fc; color: var(--navy-deep); }
.legal-note { background: #f3f8fe; border: 1px solid #cfe0f4; border-radius: 8px; padding: 14px 16px; }
.account-danger-zone { margin-top: 22px; border-color: #e9b8b8; }
.account-danger-zone label { display: block; margin: 18px 0 7px; font-size: .82rem; }
.account-danger-zone input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.danger-button { margin-top: 14px; border: 1px solid #b42318; border-radius: 8px; background: #fff; color: #b42318; padding: 11px 16px; font-weight: 900; cursor: pointer; }
.privacy-note a,.legal-main a { color: var(--clay); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal { display: flex; justify-content: center; gap: 14px; padding: 0 16px 18px; color: #c8d5e2; font-size: .72rem; }
.footer-legal a:hover,.footer-legal a:focus-visible { color: #fff; text-decoration: underline; }
@media (max-width: 640px) {
  .legal-main { padding-top: 34px; }
  .legal-table,.legal-table tbody,.legal-table tr,.legal-table td { display: block; }
  .legal-table thead { display: none; }
  .legal-table tr { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
  .legal-table td { border: 0; border-bottom: 1px solid var(--line); padding: 11px 12px; }
  .legal-table td:last-child { border-bottom: 0; }
  .legal-table td::before { display: block; margin-bottom: 4px; color: var(--navy); font-size: .68rem; font-weight: 900; }
  .legal-table td:nth-child(1)::before { content: "항목"; }
  .legal-table td:nth-child(2)::before { content: "목적"; }
  .legal-table td:nth-child(3)::before { content: "보유기간"; }
}
