/* ==========================================================================
   WatchPro — 정책/안내 정적 페이지 공통 스타일 (라이트 테마)
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  min-height: 100vh;
  line-height: 1.6;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 12px;
  border-bottom: 1px solid #f1f5f9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.page-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
  transition: background 0.15s;
}

.page-back:active { background: #f1f5f9; }

.page-title {
  flex: 1;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-body {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 18px calc(40px + env(safe-area-inset-bottom, 0px));
}

.page-updated {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 20px;
}

.page-section {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 18px;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.03), 0 4px 12px -2px rgba(0, 0, 0, 0.02);
  padding: 18px;
  margin-bottom: 14px;
}

.page-section h2 {
  font-size: 16px;
  font-weight: 800;
  color: #0b4aa2;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.page-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  margin: 14px 0 8px;
}

.page-section p,
.page-section li {
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
  word-break: keep-all;
}

.page-section p + p { margin-top: 8px; }

.page-section ul {
  padding-left: 18px;
  margin: 8px 0;
}

.page-section li + li { margin-top: 6px; }

.page-section strong { color: #0f172a; }

.page-section a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.page-section a:hover { text-decoration: underline; }

.page-note {
  font-size: 12.5px;
  color: #94a3b8;
}

/* ---------- 다크 모드 (html.dark — js/theme.js 토글) ---------- */
html.dark body { background: #0b1220; color: #e2e8f0; }

html.dark .page-header {
  background: #0f1829;
  border-bottom-color: #1e293b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
html.dark .page-back { color: #e2e8f0; }
html.dark .page-back:active { background: #1e293b; }
html.dark .page-title { color: #e2e8f0; }
html.dark .page-updated { color: #64748b; }
html.dark .page-section {
  background: #151f2e;
  border-color: #1e293b;
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.35), 0 4px 12px -2px rgba(0, 0, 0, 0.25);
}
html.dark .page-section h2 { color: #7fb2ff; }
html.dark .page-section h3 { color: #cbd5e1; }
html.dark .page-section p,
html.dark .page-section li { color: #94a3b8; }
html.dark .page-section strong { color: #e2e8f0; }
html.dark .page-section a { color: #93c5fd; }
html.dark .page-note { color: #64748b; }
