/* ============================================================
   보험점검센터 — 개인정보 동의 체크박스 + 약관 모달
   8개 페이지가 공유한다. 이전에는 각 페이지 인라인 <style> 로 중복돼 있었고
   서브페이지(need/checklist/cases)에는 아예 빠져 있어서 약관 전문이
   페이지에 그대로 노출됐다. 그래서 공용 파일로 분리했다.
   ============================================================ */

/* ─── 동의 체크박스 ─── */
.f-agree { margin: 10px 0 16px; }
.agree-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.agree-label input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--blue, #1565C0);
  flex-shrink: 0; cursor: pointer;
}
.agree-text { font-size: 13px; color: #555; line-height: 1.4; }
/* 링크처럼 보여야 하는 버튼 — 브라우저 기본 버튼 모양을 완전히 지운다 */
.agree-link {
  background: none; border: none; outline: none;
  padding: 0; margin: 0; box-shadow: none;
  -webkit-appearance: none; appearance: none;
  font-family: inherit; font-size: 13px; font-weight: 700;
  color: var(--blue, #1565C0); text-decoration: underline; cursor: pointer;
}
.agree-req { color: #e53e3e; font-size: 12px; font-weight: 700; }

/* ─── 모달 ─── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0, 0, 0, .55); z-index: 9999;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 12px;
  width: 100%; max-width: 560px; max-height: 80vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px; border-bottom: 1px solid #eee; flex-shrink: 0;
}
.modal-head strong { font-size: 16px; color: #111; }
.modal-close {
  background: none; border: none; outline: none;
  -webkit-appearance: none; appearance: none;
  font-size: 18px; color: #999; cursor: pointer;
  padding: 4px 6px; line-height: 1;
}
.modal-close:hover { color: #333; }
.modal-body {
  overflow-y: auto; padding: 20px 24px;
  font-size: 13px; color: #444; line-height: 1.8; flex: 1;
  -webkit-overflow-scrolling: touch;
}
.modal-company { font-weight: 700; color: #111; margin-bottom: 16px; }
.modal-body h4 {
  font-size: 13px; font-weight: 800; color: #111;
  margin: 20px 0 8px; border-top: 1px solid #eee; padding-top: 16px;
}
.modal-body h4:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.modal-body ul { padding-left: 18px; margin: 6px 0 0; }
.modal-body li { margin-bottom: 6px; }
.modal-foot { padding: 14px 24px; border-top: 1px solid #eee; flex-shrink: 0; }
.modal-confirm {
  width: 100%; background: var(--blue, #1565C0); color: #fff;
  border: none; border-radius: 8px; padding: 12px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: inherit;
}
.modal-confirm:hover { background: var(--blue-dark, #0d47a1); }

/* ─── 좁은 화면 — 여백을 줄이고 버튼 터치 영역을 키운다 ─── */
@media (max-width: 600px) {
  .modal-overlay { padding: 14px; }
  .modal-box { max-height: 85vh; }
  .modal-head { padding: 16px 18px; }
  .modal-head strong { font-size: 15px; }
  .modal-close { font-size: 20px; padding: 4px 8px; }
  .modal-body { padding: 16px 18px; }
  .modal-company { margin-bottom: 14px; }
  .modal-body h4 { margin: 18px 0 8px; padding-top: 14px; }
  .modal-body ul { padding-left: 16px; }
  .modal-foot { padding: 12px 18px; }
  .modal-confirm { padding: 14px; }
}
