
/* ==========================================
   개인정보 유출 안내 팝업 - 최종 CSS
========================================== */

/* 공통 오버레이 */
.hd-privacy-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 25, 42, 0.62);
    box-sizing: border-box;
}

.hd-privacy-overlay.is-open {
    display: flex;
}

.hd-privacy-overlay [hidden] {
    display: none !important;
}

/* 공통 팝업 */
.hd-privacy-modal {
    display: flex;
    flex-direction: column;
    width: 560px;
    max-width: 100%;
    max-height: calc(100dvh - 48px);
    min-height: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 24px 75px rgba(0, 0, 0, 0.28);
    font-family: "Pretendard", "Noto Sans KR",
                 "Malgun Gothic", sans-serif;
    color: #263445;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.24s ease,
                transform 0.24s ease;
}

.hd-privacy-modal.is-leaving {
    opacity: 0;
    transform: translateY(45px);
}

.hd-privacy-modal.is-entering {
    opacity: 0;
    transform: translateY(-25px);
}

/* ==========================================
   최초 안내 팝업
========================================== */

/* 상단 타이틀 */
.hd-privacy-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 26px;
    background: #07549d;
    color: #fff;
}

.hd-privacy-header svg {
    flex-shrink: 0;
}

.hd-privacy-header h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

/* 최초 안내 본문 */
.hd-privacy-intro {
    padding: 30px 30px 26px;
}

.hd-privacy-intro p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    word-break: keep-all;
}

.hd-privacy-intro p + p {
    margin-top: 10px;
    color: #667487;
    font-size: 15px;
    line-height: 1.6;
}

/* 언어 선택 */
.hd-privacy-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #e5eaf0;
}

.hd-privacy-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hd-privacy-link-row .label {
    font-size: 15px;
    font-weight: 600;
    color: #263445;
}

.hd-privacy-lang-btn {
    border: 0;
    padding: 4px 0;
    background: transparent;
    color: #07549d;
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
    text-align: right;
}

.hd-privacy-lang-btn:hover {
    color: #0072eb;
}

/* ==========================================
   상세 안내 팝업 - 국문 / 영문
========================================== */

/* 팝업 크기 */
.hd-privacy-modal--detail {
    width: 760px;
    max-height: calc(100dvh - 250px);
}

/* 상세 타이틀 영역 */
.hd-privacy-detail-head {
    flex-shrink: 0;
    padding: 18px 34px 12px;
    background: #fff;
}

.hd-privacy-detail-head::before {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    margin-bottom: 14px;
    background: linear-gradient(
        90deg,
        #003087 0%,
        #07549d 80%,
        #00ad1d 100%
    );
}

.hd-privacy-detail-head h2 {
    margin: 0;
    color: #202b3b;
    text-align: center;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.03em;
    word-break: keep-all;
}

/* 본문 스크롤 영역 */
.hd-privacy-detail-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 24px 18px;
    font-size: 14px;
    line-height: 1.65;
    letter-spacing:-0.2px;
    color: #344054;
    word-break: keep-all;
}

.hd-privacy-detail-body p {
    margin: 0;
}

/* 번호 리스트 */
.hd-privacy-detail-body ol {
    margin: 0;
    padding-left: 22px;
}

.hd-privacy-detail-body li {
    margin-bottom: 8px;
    padding-left: 2px;
}

.hd-privacy-detail-body li:last-child {
    margin-bottom: 0;
}

.hd-privacy-detail-body li::marker {
    font-weight: 700;
    color: #003087;
}

/* 본문 링크 */
.hd-privacy-detail-body a {
    color: #07549d;
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: anywhere;
}

.hd-privacy-detail-body a:hover {
    color: #0072eb;
}

/* 영문 인트로 */
.hd-privacy-detail-intro {
    margin-bottom: 14px !important;
    font-size: 14px;
    line-height: 1.6;
    color: #59677a;
    text-align: center;
}

/* 담당부서 박스 - 왼쪽 파란 라인 제거 */
.hd-privacy-contact {
    margin-top: 10px;
    padding: 12px 16px;
    background: #f5f7fb;
    border: none;
    border-radius: 6px;
}

.hd-privacy-contact p + p {
    margin-top: 4px;
}

.hd-privacy-contact strong {
    color: #1d344f;
    font-weight: 700;
}

/* 하단 서명 */
.hd-privacy-signature {
    padding-top: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #263445;
    text-align: right;
}

/* ==========================================
   하단 버튼
========================================== */

.hd-privacy-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 10px 20px;
    background: #f6f8fb;
    border-top: 1px solid #e9edf2;
}

.hd-privacy-footer button {
    min-width: 96px;
    height: 38px;
    padding: 0 18px;
    border: 1px solid #d6dce5;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.hd-privacy-footer button:hover {
    background: #edf3fa;
    border-color: #aebfd1;
}

/* 상세 팝업: 이전으로 / 닫기 */
.hd-privacy-detail-footer {
    justify-content: space-between;
}

.hd-privacy-back {
    color: #07549d !important;
    border-color: #b9cade !important;
}

/* ==========================================
   모바일
========================================== */

@media (max-width: 600px) {
    .hd-privacy-overlay {
        padding: 12px;
    }

    .hd-privacy-modal {
        max-height: calc(100dvh - 24px);
    }

    /* 최초 팝업 */
    .hd-privacy-header {
        padding: 16px 20px;
    }

    .hd-privacy-header h2 {
        font-size: 18px;
    }

    .hd-privacy-intro {
        padding: 24px 20px;
    }

    .hd-privacy-intro p {
        font-size: 15px;
        line-height: 1.6;
    }

    .hd-privacy-intro p + p {
        font-size: 14px;
    }

    .hd-privacy-links {
        gap: 12px;
        margin-top: 22px;
        padding-top: 18px;
    }

    .hd-privacy-link-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .hd-privacy-lang-btn {
        font-size: 14px;
        text-align: left;
    }

    /* 상세 팝업 */
    .hd-privacy-modal--detail {
        width: 100%;
        max-height: calc(100dvh - 24px);
    }

    .hd-privacy-detail-head {
        padding: 16px 18px 12px;
    }

    .hd-privacy-detail-head::before {
        margin-bottom: 12px;
    }

    .hd-privacy-detail-head h2 {
        font-size: 17px;
        line-height: 1.4;
    }

    .hd-privacy-detail-body {
        padding: 4px 18px 16px;
        font-size: 13px;
        line-height: 1.6;
    }

    .hd-privacy-detail-body ol {
        padding-left: 20px;
    }

    .hd-privacy-detail-body li {
        margin-bottom: 12px;
    }

    .hd-privacy-detail-intro {
        font-size: 13px;
        margin-bottom: 12px !important;
    }

    .hd-privacy-contact {
        margin-top: 8px;
        padding: 10px 12px;
    }

    .hd-privacy-signature {
        font-size: 13px;
    }

    /* 하단 버튼 */
    .hd-privacy-footer {
        padding: 10px 14px;
    }

    .hd-privacy-footer button {
        min-width: 84px;
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }
}

/* 애니메이션 최소화 설정 */
@media (prefers-reduced-motion: reduce) {
    .hd-privacy-modal {
        transition: none;
    }
}




/* ==========================================
   개인정보 유출 팝업 - 모바일 상단 잘림 수정
========================================== */

@media (max-width: 600px) {

    /* 팝업을 화면 전체 기준으로 고정 */
    .hd-privacy-overlay {
        position: fixed !important;
        inset: 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;

        width: 100% !important;
        height: 100dvh !important;

        z-index: 2147483647 !important;

        padding: 16px 12px !important;
        box-sizing: border-box;

        align-items: center !important;
        justify-content: center !important;
        overflow: hidden;
    }

    .hd-privacy-overlay.is-open {
        display: flex !important;
    }

    /* 팝업 전체 크기 */
    .hd-privacy-modal {
        position: relative;
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(100dvh - 32px) !important;
        min-height: 0;

        display: flex;
        flex-direction: column;

        margin: 0 !important;
        overflow: hidden;
        border-radius: 12px;
        box-sizing: border-box;
    }

    /* 상세 팝업 */
    .hd-privacy-modal--detail {
        width: 100% !important;
        max-height: calc(100dvh - 32px) !important;
    }

    /* 상단 제목 영역은 스크롤되지 않음 */
    .hd-privacy-detail-head {
        position: relative;
        flex: 0 0 auto;

        padding: 18px 20px 14px !important;
        background: #fff;
        z-index: 2;
    }

    .hd-privacy-detail-head::before {
        margin-bottom: 12px;
    }

    .hd-privacy-detail-head h2 {
        margin: 0;
        font-size: 18px;
        line-height: 1.4;
        text-align: center;
    }

    /* 본문만 스크롤 */
    .hd-privacy-detail-body {
        flex: 1 1 auto;
        min-height: 0;

        overflow-y: auto !important;
        overflow-x: hidden;

        padding: 12px 20px 20px !important;

        font-size: 14px;
        line-height: 1.65;

        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* 하단 버튼은 고정 */
    .hd-privacy-footer {
        position: relative;
        flex: 0 0 auto;

        padding: 12px 16px !important;
        background: #f6f8fb;

        z-index: 2;
    }

    .hd-privacy-footer button {
        height: 40px;
        font-size: 14px;
    }
}

/* 높이가 낮은 모바일 화면 */
@media (max-width: 600px) and (max-height: 700px) {
    .hd-privacy-overlay {
        padding: 8px !important;
    }

    .hd-privacy-modal,
    .hd-privacy-modal--detail {
        max-height: calc(100dvh - 16px) !important;
    }

    .hd-privacy-detail-head {
        padding: 12px 18px 10px !important;
    }

    .hd-privacy-detail-head h2 {
        font-size: 16px;
    }

    .hd-privacy-detail-body {
        padding: 8px 18px 12px !important;
    }
}


/* ==========================================
   개인정보 유출 상세 팝업 - 모바일 최적화
========================================== */
@media (max-width: 600px) {

    /* 팝업 전체 배경 */
    .hd-privacy-overlay {
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100dvh !important;
        padding: 16px !important;
        box-sizing: border-box;
        align-items: center !important;
        justify-content: center !important;
        z-index: 2147483647 !important;
    }

    /* 최초 안내 팝업은 내용에 맞는 높이 유지 */
    .hd-privacy-modal {
        width: 100% !important;
        max-width: 100% !important;
        max-height: calc(100dvh - 32px) !important;
        min-height: 0;
        box-sizing: border-box;
    }

    /* 상세 팝업만 높이 축소 */
    .hd-privacy-modal--detail {
        width: 100% !important;
        height: 70dvh !important;
        max-height: 640px !important;
        min-height: 0 !important;

        display: flex;
        flex-direction: column;
        overflow: hidden;
        border-radius: 12px;
    }

    /* 상단 제목 - 고정 */
    .hd-privacy-detail-head {
        flex: 0 0 auto;
        padding: 16px 20px 12px !important;
        background: #fff;
    }

    .hd-privacy-detail-head::before {
        margin-bottom: 10px;
    }

    .hd-privacy-detail-head h2 {
        font-size: 17px;
        line-height: 1.35;
        margin: 0;
    }

    /* 본문 내용만 스크롤 */
    .hd-privacy-detail-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto !important;
        overflow-x: hidden;
        padding: 12px 20px 18px !important;

        font-size: 14px;
        line-height: 1.65;

        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* 문단 간격 축소 */
    .hd-privacy-detail-body li {
        margin-bottom: 12px;
    }

    /* 하단 버튼 - 고정 */
    .hd-privacy-detail-footer {
        flex: 0 0 auto;
        padding: 10px 16px !important;
        background: #f6f8fb;
    }

    .hd-privacy-detail-footer button {
        height: 38px;
        font-size: 14px;
    }
}

/* 높이가 낮은 모바일 기기 */
@media (max-width: 600px) and (max-height: 650px) {
    .hd-privacy-modal--detail {
        height: 75dvh !important;
    }
}


/* 개인정보 유출 여부 조회 버튼 */
.hd-privacy-check {
    margin-top: 24px;
}

.hd-privacy-check-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    min-height: 50px;
    padding: 13px 20px;
    box-sizing: border-box;

    background: #07549d;
    border: 1px solid #07549d;
    border-radius: 7px;

    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;

    transition: background .2s ease,
                border-color .2s ease;
}

.hd-privacy-check-btn:hover {
    background: #003087;
    border-color: #003087;
}

.hd-privacy-check-btn span {
    font-size: 20px;
    line-height: 1;
}

/* 모바일 */
@media (max-width: 600px) {
    .hd-privacy-check {
        margin-top: 20px;
    }

    .hd-privacy-check-btn {
        min-height: 46px;
        padding: 12px 16px;
        font-size: 15px;
    }
}





























/* 개인정보 유출 조회 레이어 팝업 */
.hd-check-layer {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hd-check-layer.is-open {
    display: flex;
}

.hd-check-layer__dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.hd-check-layer__modal {
    position: relative;
    width: 680px;
    max-width: 100%;
    height: 780px;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hd-check-layer__modal iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

.hd-check-layer__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #222;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hd-check-layer {
        padding: 12px;
    }

    .hd-check-layer__modal {
        width: 100%;
        height: 85dvh;
        max-height: 85dvh;
        border-radius: 12px;
    }
}
