/* 홈 밖의 글 페이지(약관·정책, 자주 묻는 질문, 문의하기). 색과 머리글·바닥글 톤은 홈(home.css)과 같게 맞춘다. 본문 글은 뷰(cshtml)에 있고 여기는 꾸밈만 준다. */
:root { --bg: #f8f9f6; --wrap: 1160px; --ink: #17231c; --text2: #687069; --line: #e3e8df; --body: #3a443d; --soft: #eef1ea; --i: 1.9em; }
.top { background: rgba(248, 249, 246, .84); box-shadow: 0 1px 0 var(--line); }
.foot { background: #f0f3ed; padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
.foot .company { font-size: 12px; }
.foot .note { max-width: 350px; font-size: 12px; }

.page { padding: 92px 0 96px; }
/* 문서 바꾸기: 앱 칩과 같은 알약 모양 */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 40px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 10px 16px; border-radius: 999px; background: #fff; color: var(--text2); font-size: 15px; font-weight: 600; box-shadow: 0 0 0 1px var(--line); transition: color .2s, background .2s; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: none; }

.page-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
/* 목차: 모바일은 접어 두고, 넓은 화면은 옆에 고정 */
.toc { font-size: 14px; line-height: 1.5; }
.toc summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-weight: 700; cursor: pointer; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after, .qa summary::after { content: ''; flex: none; width: 8px; height: 8px; border: solid var(--text2); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.toc details[open] summary::after, .qa[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.toc ol { list-style: none; padding: 8px 4px 0; }
.toc li a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text2); }
.toc li a:hover { background: var(--soft); color: var(--ink); }
.toc li.chap { padding: 16px 10px 4px; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.toc li.chap:first-child { padding-top: 4px; }
@media (min-width: 961px) {
  .page-grid { grid-template-columns: 232px minmax(0, 740px); gap: 72px; align-items: start; }
  .toc { position: sticky; top: 92px; max-height: calc(100vh - 116px); overflow-y: auto; }
  .toc summary { display: none; }
  .toc ol { padding-top: 0; }
}

/* 본문 */
.doc { color: var(--body); font-size: 16px; line-height: 1.8; }
.doc h1 { color: var(--ink); font-size: clamp(30px, 4vw, 42px); font-weight: 760; line-height: 1.2; letter-spacing: -.045em; margin-bottom: 28px; }
.doc h2.chap { margin: 56px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text2); font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.doc section { scroll-margin-top: 84px; }
.doc h3 { margin: 36px 0 12px; color: var(--ink); font-size: 19px; font-weight: 700; line-height: 1.45; letter-spacing: -.02em; }
.doc h2.chap + section h3 { margin-top: 18px; }
.doc p { margin-bottom: 6px; }
.doc .note { display: inline-block; margin: 6px 0 0; padding: 6px 14px; border-radius: 999px; background: var(--soft); color: var(--text2); font-size: 14px; }
.doc a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(20, 115, 230, .35); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc strong { color: var(--ink); font-weight: 700; }
/* 번호 항목: 번호 칸을 두고 글을 맞춘다. l1~l3은 원문의 들여쓰기 단계, cont는 번호 없이 이어지는 줄 */
.doc .li { display: flex; padding-left: calc(var(--lv, 1) * var(--i) - var(--i)); }
.doc .li .n { flex: none; width: var(--i); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.doc .li.cont { display: block; padding-left: calc(var(--lv, 1) * var(--i)); }
.doc .l2 { --lv: 2; }
.doc .l3 { --lv: 3; }
/* 표: 좁은 화면에서는 옆으로 밀어 본다 */
.doc .tbl { margin: 14px 0 18px; overflow-x: auto; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; overflow-wrap: normal; }
.doc table a { overflow-wrap: normal; }
.doc table.wide { min-width: 560px; }
.doc th, .doc td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
/* 세로로 합친 제목 칸 옆의 줄은 td 하나뿐이라 따로 왼쪽 선을 준다 */
.doc td + td, .doc th + td, .doc th + th, .doc tbody td:only-child { border-left: 1px solid var(--line); }
.doc thead th { background: var(--soft); color: var(--ink); font-weight: 700; white-space: nowrap; }
.doc tbody th { width: 30%; background: var(--soft); color: var(--ink); font-weight: 700; }
.doc tr:last-child > * { border-bottom: 0; }

[hidden] { display: none !important; }
.page .btn { height: 48px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; text-decoration: none; }
.page .btn:hover { background: #2a352e; }
.doc .intro { margin: -12px 0 0; color: var(--text2); font-size: 17px; line-height: 1.65; }

/* 자주 묻는 질문: 분류(h2.chap) 아래 질문을 눌러 펼친다 */
.faq h2.chap { margin-top: 48px; padding-top: 0; border-top: 0; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.5; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: #000; }
.qa .a { padding: 0 2px 20px; }
.qa .a p + p { margin-top: 10px; }
.help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 48px; padding: 24px 26px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.help p { margin: 0; color: var(--text2); font-size: 15px; }
.help b { display: block; color: var(--ink); font-size: 18px; }

/* 문의하기 */
.form { display: grid; gap: 20px; max-width: 600px; margin-top: 32px; }
.field label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 15px; font-weight: 700; }
.field input, .field textarea { width: 100%; padding: 13px 16px; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; transition: box-shadow .2s; }
.field textarea { display: block; min-height: 180px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 2px var(--accent); }
.field .hint { margin: 6px 0 0; color: var(--text2); font-size: 13px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree { padding: 18px 20px; border-radius: 14px; background: var(--soft); font-size: 14px; line-height: 1.7; }
.agree .agree-title { color: var(--ink); font-weight: 700; }
.agree dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; margin: 8px 0 10px; }
.agree dt { color: var(--ink); font-weight: 600; }
.check { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.form .btn { justify-self: start; min-width: 140px; }
.form .btn:disabled { opacity: .5; cursor: default; }
.form-err { margin: 0; color: #d93a2f; font-size: 14px; }
.done { margin-top: 32px; padding: 28px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.done h2 { color: var(--ink); font-size: 22px; font-weight: 760; letter-spacing: -.03em; }
.done p { margin: 6px 0 20px; }
.side { font-size: 14px; line-height: 1.6; }
.side dl { padding: 20px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.side dt { color: var(--text2); font-size: 13px; font-weight: 600; }
.side dd { margin: 2px 0 16px; color: var(--ink); font-size: 15px; font-weight: 700; }
.side dd:last-child { margin-bottom: 0; }
.side dd span { display: block; color: var(--text2); font-size: 13px; font-weight: 400; }
.side a:hover { color: var(--accent); }
.side .more { display: inline-block; margin-top: 14px; padding-left: 4px; color: var(--text2); font-weight: 600; }
.side .more::after { content: ' →'; }
@media (min-width: 961px) {
  .page-grid > .side { grid-column: 1; grid-row: 1; position: sticky; top: 92px; }
  .page-grid > .contact { grid-column: 2; }
}

@media (max-width: 480px) {
  .page { padding-top: 80px; }
  .tabs { margin: 0 calc(var(--pad) * -1) 28px; padding: 0 var(--pad); }
  .tabs a { padding: 9px 14px; font-size: 14px; }
  .doc { font-size: 15.5px; }
  .doc h3 { font-size: 18px; }
}

@media print {
  .top, .tabs, .toc, .foot { display: none; }
  .page { padding: 0; }
  .side, .help { display: none; }
  .page-grid { display: block; }
  .doc { color: #000; font-size: 11pt; }
}
