/* 정책·지원 페이지 공용 스타일 — 앱·랜딩과 같은 밝은 톤 (app/src/constants/colors.ts lightColors, ops/landing.json 기준선)
   핑크는 브랜드 마크·포커스 링에만. 글자 단계 24·18·17·15·13, 간격 4의 배수, 모서리 8(작은 것)·12(카드). */
:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --surface: #F9FAFB;
  --surface-strong: #F3F4F6;
  --border: #E5E7EB;
  --text: #111827;
  --text-2: #4B5563;
  --text-3: #6B7280;
  --pink: #EC4899;
  --danger-soft: #FEF2F2;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
.container { max-width: 720px; margin: 0 auto; padding: 16px 20px 96px; }

/* 상단 — 랜딩 masthead 와 같은 로고 */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 18px; font-weight: 700; letter-spacing: -0.6px; color: var(--text); text-decoration: none; }
.brand svg { width: 20px; height: 20px; color: var(--pink); }
.lang-switch { display: flex; align-items: center; font-size: 13px; color: var(--text-3); }
.lang-switch a, .lang-switch strong { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.lang-switch a { color: var(--text-3); text-decoration: none; }
.lang-switch a:hover { color: var(--text); }
.lang-switch strong { color: var(--text); font-weight: 600; }

.doc-head { padding: 24px 0; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
h1 { font-size: 24px; line-height: 1.35; font-weight: 700; letter-spacing: -0.6px; color: var(--text); }
.meta { color: var(--text-3); font-size: 13px; margin-top: 8px; }

h2 { font-size: 18px; line-height: 1.45; font-weight: 600; letter-spacing: -0.3px; color: var(--text); margin: 40px 0 12px; }
h3 { font-size: 17px; line-height: 1.5; font-weight: 600; color: var(--text); margin: 24px 0 8px; }
h3.sub { font-size: 15px; color: var(--text-2); margin-top: 16px; }
p, li { color: var(--text-2); font-size: 15px; margin-bottom: 8px; }
ul, ol { padding-left: 20px; margin-bottom: 16px; }
li::marker { color: var(--text-3); }
strong { color: var(--text); font-weight: 600; }
em { font-style: normal; color: var(--text); }
/* 링크는 본문 색 + 밑줄 (핑크 글자는 흰 배경에서 AA 미달) */
a { color: var(--text); text-decoration: underline; text-decoration-color: #D1D5DB; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
a:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; border-radius: 8px; }
code { background: var(--surface-strong); color: var(--text); padding: 0 4px; border-radius: 8px; font-size: 13px; font-family: 'SF Mono', Menlo, Consolas, monospace; }

/* 목차 */
.toc { background: var(--surface); border-radius: 12px; padding: 20px 24px; margin: 28px 0 8px; }
.toc strong { display: block; margin-bottom: 8px; font-size: 13px; color: var(--text-3); }
.toc ol { padding-left: 20px; margin: 0; }
.toc li { margin-bottom: 4px; font-size: 15px; }

/* 표 — 좁은 화면에서는 표만 가로로 밀린다 */
.table-scroll { overflow-x: auto; margin: 12px 0 20px; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { border-bottom: 1px solid var(--border); padding: 12px; text-align: left; vertical-align: top; color: var(--text-2); min-width: 96px; }
th { color: var(--text); font-weight: 600; background: var(--surface); }
tr:last-child td { border-bottom: none; }
td p, td li { font-size: 13px; }

/* 안내 상자 — 중립 표면 */
.notice, .callout, .eula-highlight, .zero-tolerance { background: var(--surface); border-radius: 12px; padding: 16px 20px; margin: 24px 0; color: var(--text-2); }
.notice p:last-child, .callout p:last-child, .eula-highlight p:last-child, .notice ul:last-child, .eula-highlight ul:last-child { margin-bottom: 0; }
.notice.danger { background: var(--danger-soft); }
.zero-tolerance { background: var(--surface-strong); padding: 20px 24px; }
.zero-tolerance h2 { margin: 0 0 8px; }
.zero-tolerance p, .zero-tolerance li { color: var(--text); }
.zero-tolerance ul { margin: 12px 0 0; }

/* 카드형 블록 — 테두리 없이 표면색과 여백으로 구분 */
.pillar, .step, .card, .col { background: var(--surface); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.pillar strong { font-size: 17px; }
.pillar p { margin: 4px 0 0; }
.step h3, .card h3, .col h3 { margin-top: 0; }
.card p:last-child, .step p:last-child, .step ul:last-child { margin-bottom: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
@media (max-width: 560px) { .two-col { grid-template-columns: 1fr; } }
.col { margin-bottom: 0; }
.col h3 { font-size: 15px; }
.col ul { padding-left: 20px; margin-bottom: 0; }
.col li { font-size: 15px; }
.mail-template { background: var(--bg); border: 1px solid var(--border); padding: 16px; border-radius: 12px; margin: 12px 0; font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; color: var(--text-2); white-space: pre-wrap; line-height: 1.6; }

/* 지원 센터 연락처 */
.contact-big { text-align: center; padding: 28px 20px; margin: 28px 0; background: var(--surface); border-radius: 12px; color: var(--text-3); font-size: 13px; }
.contact-big a { display: inline-block; margin: 4px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.3px; }
.contact-big .hint { color: var(--text-3); font-size: 13px; margin-top: 4px; }

.related { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 13px; }
