/* 이용약관 · 개인정보처리방침(화면 75 · 78 시안 Page-Terms · Page-Terms-M) — theme/f2/inc/terms.php.
   본문은 원본 내용 마크업 그대로라 글꼴 · 간격만 맞춤. 조항 구역(.f2-terms__sec) · 빈 문단(data-f2-blank)은 f2/lib/terms.php가 붙임 */
.f2-terms { display: flex; flex-direction: column; gap: 28px; padding: 56px var(--f2-main-pad) 120px; background: var(--f2-white); }   /* 좌우 = 본문 공통(1280 상자 안 48, 11/10 — 전 가운데 1152) */
.f2-terms__head { display: flex; flex-direction: column; gap: 6px; }
.f2-terms__title { margin: 0; font-size: 36px; line-height: 1.3; letter-spacing: -.5px; }
.f2-terms__date { margin: 0; color: var(--f2-text-sub); font-size: var(--f2-fs-14); }

/* 탭: PC 왼쪽 정렬 · 선택 = 검정 3px 밑줄 */
.f2-terms__tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--f2-line); }
.f2-terms__tab { display: flex; align-items: center; justify-content: center; height: 52px; margin-bottom: -1px; padding: 0 20px; border-bottom: 3px solid transparent; color: var(--f2-text-sub); font-size: var(--f2-fs-16); font-weight: 500; text-decoration: none; }
.f2-terms__tab:hover { color: var(--f2-black); text-decoration: none; }
.f2-terms__tab.is-on { border-bottom-color: var(--f2-black); color: var(--f2-black); font-weight: 700; }

.f2-terms__officer { margin: 0; padding: 12px 16px; border-radius: var(--f2-r-4); background: var(--f2-sub-bg); font-size: var(--f2-fs-13); }
.f2-terms__officer a { color: var(--f2-black); font-weight: 700; }
.f2-terms__wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: start; }
.f2-terms.has-toc .f2-terms__wrap { grid-template-columns: 260px minmax(0, 1fr); }
.f2-terms.has-toc .f2-terms__body { max-width: 868px; }   /* 긴 글 줄 길이 = 폭 1280 때 그대로(11/16 폭 1440: 목차 있음 868 · 없음 1184) */

/* 목차: PC 왼쪽 회색 상자, 따라 내려옴(머리 고정 높이만큼 아래) */
.f2-terms__toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; padding: 24px; border-radius: var(--f2-r-4); background: var(--f2-sub-bg); }
.f2-terms__toc summary { padding-bottom: 8px; color: var(--f2-text-sub); font-size: var(--f2-fs-13); font-weight: 700; letter-spacing: 1px; list-style: none; cursor: default; }
.f2-terms__toc summary::-webkit-details-marker { display: none; }
.f2-terms__toc ol { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.f2-terms__toc a { display: flex; align-items: center; min-height: 44px; padding: 4px 8px; border-radius: var(--f2-r-4); color: #333333; font-size: var(--f2-fs-14); line-height: 1.4; text-decoration: none; }
.f2-terms__toc .is-l2 a { padding-left: 20px; font-size: var(--f2-fs-13); }
.f2-terms__toc a:hover { background: var(--f2-white); color: var(--f2-black); text-decoration: none; }
.f2-terms__toc a[aria-current] { background: var(--f2-white); color: var(--f2-black); font-weight: 700; }

/* 조항(원본 내용 그대로): 구역 사이 구분선 · 제목 19px · 본문 16px / 1.85 */
.f2-terms__body { min-width: 0; max-width: 1184px; color: #333333; font-size: var(--f2-fs-16); line-height: 1.85; word-break: keep-all; overflow-wrap: anywhere; }
.f2-terms__body, .f2-terms__body * { font-family: var(--f2-font) !important; }
.f2-terms__body p { margin: 0 0 8px; }
.f2-terms__body [data-f2-blank] { display: none; }
.f2-terms__sec { display: flex; flex-direction: column; padding: 28px 0; border-bottom: 1px solid var(--f2-line); }
.f2-terms__sec:first-child { padding-top: 0; }
.f2-terms__sec > :last-child { margin-bottom: 0; }
.f2-terms__body [data-f2-toc] { margin: 0 0 12px; color: var(--f2-black); font-size: 19px; font-weight: 700; line-height: 1.4; letter-spacing: -.3px; scroll-margin-top: 96px; }
.f2-terms__body [data-f2-toc="2"] { font-size: var(--f2-fs-18); }
.f2-terms__body table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.f2-terms__body th, .f2-terms__body td { padding: 8px; border: 1px solid var(--f2-line); font-size: var(--f2-fs-14); }
.f2-terms__body img { max-width: 100%; height: auto; }

@media (max-width: 767px) {
  .f2-terms { gap: 16px; width: auto; max-width: none; margin: 0 16px; padding: 0 0 64px; }
  .f2-terms__tabs { order: -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0 -16px 8px; }   /* 반반 탭이 제목 위 */
  .f2-terms__tab { padding: 0 8px; font-size: var(--f2-fs-15); }
  .f2-terms__head { gap: 4px; }
  .f2-terms__title { font-size: 24px; }
  .f2-terms__date { font-size: var(--f2-fs-13); }
  .f2-terms.has-toc .f2-terms__wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* 목차: 펼치는 회색 상자, 줄 44px */
  .f2-terms__toc { position: static; max-height: none; overflow: hidden; padding: 0; border-radius: var(--f2-r-4); }
  .f2-terms__toc summary { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 16px; color: var(--f2-black); font-size: var(--f2-fs-15); letter-spacing: 0; cursor: pointer; }
  .f2-terms__toc summary::after { content: ""; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
  .f2-terms__toc details[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
  .f2-terms__toc ol { gap: 0; padding: 0 8px 8px; }
  .f2-terms__toc a { min-height: 44px; border-top: 1px solid var(--f2-line); border-radius: 0; }
  .f2-terms__toc a:hover, .f2-terms__toc a[aria-current] { background: none; }
  .f2-terms__body { font-size: var(--f2-fs-15); line-height: 1.8; }
  .f2-terms__sec { padding: 22px 0; }
  .f2-terms__body [data-f2-toc] { margin-bottom: 10px; font-size: 17px; scroll-margin-top: 72px; }
  .f2-terms__body [data-f2-toc="2"] { font-size: var(--f2-fs-16); }
}
