/* Future Bless Agency — 계약서 표지와 같은 문서 톤: 흑백, Helvetica + Pretendard, 굵은 검은 줄과 가는 회색 줄 */
:root {
  --ink: #111;
  --rule: #000;
  --sub: #444;
  --hair: #cfcfcf;
  --fill: #f2f2f2;
  --paper: #fff;
  --thick: 1.4px;
  --thin: 0.6px;
  --label: 26%;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; background: var(--paper); }
body {
  font-family: Helvetica, "Helvetica Neue", Arial, "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
b, strong, h1, h2, h3, th { font-weight: 700; }
p { margin: 0; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--rule); outline-offset: 2px; }

.page {
  max-width: 1180px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 22px clamp(18px, 4vw, 48px) 26px;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
}

/* ---------- 맨 윗줄 ---------- */
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 12.5px; line-height: 1.4; }
.top nav { display: flex; gap: 1.5em; }
.top a { text-decoration: none; }
.top a:hover { background: var(--ink); color: var(--paper); }
.top a[aria-current="page"] { font-weight: 700; }
.top .home { color: var(--sub); }

/* ---------- 표지 (홈) ---------- */
.brand {
  margin: 30px 0 0;
  font-size: 11.3cqw;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.022em;
  white-space: nowrap;
}
.doc { margin: clamp(64px, 13cqw, 150px) 0 0; text-align: center; font-weight: 700; font-size: 16px; line-height: 1.6; }

table.cover { width: 100%; border-collapse: collapse; margin-top: clamp(56px, 11cqw, 120px); line-height: 1.6; }
table.cover tbody { border-top: var(--thick) solid var(--rule); }
table.cover tbody:last-child { border-bottom: var(--thick) solid var(--rule); }
table.cover th, table.cover td { padding: 5px 8px; vertical-align: top; text-align: left; }
table.cover tbody tr:first-child > * { padding-top: 10px; }
table.cover tbody tr:last-child > * { padding-bottom: 10px; }
table.cover th { width: var(--label); font-weight: 700; }

.doors { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 4cqw, 48px); margin-top: clamp(48px, 8cqw, 88px); }
.doors h2 { margin: 0 0 8px; padding-bottom: 5px; font-size: 15px; border-bottom: var(--thick) solid var(--rule); }
.doors p { color: var(--sub); }
.doors p + p { margin-top: 10px; color: var(--ink); }

/* ---------- 본문 페이지 ---------- */
h1.lead {
  margin: clamp(52px, 10cqw, 128px) 0 0;
  max-width: 15em;
  font-size: clamp(31px, 5.6cqw, 66px);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -0.035em;
}
.intro { margin-top: clamp(20px, 3cqw, 32px); max-width: 37em; color: var(--sub); }

.chapters { margin-top: clamp(52px, 9cqw, 104px); }
.chapter { display: grid; grid-template-columns: var(--label) 1fr; border-top: var(--thick) solid var(--rule); padding: 12px 0 clamp(36px, 5cqw, 56px); }
.chapter:last-child { border-bottom: var(--thick) solid var(--rule); }
.chapter > h2 { margin: 0; padding: 0 8px; font-size: 15px; line-height: 1.9; }
.chapter > div { padding: 0 8px; min-width: 0; }
.chapter > div > p { max-width: 37em; }
.chapter > div > p + p { margin-top: 0.7em; }

dl.rows { margin: 0; }
dl.rows > div { display: grid; grid-template-columns: 9.5em 1fr; column-gap: 16px; padding: 7px 0; border-top: var(--thin) solid var(--hair); }
dl.rows > div:first-child { border-top: 0; padding-top: 0; }
dl.rows dt { font-weight: 700; }
dl.rows dd { margin: 0; max-width: 33em; }

ol.steps { list-style: none; margin: 0; padding: 0; }
ol.steps li { display: grid; grid-template-columns: 1.75em 1fr; padding: 7px 0; border-top: var(--thin) solid var(--hair); }
ol.steps li:first-child { border-top: 0; padding-top: 0; }
ol.steps i { font-style: normal; }
ol.steps li > span { max-width: 35em; }
ol.steps b { margin-right: 0.5em; }

.mail { font-size: clamp(22px, 3.5cqw, 40px); line-height: 1.3; letter-spacing: -0.02em; }
.mail + p { margin-top: 10px; color: var(--sub); }
.pending { color: var(--sub); }

/* ---------- 맨 아랫줄 ---------- */
.foot { margin-top: auto; padding-top: clamp(56px, 9cqw, 96px); display: flex; justify-content: space-between; gap: 16px; font-size: 12.5px; line-height: 1.4; color: var(--sub); }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .top nav { gap: 1.1em; }
  table.cover th { width: 6.2em; }
  .doors { grid-template-columns: 1fr; row-gap: 34px; }
  .chapter { grid-template-columns: 1fr; row-gap: 8px; }
  .chapter > h2, .chapter > div { padding: 0; }
  dl.rows > div { grid-template-columns: 1fr; }
}

@media print {
  .page { min-height: 0; }
  a { text-decoration: none; }
}
