@charset "UTF-8";

/* 개인정보 팝업 스타일 */
#privacyPopup .modal-dialog {
    max-width: 900px;
    height: 90vh;
    max-height: 900px;
}

#privacyPopup .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

#privacyPopup .contWin {
    padding: 0;
    position: relative;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 팝업 헤더 */
#privacyPopup .popupTitle {
    background: linear-gradient(135deg, #6841fe 0%, #764ba2 100%);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    padding: 25px 30px;
    margin: 0;
    font-family: 'yg-jalnan', sans-serif;
    position: relative;
}

#privacyPopup .btnClosePopup {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    padding: 5px;
    width: 40px;
    height: 40px;
}

#privacyPopup .btnClosePopup:hover {
    transform: translateY(-50%) rotate(90deg);
    background: rgba(255,255,255,0.3);
}

#privacyPopup .btnClosePopup line {
    stroke: #fff;
    stroke-width: 3;
}

/* 스크롤 영역 */
#privacyPopup .scrollWrap {
    flex: 1;
    min-height: 500px;
    overflow-y: auto;
    padding: 30px;
}

/* 스크롤바 스타일 */
#privacyPopup .scrollWrap::-webkit-scrollbar {
    width: 8px;
}

#privacyPopup .scrollWrap::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#privacyPopup .scrollWrap::-webkit-scrollbar-thumb {
    background: #6841fe;
    border-radius: 10px;
}

#privacyPopup .scrollWrap::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* 개인정보 안내 텍스트 */
#privacyPopup .privacyInfoText {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    line-height: 1.8;
    color: #555;
    font-size: 14px;
    border-left: 4px solid #6841fe;
}

#privacyPopup .privacyInfoText p {
    margin: 0 0 15px 0;
    line-height: 1.8;
}

#privacyPopup .privacyInfoText p:last-child {
    margin-bottom: 0;
}

#privacyPopup .privacyInfoText .info-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

#privacyPopup .privacyInfoText strong {
    color: #6841fe;
    font-weight: 700;
}

#privacyPopup .privacyInfoText .legal-basis {
    background: rgba(255,255,255,0.8);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

#privacyPopup .privacyInfoText .legal-label {
    display: inline-block;
    background: #6841fe;
    color: #fff;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

#privacyPopup .privacyInfoText .legal-basis ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
    list-style: none;
}

#privacyPopup .privacyInfoText .legal-basis li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

#privacyPopup .privacyInfoText .legal-basis li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #6841fe;
    font-weight: bold;
}

/* 전체 동의 섹션 */
#privacyPopup .agreeAllCell {
    background: linear-gradient(135deg, #fde803 0%, #ffc107 100%);
    color: #333;
    padding: 18px 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 10px rgba(253, 232, 3, 0.3);
    font-size: 16px;
}

#privacyPopup .agreeAllCell span {
    font-family: 'yg-jalnan', sans-serif;
}

#privacyPopup .agreeAllCell input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    margin-left: 10px;
    accent-color: #6841fe;
}

/* 개별 동의 박스 */
#privacyPopup .agreeBox {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#privacyPopup .agreeBox:hover {
    border-color: #6841fe;
    box-shadow: 0 5px 20px rgba(104, 65, 254, 0.1);
}

#privacyPopup .agreeBox::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #6841fe 0%, #764ba2 100%);
}

/* 동의 제목 */
#privacyPopup .titleCell {
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

#privacyPopup .titleCell input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #6841fe;
    margin: 0;
    flex-shrink: 0;
}

#privacyPopup .titleCell .titleText {
    flex: 1;
    color: #333;
    font-weight: 700;
    word-break: keep-all;
    line-height: 1.4;
}

#privacyPopup .titleCell .badge-required {
    background: #ff4757;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: 600;
    flex-shrink: 0;
}

#privacyPopup .titleCell .badge-optional {
    background: #20bf6b;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: 600;
    flex-shrink: 0;
}

/* 동의 내용 텍스트 */
#privacyPopup .agreeTextCell {
    line-height: 2;
    color: #666;
    font-size: 14px;
    padding-top: 15px;
    max-height: 150px;
    overflow-y: auto;
}

#privacyPopup .agreeTextCell::-webkit-scrollbar {
    width: 6px;
}

#privacyPopup .agreeTextCell::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#privacyPopup .agreeTextCell::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}

#privacyPopup .agreeTextCell .bold {
    font-weight: 700;
    color: #333;
    background: linear-gradient(to bottom, transparent 60%, #fde803 60%);
    padding: 0 2px;
    display: inline-block;
    margin: 8px 0 5px 0;
}

/* 확인 버튼 */
#privacyPopup .btnConfirm {
    background: linear-gradient(135deg, #6841fe 0%, #764ba2 100%);
    color: #fff;
    padding: 18px 60px;
    border-radius: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    margin: 30px auto;
    display: table;
    transition: all 0.3s ease;
    font-family: 'yg-jalnan', sans-serif;
    box-shadow: 0 5px 15px rgba(104, 65, 254, 0.3);
}

#privacyPopup .btnConfirm:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(104, 65, 254, 0.4);
}

/* 모바일 반응형 */
@media (max-width: 767px) {
    #privacyPopup .titleCell {
        font-size: 14px;
    }
    
    #privacyPopup .titleCell .titleText {
        font-size: 14px;
        min-width: 0;
    }
    
    #privacyPopup .modal-dialog {
        max-width: 95%;
        margin: 10px auto;
        height: 95vh;
        max-height: none;
    }
    
    #privacyPopup .modal-content {
        height: 100%;
    }
    
    #privacyPopup .contWin {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    #privacyPopup .popupTitle {
        font-size: 18px;
        padding: 20px;
    }
    
    #privacyPopup .scrollWrap {
        padding: 20px;
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }
    
    #privacyPopup .btnClosePopup {
        right: 15px;
        width: 35px;
        height: 35px;
    }
    
    #privacyPopup .agreeAllCell {
        font-size: 14px;
        padding: 15px 20px;
    }
    
    #privacyPopup .agreeBox {
        padding: 20px;
    }
    
    #privacyPopup .titleCell {
        font-size: 14px;
    }
    
    #privacyPopup .agreeTextCell {
        font-size: 13px;
        max-height: 120px;
    }
    
    #privacyPopup .btnConfirm {
        padding: 15px 40px;
        font-size: 16px;
        flex-shrink: 0;
        margin: 20px auto;
    }
}

/* 애니메이션 효과 */
#privacyPopup.show .modal-dialog {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 체크박스 커스텀 스타일 */
#privacyPopup input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    vertical-align: middle;
}

#privacyPopup input[type="checkbox"]:checked {
    background: #6841fe;
    border-color: #6841fe;
}

#privacyPopup input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

#privacyPopup input[type="checkbox"]:hover {
    border-color: #6841fe;
}

/* 모달 배경 오버레이 */
#privacyPopup.modal {
    background-color: rgba(0, 0, 0, 0.7);
}

/* X 버튼 위치 조정 */
#privacyPopup .popupTitle {
    position: relative;
}

#privacyPopup .btnClosePopup {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}