/* Pretendard (CDN) — 없으면 시스템 폰트로 폴백 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* ── 디자인 토큰 ─────────────────────────────────────────────── */
:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #1a1d21;
  --text-muted: #5a6068;
  --border: #e3e6ea;
  --accent: #1f3a5f;
  --accent-hover: #16294a;
  --header-bg: #1a1d21;
  --danger: #b42318;
  --warn-bg: #fdf6ec;
  --warn-border: #f0d9b5;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06);
  --ring: 0 0 0 3px rgba(31, 58, 95, .12);
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui,
    "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── 헤더 ────────────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--header-bg);
  padding: 14px 24px;
}

.site-title {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a,
.site-nav .linklike {
  display: inline-flex;
  align-items: center;
  color: #c7ccd3;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: color .12s ease;
}

.site-nav a:hover,
.site-nav .linklike:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-nav .inline-form {
  display: flex;
  align-items: center;
  margin: 0;
}

/* 헤더 안의 로그아웃 버튼: 텍스트 링크처럼 */
.linklike {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

/* ── 본문 컨테이너 ───────────────────────────────────────────── */
.site-main {
  max-width: 720px;
  margin: 36px auto;
  padding: 0 20px;
}

/* ── 카드 ────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}

h1 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.card > p {
  color: var(--text-muted);
  margin-top: 0;
}

a {
  color: var(--accent);
}

/* ── 폼 ──────────────────────────────────────────────────────── */
.field {
  margin-bottom: 32px;
}

.field label,
.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}

/* 필드 라벨(문항·본문·직무·경력·목적·유형)만 폰트 키움.
   라디오 옵션 텍스트(범용/BASIC/PREMIUM)는 .radio라 제외된다. */
.field > label:not(.radio),
.field-label {
  font-size: 16px;
}

.req {
  color: var(--danger);
  font-weight: 700;
  margin-left: 2px;
}

textarea,
select,
input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .12s ease, box-shadow .12s ease;
}

textarea {
  resize: vertical;
  line-height: 1.6;
}

textarea:focus,
select:focus,
input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%235a6068' d='M2 4l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

/* 라디오(사용 목적·평가 유형) 가로 정렬 */
.radio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 22px;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
}

.radio input {
  margin: 0;
  accent-color: var(--accent);
}

/* 평가 유형: BASIC / PREMIUM 가로 1x2 배치 */
.tier-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 52px;
}

.tier-option {
  margin-right: 0;
}

/* 오픈 기념 할인 배지 — 텍스트가 아닌 버튼형 pill */
.badge-sale {
  display: inline-flex;
  align-items: center;
  margin-left: 9px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #fff;
  background: #1a1d21;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
  white-space: nowrap;
  cursor: default;
}

/* 보조 안내·에러 */
.field-help {
  color: var(--text-muted);
  font-size: 13px;
  margin: 7px 0 0;
}

.field-error {
  color: var(--danger);
  font-size: 13px;
  margin: 7px 0 0;
}

/* ── 버튼 ────────────────────────────────────────────────────── */
button,
.button-link {
  display: inline-block;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease;
}

button:hover,
.button-link:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* 보조(내비게이션·취소) 버튼: 아웃라인 */
button[type="button"] {
  background: #fff;
  color: var(--accent);
}

button[type="button"]:hover {
  background: #f0f3f7;
  border-color: var(--accent);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

/* form-actions 안에서 a > button 묶음의 간격 정리 */
.form-actions a {
  text-decoration: none;
}

/* 가로 전체폭 버튼(평가 요청 등 주요 CTA) — 입력 필드 폭에 맞춤 */
.btn-block {
  width: 100%;
  padding-top: 14px;
  padding-bottom: 14px;
}

/* ── 알림(경고·면책 등) ──────────────────────────────────────── */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 14px;
  margin-bottom: 18px;
}

.alert-warning {
  background: var(--warn-bg);
  border-color: var(--warn-border);
  color: #8a5a12;
}

/* ── 결과 화면(result.html) 공유 클래스 ──────────────────────── */
/* 등급 팔레트 — data-grade 앞글자로 변수 주입(점수 히어로·칩 공용). 기존
   등급 뱃지 색과 동일 톤(A=초록·B=네이비·C=앰버·D=오렌지·전면=레드). */
.score-hero[data-grade^="S"] { --grade-fg: #3730a3;      --grade-bg: #eef2ff; --grade-bd: #c7d2fe; }
.score-hero[data-grade^="A"] { --grade-fg: #1b7a43;      --grade-bg: #e7f5ec; --grade-bd: #bfe3cd; }
.score-hero[data-grade^="B"] { --grade-fg: var(--accent); --grade-bg: #e9eff6; --grade-bd: #cdd9e8; }
.score-hero[data-grade^="C"] { --grade-fg: #8a5a12;      --grade-bg: #fef6e0; --grade-bd: #f0d9b5; }
.score-hero[data-grade^="D"] { --grade-fg: #b4540f;      --grade-bg: #fdeee3; --grade-bd: #f3d3bd; }
.score-hero[data-grade^="전"] { --grade-fg: var(--danger); --grade-bg: #fde8e8; --grade-bd: #f3c9c9; }

/* ③ 점수 히어로 카드 — 등급색 은은히 반영 */
.score-hero {
  margin: 10px 0 6px;
  padding: 22px 24px;
  background: var(--grade-bg, var(--bg));
  border: 1px solid var(--grade-bd, var(--border));
  border-radius: 14px;
}

.score-hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.score-figure {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.score-num-lg {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.score-den {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-muted);
}

.grade-chip {
  padding: 8px 20px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  background: var(--grade-fg, var(--accent));
  border-radius: 999px;
  white-space: nowrap;
}

/* '전면 재구성 권장'은 길어 칩 글씨를 줄인다 */
.grade-chip[data-grade^="전"] {
  font-size: 15px;
  white-space: normal;
}

/* '근접' 설명 — 히어로 카드 안, 점수와 위계 분리한 잔글씨 */
.boundary-note {
  margin: 16px 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--grade-bd, var(--border));
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.result-disclaimer {
  margin-top: 32px;            /* '다시 평가하기' 버튼과 충분히 띄움 */
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.result-error-message {
  font-size: 15px;
  color: var(--text);
}

/* 평가 결과 제목 — 다른 페이지 h1보다 크게 */
.result-title {
  font-size: 28px;
}

.result-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 16px;
}

.result-section h2 {
  font-size: 20px;
  margin-bottom: 14px;
}

/* 섹션 제목 색 마커 — 제목 왼쪽 작은 세로 막대(::before). 기존 색 체계 재사용.
   글자 크기·위계는 그대로 두고 마커만 추가. flex + align-items:center 라
   모바일(좁은 폭·제목 줄바꿈)에서도 막대와 글자 정렬이 유지된다. */
.result-section h2.sec-marker {
  display: flex;
  align-items: center;
  gap: 9px;
}

.result-section h2.sec-marker::before {
  content: "";
  flex: none;
  width: 4px;
  height: 0.95em;
  border-radius: 2px;
  background: var(--sec-marker, var(--accent));
}

.sec-marker.m-diag     { --sec-marker: var(--accent); }  /* 항목별 진단 — 네이비/슬레이트 */
.sec-marker.m-priority { --sec-marker: #b45309; }        /* 개선 우선순위 — 앰버(주의·첨삭 색과 통일) */
.sec-marker.m-strength { --sec-marker: #1b7a43; }        /* 강점 — 초록(강점 박스 좌측선과 통일) */
.sec-marker.m-annot    { --sec-marker: var(--accent); }  /* 본문 첨삭 — 네이비 */

.result-section ul,
.result-section ol {
  margin: 0;
  padding-left: 20px;
}

.result-section li {
  margin-bottom: 6px;
}

/* ★ 정렬 통일: 카드형 리스트는 들여쓰기 0으로 부모(.card) 폭에 꽉 맞춘다.
   점수 히어로·진단 카드·본문 첨삭 카드·위험신호 콜아웃이 같은 좌우 끝선을
   공유하게 한다. (숫자 매기는 '개선 우선순위'만 들여쓰기를 유지) */
.result-section .diag-cards,
.result-section .annotation-items,
.result-section .risk-list {
  padding-left: 0;
  margin-left: 0;
  margin-right: 0;
}

.result-muted {
  color: var(--text-muted);
}

/* PDF 저장 안내 바 (인쇄 시 숨김) */
.save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 4px;
  padding: 12px 16px;
  background: #eef2f7;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.save-note {
  flex: 1 1 240px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* 저장 버튼 — 주 액션이라 채움(전역 type=button 아웃라인을 명시적으로 덮음) */
.save-bar .save-pdf-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  background: var(--accent);
  color: #fff;
}

.save-bar .save-pdf-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ── 인쇄(PDF 저장) — 화면 그대로, 네비/버튼 제외, 배경·밑줄색 보존 ── */
@media print {
  .site-header,
  .site-footer,
  .save-bar,
  .form-actions {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .site-main {
    margin: 0;
    padding: 0;
    max-width: none;
  }

  .card {
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    max-width: none;
  }

  /* 등급 히어로·진단 카드·하이라이트의 배경/밑줄색을 그대로 인쇄 */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* ★ 벡터 유지 가드 — 결과 영역(.card 이하)의 래스터화 유발 속성을 강제로
     무력화한다. 브라우저는 transform·filter·opacity(<1)·mix-blend 등이 걸린
     레이어를 인쇄 시 이미지로 구울 수 있다. 앞으로 어떤 CSS가 추가돼도 PDF가
     '선택 가능한 벡터 텍스트'로 유지되도록 못 박는다. (색 보존은 위 규칙이 담당) */
  .card,
  .card * {
    box-shadow: none !important;
    text-shadow: none !important;
    transform: none !important;
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    mix-blend-mode: normal !important;
    will-change: auto !important;
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
  }

  /* 작은 카드는 페이지 경계에서 잘리지 않게(긴 본문 영역은 자연 분할 허용) */
  .score-hero,
  .diag-card,
  .strength-callout,
  .risk-list li,
  .annotation-items li {
    break-inside: avoid;
  }

  .result-section h2 {
    break-after: avoid;
  }

  @page {
    margin: 14mm;
  }
}

/* ④ 위험신호 — 경고 콜아웃(앰버 톤 + ! 배지) */
.risk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;          /* 진단/첨삭 카드 간격과 통일 */
}

.risk-list li {
  position: relative;
  margin: 0;
  padding: 11px 14px 11px 40px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #7a4f10;
}

.risk-list li::before {
  content: "!";
  position: absolute;
  left: 13px;
  top: 11px;
  width: 18px;
  height: 18px;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  color: #fff;
  background: #c08a2e;
  border-radius: 50%;
}

/* ⑤ 항목별 진단 — 카드(미흡=강조 / 보통=톤다운) */
.diag-cards {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diag-card {
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid #d7dde5;   /* 폴백(수준 미상) */
  border-radius: 10px;
}

/* 미흡(진짜 약점) — 빨강 보더 + 옅은 빨강 배경으로 우선순위가 보이게 */
.diag-card[data-level*="미흡"] {
  border-left-color: var(--danger);
  background: #fdf6f5;
}

/* 보통 — 톤다운(앰버 보더, 흰 배경) */
.diag-card[data-level*="보통"] {
  border-left-color: #e0bf86;
}

.diag-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.diag-item {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.diag-level {
  display: inline-block;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  background: #eef1f4;
  border-radius: 999px;
}

/* 진단 수준 배지 색상 — 미흡=빨강, 보통=앰버. */
.diag-level[data-level*="미흡"] {
  color: #b42318;
  background: #fde8e8;
}

.diag-level[data-level*="보통"] {
  color: #8a5a12;
  background: #fef6e0;
}

.diag-text {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
}

/* ⑤ 개선 우선순위 — 번호 강조 */
.priority-list {
  margin: 6px 0 0;
  padding-left: 22px;
}

.priority-list li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.55;
}

.priority-list li::marker {
  color: var(--accent);
  font-weight: 700;
}

/* ⑤ 강점 — 긍정 콜아웃(초록 톤) */
.strength-callout {
  margin: 6px 0 0;
  padding: 12px 14px;
  background: #e7f5ec;
  border: 1px solid #bfe3cd;
  border-left: 4px solid #1b7a43;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: #155e36;
}

/* ── 내 정보(my_page) ────────────────────────────────────────── */
/* 1) 정보 그리드 — 라벨(작고 흐리게)/값(크고 진하게) */
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 10px 0 6px;
}

.account-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.account-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.account-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

/* 이메일: 아이디(윗줄) / @도메인(아랫줄) */
.email-local,
.email-domain {
  display: block;
}

.email-domain {
  color: var(--text-muted);   /* 도메인은 한 단계 흐리게(아이디 강조) */
}

/* 가입일·로그인의 '(KST)' 표기를 아랫줄 작은 잔글씨로 */
.account-tzmark {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.account-tz {
  margin-top: 0;
}

/* 2) 이용 상태 — 무료 평가 / PREMIUM 크레딧 */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 20px 0 4px;
}

.status-card {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* PREMIUM 카드는 살짝 따뜻한 톤으로 구분(재결제 지점) */
.status-card-premium {
  background: #fffdf7;
  border-color: #e7d9b3;
}

.status-title {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.status-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.status-chip-ok {
  background: #e7f5ec;
  color: #1b7a43;
}

.status-chip-used {        /* 부정적이지 않게 — 중립 회색 */
  background: #eef1f4;
  color: var(--text-muted);
}

.status-desc {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.credit-counter {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.credit-number {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.credit-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

/* 주 액션(평가=채움) / 보조(로그아웃=아웃라인) 세로 스택 */
.my-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0 8px;
}

.my-actions .inline-form {
  margin: 0;
}

.my-actions .inline-form button {
  width: 100%;
}

/* 보조 버튼(아웃라인) — submit 버튼에도 적용되는 유틸 */
.btn-outline {
  background: #fff;
  color: var(--accent);
}

.btn-outline:hover {
  background: #f0f3f7;
  border-color: var(--accent);
}

/* 3) 최근 평가 — 카드 행 */
.recent-section {
  margin-top: 28px;
}

.recent-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recent-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.recent-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.recent-when {
  font-size: 13px;
  color: var(--text-muted);
}

.recent-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tier-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: 999px;
}

.tier-premium {
  background: var(--accent);
  color: #fff;
}

.tier-basic {
  background: #eef1f4;
  color: var(--text-muted);
}

.score-num {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.recent-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.recent-action:hover {
  background: #f0f3f7;
  border-color: var(--accent);
}

.recent-fail {
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}

/* 등급 색 뱃지 — 앞글자 기준(‘B+’→B, ‘전면…’→전). 기존 진단 뱃지와 같은 톤. */
.grade-badge {
  font-size: 13px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 8px;
  background: #eef1f4;
  color: var(--text);
}

.grade-badge[data-grade^="S"] { background: #eef2ff; color: #3730a3; }
.grade-badge[data-grade^="A"] { background: #e7f5ec; color: #1b7a43; }
.grade-badge[data-grade^="B"] { background: #e9eff6; color: var(--accent); }
.grade-badge[data-grade^="C"] { background: #fef6e0; color: #8a5a12; }
.grade-badge[data-grade^="D"] { background: #fdeee3; color: #b4540f; }
.grade-badge[data-grade^="전"] { background: #fde8e8; color: var(--danger); }

.my-actions-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.link-muted {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-muted:hover {
  color: var(--text);
}

/* ── 비회원 샘플(sample.html) ────────────────────────────────── */
.sample-note {
  font-size: 14px;
}

.sample-essay {
  color: var(--text-muted);
  font-style: italic;
  padding: 12px 14px;
  background: #f1f3f6;
  border-radius: var(--radius);
}

.sample-locked {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f1f3f6;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* 비회원 샘플 — BASIC/PREMIUM 예시 구분. 티어 시작 구간은 굵은 윗선으로 묶는다. */
.result-section.sample-tier {
  border-top: 4px solid var(--accent);
  margin-top: 38px;
  padding-top: 26px;
}

.sample-tier-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sample-tier-desc {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* 풀폭 CTA(BASIC 무료 시작) 아래 PREMIUM 안내 — 가운데 정렬 보조 문구.
   버튼·아래 면책선 양쪽과 충분히 띄운다(면책 .result-disclaimer 는 공유 규칙이라
   여기서 margin-bottom 으로 직접 간격을 벌린다 — 인접 마진 병합 시 큰 값 적용). */
/* ★ .card > p { margin-top:0 }(명시도 0,1,1)이 .sample-cta-note(0,1,0)를
   덮어써 버튼과의 간격이 0이 되던 문제 → .card 를 붙여 명시도(0,2,0)로 이긴다.
   버튼과의 위 간격만 키우고, 아래 면책선과의 간격(margin-bottom:40px)은 그대로. */
.card .sample-cta-note {
  margin: 8px 0 40px;   /* 묶음 안(버튼↔설명)은 좁게 8px / 묶음 사이(설명↔면책선)는 넓게 40px */
  text-align: center;
}

/* ── 탈퇴 안내(withdraw.html) ───────────────────────────────── */
.withdraw-notice {
  margin: 14px 0;
  padding-left: 20px;
}

.withdraw-notice li {
  margin-bottom: 8px;
  color: var(--text);
}

/* ── 평가 진행 단계(evaluate_progress) ──────────────────────── */
.progress-steps {
  list-style: none;
  display: flex;
  gap: 28px;
  padding: 0;
  margin: 22px 0;
}

.progress-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--text-muted);
}

.progress-steps li .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
}

.progress-steps li.active {
  color: var(--text);
  font-weight: 600;
}

.progress-steps li.active .dot {
  background: var(--accent);
  animation: step-pulse 1s ease-in-out infinite;
}

.progress-steps li.passed .dot {
  background: var(--accent);
}

@keyframes step-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(1.25); }
}

/* ── 푸터 ────────────────────────────────────────────────────── */
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin: 12px auto 20px;   /* 위 여백 축소(36→12)로 푸터를 위로 끌어올림 */
  padding: 0 20px 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* 전자상거래법 의무 표기 — 작게, 전 페이지 하단 노출 */
.footer-biz {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── 입력 경고 문구(개인정보 미입력 안내) ───────────────────── */
/* evaluate 페이지 제목 — 다른 페이지 h1보다 크게 */
.form-title {
  font-size: 30px;
}

.card .input-warning {
  color: var(--danger);
  font-size: 13px;
  /* 경고문과 첫 입력칸(자소서 문항 원문) 사이 간격을 넓힌다 */
  margin: 8px 0 26px;
}

/* 자소서 문항 원문 textarea와 바로 아래 안내문 사이 간격을 좁힌다 */
#question_text + .field-help {
  margin-top: 3px;
}

/* ── 평가 전 고지 박스(생성형 AI 전송 안내) ─────────────────── */
.notice-box {
  margin: 4px 0 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text);
}

.notice-box p {
  margin: 0 0 8px;
}

.notice-box .notice-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
}

.notice-box .notice-list {
  margin: 0 0 8px;
  padding-left: 18px;
}

.notice-box .notice-list li {
  margin-bottom: 6px;
}

.notice-box .notice-list strong {
  font-weight: 600;
}

.notice-box .notice-ai-law {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── 국외이전 동의 체크박스 ──────────────────────────────────── */
.consent-box {
  margin: 4px 0 8px;
  padding: 14px 16px;
  background: #f1f3f6;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.55;
  cursor: pointer;
}

.consent-check input {
  flex: 0 0 auto;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.consent-check strong {
  color: var(--danger);
}

.consent-detail,
.notice-detail {
  margin-top: 10px;
}

.consent-detail summary,
.notice-detail summary {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.consent-detail summary::-webkit-details-marker,
.notice-detail summary::-webkit-details-marker {
  display: none;
}

.consent-detail[open] summary,
.notice-detail[open] summary {
  margin-bottom: 10px;
}

.consent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
}

.consent-table th,
.consent-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.consent-table thead th {
  background: #e9edf2;
  font-weight: 600;
}

.consent-table .consent-key {
  width: 34%;
  background: #f5f7f9;
  font-weight: 600;
  color: var(--text);
}

.consent-source {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  word-break: break-all;
}

.consent-policy-link {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.consent-policy-link a {
  font-weight: 600;
}

/* ── 본문 첨삭(PREMIUM 언더라인 + 개선점) ───────────────────────────── */
.essay-annotated {
  margin: 4px 0 16px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.9;
  white-space: pre-wrap;     /* 본문 개행·들여쓰기 보존 */
  word-break: break-word;
  font-size: 15px;
  color: var(--text);
}

/* 밑줄 친 문제 문장 (공통) */
mark.cr-hl {
  background: var(--warn-bg);
  padding: 1px 1px 0;
  border-radius: 2px;
  color: inherit;
}

/* JS 가 인터랙션을 건 밑줄만 클릭 가능 표시(샘플 페이지의 정적 밑줄과 구분). */
mark.cr-hl[role="button"] {
  cursor: pointer;
}
mark.cr-hl[role="button"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* 밑줄 hover/포커스 커스텀 툴팁(데스크톱·키보드) — 단일 공유 요소, fixed + 클램핑.
   네이티브 title 대체(모바일 미동작·스타일 불가 문제 해결). 본문 텍스트는 담지 않는다. */
.cr-hl-tooltip {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  max-width: min(280px, 90vw);
  padding: 8px 11px;
  background: #1f2937;
  color: #fff;
  font-size: 12.5px;
  line-height: 1.5;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
  pointer-events: none;       /* 툴팁이 hover 를 가로채지 않게 */
  opacity: 0;
  visibility: hidden;         /* 숨겨도 레이아웃은 유지 → 크기 측정 가능 */
  transition: opacity .12s ease;
}
.cr-hl-tooltip.cr-tip-on {
  opacity: 1;
  visibility: visible;
}
.cr-hl-tooltip .cr-tip-how {
  margin-top: 4px;
  color: #d1d5db;
}
.cr-hl-tooltip .cr-tip-how-label {
  font-weight: 700;
  color: #fff;
}
.cr-hl-tooltip .cr-tip-how-label::after {
  content: ':';
}

/* 의미 약점(직무·차별·정량·본인역할) — 빨강 실선(내용 결함, 높은 심각도) */
mark.cr-hl-semantic {
  border-bottom: 2px solid var(--danger);
}

/* 기계적 다듬기(표현반복·문장간결) — 앰버 점선(낮은 심각도 신호) */
mark.cr-hl-local {
  background: #fef6e0;       /* 연한 앰버 배경 */
  border-bottom: 2px dotted #b45309;
}

/* 밑줄 위 첨자 번호 — 아래 사유 목록과 매칭 */
.cr-hl-num {
  font-size: 10px;
  font-weight: 700;
  color: var(--danger);
  margin-left: 1px;
  vertical-align: super;
}

/* 로컬 항목의 첨자 번호는 앰버로 */
mark.cr-hl-local .cr-hl-num {
  color: #b45309;
}

/* 첨삭 안내 — 상황별 단일 한 줄(annotation.js 가 설정). 정상 자간·일관 크기. */
#annotation-note {
  margin: 6px 0 14px;
  font-size: 12.5px;
  line-height: 1.7;
  letter-spacing: normal;
  color: var(--text-muted);
}

/* 사유·개선 목록(인라인·폴백 공통) — 카드 간 간격·패딩 일관 */
.annotation-items {
  margin: 6px 0 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.annotation-items li {
  padding: 14px 16px;                       /* 항목별 진단 카드와 동일 톤 */
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--danger);   /* 의미(내용 결함)=빨강 */
  border-radius: 10px;
  scroll-margin: 80px 0;                   /* 밑줄 클릭으로 스크롤 시 위 여백 확보 */
  transition: box-shadow .2s ease;
}

/* 밑줄 클릭/탭 시 대응 항목을 일시 강조(네이비 아웃라인 + 펄스). 빨강·앰버
   카드 양쪽에서 잘 보이도록 배경은 건드리지 않고 outline/box-shadow 만 쓴다. */
.annotation-items li.cr-item-active {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  animation: cr-item-pulse 1.1s ease-out;
}
@keyframes cr-item-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 99, 235, .45); }
  100% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .annotation-items li.cr-item-active { animation: none; }
}

/* 목록 번호 배지 — 본문 위첨자(¹²³)와 같은 색 계열로 시각 연결. */
.annotation-items .cr-item-n {
  display: inline-block;
  min-width: 20px;
  height: 20px;
  line-height: 20px;
  padding: 0 5px;
  margin-right: 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background: var(--danger);              /* 의미(빨강) 기본 */
  vertical-align: 1px;
}
.annotation-items li.cr-item-local .cr-item-n {
  background: #b45309;                     /* 로컬(앰버) — 위첨자 색과 일치 */
}

/* 기계적 다듬기(로컬)=앰버. 좌측 보더 + 옅은 앰버 배경으로 빨강과 확실히 구분 */
.annotation-items li.cr-item-local {
  border-left-color: #b45309;
  background: #fffdf7;
}

.annotation-items .cr-item-head {
  font-weight: 700;
  color: var(--accent);
}

.annotation-items .cr-item-why {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.annotation-items .cr-item-how {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* '개선' 라벨만 약하게 강조(굵게·진하게), 뒤따르는 값은 흐리게 유지 */
.annotation-items .cr-how-label {
  font-weight: 700;
  color: var(--text);
}

.annotation-items .cr-how-label::after {
  content: ':';
}

/* ── 서비스 소개(about.html) ─────────────────────────────────────
   소개 페이지는 흰 카드 반복 대신 '밴드(띠)'를 세로로 쌓아 리듬을 만든다.
   배경을 흰/연한 슬레이트로 번갈고, 마지막 CTA만 네이비로 마무리해 강약을 준다.
   팔레트는 기존 토큰(네이비 --accent / 슬레이트 / Pretendard)만 쓴다.
   평가 기준의 '내용'(항목·가중치·직무 분류 등)은 노출하지 않는다. */

/* 밴드 공통 — site-main(720px·좌우 20px 패딩)의 패딩을 음수 마진으로 상쇄해
   콘텐츠 칼럼 끝(모바일은 화면 끝)까지 닿는 띠를 만든다. 안쪽 패딩으로 호흡 확보.
   배경 교차: 흰(hero 위 첫 흰 밴드는 신뢰) → 틴트 → 흰 → 틴트 → 흰(CTA) 순으로
   같은 배경이 연달아 오지 않게 한다. */
.about-section {
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: 0;
  padding: 88px 52px;   /* 여백 우선 — 세로로 넉넉히 '숨 쉬는' 밴드 */
  background: var(--card);
}

.about-section + .about-section {
  margin-top: 0;
}

/* 섹션 머리말(eyebrow) — 미니멀하게: 더 작게·자간 넓게(tracking), 가는 라인.
   라인을 텍스트 '위'에 블록으로 둬 라벨 글자 시작선이 제목·카드·본문과 일치. */
.about-eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.about-eyebrow::before {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  margin-bottom: 14px;
  background: var(--accent);
  opacity: .5;
}

/* 섹션 제목 공통 — 네이비, 자간 살짝 좁힘 */
.about-h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin: 0 0 4px;
  color: var(--text);
}

/* 본문 단락 공통 — 차분한 슬레이트, 줄간격 여유. 좌우 끝선은 섹션 패딩 기준
   통일(per-요소 max-width 없음). */
.about-body {
  margin: 18px 0 0;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-muted);
}

.about-body + .about-body {
  margin-top: 16px;
}

/* 1) 히어로 — 카드 박스 없이 아주 옅은 슬레이트 그라데이션 밴드. 구분선 없이
   배경·여백만으로 다음 섹션과 나뉜다. */
.about-hero {
  padding-top: 104px;
  padding-bottom: 104px;
  background: linear-gradient(170deg, #f6f9fc 0%, #edf1f7 100%);
}

.about-hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--text);
}

.about-lede {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* 2) 신뢰 근거(★ 가장 강조) — 흰 밴드. 강조는 진한 구분선이 아니라 큰 네이비
   숫자와 넉넉한 여백으로 만든다(윗선 바 제거 — 선을 덜어낸다). */
.about-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 36px 0 10px;
  align-items: stretch;   /* 세 카드 높이 통일 */
}

.about-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;   /* 위에서부터 채워 설명 시작선 정렬 */
  gap: 10px;
  padding: 38px 22px;
  text-align: center;
  background: #f7f9fc;
  border: 1px solid #e9edf3;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(31, 58, 95, .04);
  transition: transform .2s ease, box-shadow .2s ease;
}

/* hover — 미세한 전환만 */
.about-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(31, 58, 95, .08);
}

/* 숫자 — 한 덩어리로 유지('+'·' / '가 줄바꿈되지 않게 nowrap). 줄 수가 항상
   1줄이라 세 카드의 설명 텍스트가 같은 높이에서 시작한다. */
.about-stat-num {
  display: block;
  min-height: 42px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--accent);
  white-space: nowrap;
}

.about-stat-label {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.about-trust .about-body {
  margin-top: 26px;
}

/* 3·5) 아주 옅은 슬레이트 틴트 밴드 — 흰 밴드와 번갈아, 선 없이 배경만으로 구분 */
.about-tint {
  background: #f2f5f9;
}

/* 4) 차별점 — 네이비 번호 배지를 유일한 포인트로. 좌측 강조 보더는 덜어내고
   사방을 옅은 1px 보더로 통일해 가볍게. */
.about-feature-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 30px;
  background: var(--card);
  border: 1px solid #e9edf3;
  border-radius: 16px;
  transition: box-shadow .2s ease, transform .2s ease;
}

.about-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(31, 58, 95, .06);
}

/* 번호 배지 — 네이비 원형, 과하지 않은 시각 포인트 */
.about-feature-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.about-feature-body {
  flex: 1 1 auto;
}

.about-feature-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
}

.about-feature-title .tier-tag {
  font-size: 11px;
}

.about-feature-desc {
  margin: 9px 0 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* 5) 개인정보 — 리스트. ★정렬: 기본 목록 들여쓰기(padding-left)를 없애 글자
   시작선을 본문·제목·카드와 같은 46px에 맞춘다. 불릿은 좌측 거터(패딩 영역)에
   띄워 텍스트를 밀지 않게 한다. */
.about-privacy-list {
  margin: 28px 0 0;
  padding-left: 0;
  list-style: none;
}

.about-privacy-list li {
  position: relative;
  margin-bottom: 14px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-muted);
}

.about-privacy-list li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0.66em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* 강조어만 진한 슬레이트로 — 네이비 남발 대신 굵기로 위계 */
.about-privacy-list strong {
  font-weight: 600;
  color: var(--text);
}

/* 6) CTA — 흰 밴드 안에 '둥근 네이비 패널'을 따로 둔다. 패널 둘레에 흰 여백이
   생겨 위 틴트 밴드가 네이비에 어색하게 걸치지 않고 깔끔하게 떨어진다(포컬 분리).
   텍스트는 흰/연한 슬레이트, 버튼은 흰 바탕·네이비 글씨로 강한 대비. */
.about-cta {
  padding-top: 80px;
  padding-bottom: 88px;
  text-align: center;
  background: var(--card);
}

.about-cta-panel {
  max-width: 600px;
  margin: 0 auto;
  padding: 64px 48px;
  border-radius: 22px;
  background: linear-gradient(165deg, var(--accent) 0%, var(--accent-hover) 100%);
  box-shadow: 0 20px 50px rgba(31, 58, 95, .18);   /* 은은하고 넓게 */
}

.about-cta-title {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0 0 16px;
  color: #fff;
}

.about-cta-body {
  max-width: 44ch;
  margin: 0 auto 32px;
  font-size: 16px;
  line-height: 1.75;
  color: #cdd6e3;
}

.about-cta-btn {
  min-width: 240px;
  padding: 16px 34px;
  font-size: 16px;
  background: #fff;
  color: var(--accent);
  border-color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.about-cta-btn:hover {
  background: #eef2f7;
  border-color: #eef2f7;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

/* ── 모바일 반응형 ──────────────────────────────────────────────── */
@media (max-width: 560px) {
  .about-section {
    padding: 60px 26px;   /* 모바일에서도 여백 우선(빽빽하지 않게) */
  }

  .about-hero {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .about-hero-title {
    font-size: 28px;
    line-height: 1.32;
  }

  .about-lede {
    font-size: 16px;
  }

  .about-h2 {
    font-size: 21px;
  }

  /* 숫자 카드 세로 스택 — 폭이 넉넉하므로 숫자를 조금 더 키운다 */
  .about-stat-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }

  .about-stat-card {
    padding: 30px 22px;
  }

  .about-stat-num {
    font-size: 36px;
    min-height: 0;
  }

  .about-feature {
    padding: 24px 22px;
    gap: 16px;
  }

  .about-cta {
    padding-top: 52px;
    padding-bottom: 56px;
  }

  .about-cta-panel {
    padding: 48px 28px;
    border-radius: 20px;
  }

  .about-cta-title {
    font-size: 23px;
  }

  .about-cta-btn {
    width: 100%;
    min-width: 0;
  }
}

/* ════════════════════════════════════════════════════════════════════
   이용약관 · 환불정책 페이지 (/terms)
   기존 톤(네이비 --accent / 슬레이트 --text-muted) 재사용. 모바일 반응형.
   ════════════════════════════════════════════════════════════════════ */
.terms-doc h2.part-title {
  margin-top: 38px;
  padding-top: 16px;
  border-top: 2px solid var(--accent);
  color: var(--accent);
  font-size: 19px;
}

.terms-doc h3 {
  margin-top: 22px;
  margin-bottom: 4px;
  font-size: 16px;
  color: var(--text);
}

.terms-doc ol {
  margin: 6px 0 0;
  padding-left: 22px;
}

.terms-doc ol > li {
  margin: 7px 0;
  line-height: 1.65;
}

.terms-doc ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.terms-doc ul > li {
  margin: 4px 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.terms-note {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* 사업자 정보 박스 */
.biz-info {
  margin: 18px 0 8px;
  padding: 16px 18px;
  background: #f0f3f7;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.biz-info h2 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--accent);
}

.biz-info dl { margin: 0; }

.biz-info dl > div {
  display: flex;
  gap: 10px;
  padding: 3px 0;
  font-size: 14px;
}

.biz-info dt {
  flex: 0 0 132px;
  color: var(--text-muted);
}

.biz-info dd {
  margin: 0;
  color: var(--text);
}

/* 가격표 */
.terms-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}

.terms-table th,
.terms-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.terms-table thead th {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.terms-table tbody tr:nth-child(even) {
  background: #f7f8fa;
}

/* 환불 예시 강조 박스 */
.refund-example {
  margin: 12px 0;
  padding: 14px 16px;
  background: #e9eff6;
  border: 1px solid #cdd9e8;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.refund-example-title {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--accent);
}

.refund-example ul {
  margin: 0;
  padding-left: 18px;
}

.refund-example li {
  margin: 6px 0;
  color: var(--text);
  line-height: 1.6;
}

.terms-doc .addendum {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 480px) {
  .biz-info dl > div { flex-direction: column; gap: 0; padding: 5px 0; }
  .biz-info dt { flex-basis: auto; font-size: 12px; }
  .terms-table th,
  .terms-table td { padding: 8px 9px; }
}
