/* ========================================
   nit_footer CSS 스타일
   ======================================== */

/* 푸터 기본 스타일 */
.nit_footer {
    background: #f5f6fa;
    border-top: 1px solid #e0e2e7;
}

.nit_footer-container {
    display: flex;
    align-items: center;
    padding: 12px 0 10px 0;
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    gap: 36px;
    position: relative;
}

.nit_footer-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.nit_footer-logo img {
    height: 35px;
    width: auto;
}

.nit_footer-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.nit_footer-links {
    margin-bottom: 6px;
    display: flex;
    gap: 18px;
    align-items: center;
}

.nit_footer-link {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nit_footer-link:hover {
    color: #0066cc;
}

.nit_footer-divider {
    color: #d0d2d7;
    font-size: 12px;
}

.nit_footer-info {
    margin-bottom: 2px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    align-items: center;
    font-size: 13px;
    color: #444;
}

.nit_footer-info-item {
    color: #444;
}

.nit_footer-info-divider {
    color: #d0d2d7;
}

.nit_footer-copyright {
    display: block;
    margin-top: 4px;
    color: #888;
    font-size: 12px;
    letter-spacing: 0.01em;
}

.nit_footer-watermark {
    position: absolute;
    right: 18px;
    bottom: 8px;
    height: 30px;
    width: auto;
    opacity: 0.13;
    pointer-events: none;
    z-index: 0;
}

/* 팝업 스타일 */
.nit_policy-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.nit_policy-popup-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.nit_policy-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: #f5f6fa;
    border-bottom: 1px solid #e0e2e7;
}

.nit_policy-popup-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.nit_policy-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nit_policy-popup-close:hover {
    background-color: #e0e2e7;
    color: #333;
}

.nit_policy-popup-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.6;
}

.nit_policy-popup-body h4 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #0066cc;
}

.nit_policy-popup-body h4:first-child {
    margin-top: 0;
}

.nit_policy-popup-body p {
    color: #444;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.nit_policy-popup-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.nit_policy-popup-body li {
    color: #444;
    font-size: 14px;
    margin: 8px 0;
    line-height: 1.5;
}

.nit_policy-popup-body strong {
    color: #333;
    font-weight: 600;
}

/* 애니메이션 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 스크롤바 스타일 */
.nit_policy-popup-body::-webkit-scrollbar {
    width: 8px;
}

.nit_policy-popup-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.nit_policy-popup-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.nit_policy-popup-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .nit_footer-container {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
        text-align: center;
        position: relative;
    }
    
    .nit_footer-logo {
        order: 1;
        margin-bottom: 10px;
    }
    
    .nit_footer-logo img {
        height: 30px;
        width: auto;
    }
    
    .nit_footer-content {
        order: 2;
    }
    
    .nit_footer-links {
        justify-content: center;
    }
    
    .nit_footer-info {
        justify-content: center;
    }
    
    .nit_footer-watermark {
        position: static;
        order: 3;
        margin: 15px auto 0;
        opacity: 0.3;
        height: 25px;
        width: auto;
        display: block;
    }
}

@media (max-width: 768px) {
    .nit_footer-container {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
        text-align: center;
        position: relative;
    }
    
    .nit_footer-logo {
        order: 1;
        margin-bottom: 10px;
    }
    
    .nit_footer-logo img {
        height: 30px;
        width: auto;
    }
    
    .nit_footer-content {
        order: 2;
    }
    
    .nit_footer-links {
        justify-content: center;
    }
    
    .nit_footer-info {
        justify-content: center;
    }
    
    .nit_footer-watermark {
        position: static;
        order: 3;
        margin: 15px auto 0;
        opacity: 0.3;
        height: 25px;
        width: auto;
        display: block;
    }
    
    .nit_policy-popup-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }

    .nit_policy-popup-header {
        padding: 15px 20px;
    }

    .nit_policy-popup-header h3 {
        font-size: 16px;
    }

    .nit_policy-popup-body {
        padding: 20px;
        max-height: 70vh;
    }

    .nit_policy-popup-body h4 {
        font-size: 15px;
        margin: 20px 0 12px 0;
    }

    .nit_policy-popup-body p,
    .nit_policy-popup-body li {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .nit_footer-container {
        padding: 15px 0;
        gap: 15px;
    }
    
    .nit_footer-logo img {
        height: 25px;
    }
    
    .nit_footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .nit_footer-info {
        flex-direction: column;
        gap: 5px;
    }
    
    .nit_footer-watermark {
        height: 20px;
        opacity: 0.4;
        margin: 10px auto 0;
    }
    
    .nit_policy-popup-content {
        width: 98%;
        margin: 5% auto;
    }

    .nit_policy-popup-header {
        padding: 12px 15px;
    }

    .nit_policy-popup-body {
        padding: 15px;
    }
}
