:root {
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: #191f28;
  background: #f9fafb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { background: #f9fafb; }
body { min-width: 320px; margin: 0; background: #f9fafb; }
a { color: #1b64da; text-underline-offset: 3px; }
a:hover { color: #1957bd; }
a:focus-visible { outline: 3px solid rgba(49, 130, 246, .28); outline-offset: 3px; border-radius: 3px; }

.legal-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 20px max(56px, env(safe-area-inset-bottom));
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e5e8eb;
}

.legal-brand {
  color: #191f28;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -.02em;
  text-decoration: none;
}

.legal-back {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #4e5968;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.legal-title { padding: 54px 0 28px; }
.legal-title h1 { margin: 0 0 12px; font-size: clamp(30px, 6vw, 42px); line-height: 1.2; letter-spacing: -.045em; }
.legal-title p { margin: 0; color: #8b95a1; font-size: 13px; line-height: 1.6; }

.legal-summary {
  margin-bottom: 38px;
  padding: 20px;
  border: 1px solid #dbe1e7;
  border-radius: 14px;
  background: #fff;
}

.legal-summary strong { display: block; margin-bottom: 8px; font-size: 16px; }
.legal-summary p { margin: 0; color: #4e5968; font-size: 14px; line-height: 1.7; }

.legal-content section { padding: 26px 0; border-top: 1px solid #e5e8eb; }
.legal-content h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.4; letter-spacing: -.025em; }
.legal-content h3 { margin: 22px 0 8px; font-size: 15px; line-height: 1.5; }
.legal-content p, .legal-content li { color: #4e5968; font-size: 15px; line-height: 1.75; }
.legal-content p { margin: 0; }
.legal-content p + p { margin-top: 10px; }
.legal-content ul, .legal-content ol { margin: 10px 0 0; padding-left: 22px; }
.legal-content li + li { margin-top: 7px; }
.legal-content strong { color: #333d4b; }

.legal-note {
  margin-top: 14px !important;
  padding: 14px 16px;
  border-radius: 10px;
  color: #333d4b !important;
  background: #f2f4f6;
  font-size: 14px !important;
}

.legal-footer { margin-top: 34px; padding-top: 22px; border-top: 1px solid #e5e8eb; }
.legal-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.legal-footer a { font-size: 13px; font-weight: 650; }
.legal-footer p { margin: 14px 0 0; color: #8b95a1; font-size: 12px; line-height: 1.6; }

@media (max-width: 420px) {
  .legal-shell { padding-right: 16px; padding-left: 16px; }
  .legal-title { padding-top: 42px; }
}

@media print {
  @page { size: A4; margin: 16mm; }
  html, body { background: #fff; }
  .legal-shell { width: 100%; padding: 0; }
  .legal-content section { break-inside: avoid; }
  .legal-content h2 { break-after: avoid; }
}
