/* 법적 고지(11-30 — 스튜디오 › 법적 고지): 처리방침 본문(.contec-legal — 스튜디오 편집기 HTML)과 GA 동의 띠(.contec-consent, components/Consent.tsx).
   옛 틀 CSS 는 목록 점이 없고 글이 가운데라 긴 법률 글은 왼쪽 정렬·글머리·칸 테두리로. 띠는 바닥글 톤(검정·흰 글자), 팝업(z 1000) 아래 */
.contec-legal { line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; text-align: left; }
.contec-legal p { margin: 0 0 10px; }
.contec-legal h2, .contec-legal h3, .contec-legal h4 { margin: 26px 0 10px; font-weight: 700; font-size: 1.1em; line-height: 1.5; }
.contec-legal ul, .contec-legal ol { margin: 0 0 10px; padding-left: 1.4em; }
.contec-legal li { display: list-item; list-style: disc outside; margin-bottom: 6px; }
.contec-legal ol > li { list-style: decimal outside; }
.contec-legal li > p, .contec-legal td > p, .contec-legal th > p { margin: 0; }
.contec-legal table { width: 100%; border-collapse: collapse; font-size: .95em; line-height: 1.6; margin: 0 0 14px; }
.contec-legal th, .contec-legal td { border: 1px solid #d9d9d9; padding: 10px 12px; vertical-align: top; text-align: left; }
.contec-legal th { background: #f3f4f6; font-weight: 700; }
.contec-legal a { color: #004da0; text-decoration: underline; }
.contec-legal .contec-legal-yn { white-space: nowrap; } /* 위탁 표 "국외 이전" 칸(예(7항)·아니요)이 폰에서 글자 중간에 끊기지 않게 */
.contec-legal-prev { margin: 28px 0 0; border-top: 1px solid #d9d9d9; padding-top: 14px; }
.contec-legal-prev summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
@media (max-width: 640px) {
  .contec-legal th, .contec-legal td { padding: 8px; }
}

/* 바닥글 "쿠키 설정" — 운영 도메인에서 GA 가 켜졌을 때만(Consent 가 html[data-consent] 를 붙임). 링크 자체는 footer.html 에 숨겨 둠 */
html[data-consent] footer .foo-cookie { display: inline !important; }

.contec-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: rgba(0, 0, 2, .96); color: #fff; box-shadow: 0 -6px 20px rgba(0, 0, 0, .3); font-size: 15px; line-height: 1.6; }
.contec-consent-in { position: relative; max-width: 1520px; margin: 0 auto; padding: 16px 64px 16px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; max-height: 70vh; overflow-y: auto; outline: none; }
.contec-consent-text { flex: 1 1 420px; margin: 0; word-break: keep-all; }
.contec-consent-text a { color: #fff; text-decoration: underline; white-space: nowrap; }
.contec-consent-more { flex-basis: 100%; margin: 0; display: grid; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .85); }
.contec-consent-more dt { font-weight: 700; color: #fff; }
.contec-consent-more dd { margin: 0; overflow-wrap: anywhere; word-break: keep-all; }
.contec-consent-btns { display: flex; align-items: center; gap: 10px; flex: none; }
.contec-consent-btn { min-width: 96px; height: 42px; padding: 0 18px; border: 1px solid #fff; border-radius: 4px; background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.contec-consent-link { padding: 8px 4px; border: 0; background: none; color: #fff; font: inherit; text-decoration: underline; cursor: pointer; }
.contec-consent-x { position: absolute; top: 10px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: #fff; opacity: .85; cursor: pointer; }
@media (hover: hover) { .contec-consent-btn:hover { background: #fff; color: #000002; } .contec-consent-x:hover { opacity: 1; } }
.contec-consent-btn:focus-visible, .contec-consent-link:focus-visible, .contec-consent-x:focus-visible, .contec-consent-text a:focus-visible { outline: 2px solid #4d9fff; outline-offset: 2px; }
@media (max-width: 640px) {
  .contec-consent { font-size: 14px; }
  .contec-consent-in { padding: 14px 52px 14px 16px; }
  .contec-consent-btns { width: 100%; }
  .contec-consent-btn { flex: 1 1 0; min-width: 0; }
  .contec-consent-x { top: 6px; right: 6px; }
}
