/* ============================================
   푸터 스타일
   ============================================ */

/* 푸터 컨테이너 */
.footer-container {
    padding: 40px 0;
    margin-top: 0;
}

/* 푸터 콘텐츠 */
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    position: relative;
}

/* 푸터 로고 */
.footer-logo {
    color: #231815;
}

.footer-logo-img {
    height: 80px;
    width: auto;
}

.footer-logo h2 {
    font-size: 40px;
    font-weight: 300;
    text-align: center;
    color: #231815;
    margin: 0;
    letter-spacing: -1px;
}

/* 푸터 정보 */
.footer-info {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.footer-info p {
    color: #666;
    margin: 4px 0;
    font-size: 13px;
    line-height: 1.6;
}

/* 푸터 법적 링크 */
.footer-legal {
    text-align: center;
    padding: 150px 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-legal-link {
    color: #000;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin: 0 15px;
}

.footer-legal-link:hover {
    text-decoration: underline;
}

/* 모달 오버레이 */
.footer-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* 모달 */
.footer-modal {
    background: #fff;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.footer-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.footer-modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.footer-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 0;
}

.footer-modal-close:hover {
    color: #333;
}

.footer-modal-body {
    padding: 24px;
    overflow-y: auto;
    line-height: 1.8;
    font-size: 14px;
    color: #444;
}

.footer-modal-body h3 {
    font-size: 15px;
    color: #222;
    margin: 24px 0 8px;
}

.footer-modal-body h3:first-child {
    margin-top: 0;
}

.footer-modal-body p {
    margin: 4px 0;
}

/* 반응형 디자인 */
@media (max-width: 900px) {
    .footer-container {
        padding: 0 0 80px; /* 하단 네비게이션 공간 확보 */
    }

    .footer-content {
        flex-wrap: wrap;
        gap: 8px;
        padding: 16px;
        align-items: center;
    }

    .footer-logo {
        width: 100%;
    }

    .footer-logo-img {
        height: 40px;
    }

    .footer-logo h2 {
        font-size: 24px;
        text-align: left;
        line-height: 1.2;
    }

    .footer-info {
        position: static;
        transform: none;
        flex: 1;
    }

    .footer-info p {
        font-size: 10px;
        margin: 2px 0;
        line-height: 1.4;
    }

    .footer-legal {
        padding: 20px 0;
    }
}