/* =================================================================
 * text.css — 글 화면 (공지 · FAQ · 이용약관 · 개인정보처리방침, WBS 2.4.11)
 * 피그마에 없는 화면이라 기획안 쇼핑 가이드(guide.css)와 같은 글 모양으로 맞춘다 :
 * 가운데 폭 850 · 제목 Abhaya · 본문 Inter 18/30 · 구분선 #c4c4c4
 * ================================================================= */

.text-page { max-width: calc(850px + var(--page-margin) * 2); padding-bottom: 40px; }
.text-page .page-head { margin-bottom: 70px; }

/* ---- 약관 · 개인정보 본문 ---- */
.prose { font-family: var(--font-body); font-size: 18px; line-height: 30px; color: var(--fg); }
.prose h2 { margin: 56px 0 18px; font-family: var(--font-point); font-weight: 800; font-size: 30px; line-height: 1.2; color: var(--fg); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; font-family: var(--font-body); font-weight: 600; font-size: 19px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 26px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--brand); text-decoration: underline; }
.prose table { width: 100%; margin: 0 0 18px; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid #c4c4c4; text-align: left; vertical-align: top; }
.prose th { font-weight: 600; }

/* ---- 공지 · FAQ 목록 : 제목을 누르면 본문이 펼쳐진다 ---- */
.notices, .faqs { margin: 0; padding: 0; list-style: none; border-top: 1px solid #c4c4c4; font-family: var(--font-body); }
.notices > li, .faqs > li { border-bottom: 1px solid #c4c4c4; }

.notice-item__btn, .faq-item__btn {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	min-height: 72px;
	padding: 18px 4px;
	border: 0;
	background: none;
	font: inherit;
	color: inherit;
	text-align: start;
	cursor: pointer;
}
.notice-item__title, .faq-item__title { flex: 1 1 auto; font-weight: 600; font-size: 20px; line-height: 1.4; color: var(--efilow-ink); }
.notice-item__btn:hover .notice-item__title, .faq-item__btn:hover .faq-item__title { color: var(--brand); }
.notice-item__when { flex: 0 0 auto; font-size: 15px; color: var(--fg-subtle); }
.notice-item__mark, .faq-item__mark { flex: 0 0 auto; color: var(--brand); transition: transform .15s ease; }
.notice-item.is-open .notice-item__mark, .faq-item.is-open .faq-item__mark { transform: rotate(180deg); }

.notice-item__body, .faq-item__body {
	margin: 0;
	padding: 0 4px 26px;
	font-size: 18px;
	line-height: 30px;
	color: var(--fg);
	white-space: pre-wrap;
}
.notice-item__body img, .faq-item__body img { max-width: 100%; height: auto; border-radius: 13px; margin-top: 12px; }

.section__more { margin-block-start: 32px; text-align: center; }
.faqs__more { margin-block-start: 40px; text-align: center; font-size: 18px; color: var(--fg-muted); }
.faqs__more a { color: var(--brand); text-decoration: underline; }

@media (max-width: 899px) {
	.text-page .page-head { margin-bottom: 32px; }
	.prose { font-size: 15px; line-height: 1.7; }
	.prose h2 { margin: 36px 0 12px; font-size: 21px; }
	.prose h3 { font-size: 16px; }
	.prose table { font-size: 13px; }
	.notice-item__btn, .faq-item__btn { min-height: 56px; padding: 14px 2px; gap: 10px; }
	.notice-item__title, .faq-item__title { font-size: 16px; }
	.notice-item__when { font-size: 12px; }
	.notice-item__body, .faq-item__body { font-size: 15px; line-height: 1.7; padding-bottom: 18px; }
	.faqs__more { font-size: 15px; }
}
