/*
 * 개인정보처리방침 / 이용약관 팝업(#popup1, #popup2) 전용 스타일.
 * element.css 의 .overlay-popup / .popup-content 는 짧은 안내문구용(30% 폭, 중앙정렬)이라
 * 전문 법률 문서에는 맞지 않아, .legal-popup 스코프로만 덮어쓴다.
 * 문제가 생기면 head.sub.php 에서 이 파일 로드만 빼면 즉시 원복된다.
 */

.legal-popup .popup-content {
  width: min(760px, 92vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.legal-popup .popup-content .content {
  max-height: calc(85vh - 70px);
  overflow-y: auto;
  text-align: left;
  padding: 20px 28px 28px;
}

.legal-popup .content h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #222;
}

.legal-popup .content h3:first-child {
  margin-top: 0;
}

.legal-popup .content h4 {
  margin: 18px 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.legal-popup .content p,
.legal-popup .content li {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

.legal-popup .content p.legal-intro {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.legal-popup .content ol,
.legal-popup .content ul {
  padding-left: 20px;
  margin: 8px 0 14px;
}

.legal-popup .content table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 16px;
  font-size: 13px;
}

.legal-popup .content table th,
.legal-popup .content table td {
  border: 1px solid #e2e2e2;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.legal-popup .content table th {
  background: #f7f7f7;
  font-weight: 700;
  white-space: nowrap;
}

.legal-popup .content p.legal-effective {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  color: #777;
  font-size: 13px;
}

@media (max-width: 767px) {
  .legal-popup .popup-content {
    width: 94vw;
    max-height: 90vh;
  }
  .legal-popup .popup-content .content {
    max-height: calc(90vh - 60px);
    padding: 16px 16px 24px;
  }
}

/* 푸터 개인정보처리방침 / 이용약관 링크
 * 주의: footer .flex .left address span 에 구분점(폭 1px) 규칙이 이미 있어(layout.css)
 * <span> 래퍼로 감싸면 그 규칙에 걸려 폭이 눌린다. 반드시 <a> 를 address 의 직계 자식으로 둘 것. */
footer address a.legal-link {
  margin-left: 8px;
  white-space: nowrap;
  text-decoration: underline;
}

footer address a.legal-link:hover {
  color: #06D85F;
}
