/* ###################################################################### */
/* [FOOTER START] 푸터 스타일 (Mobile Optimized + Link Icons) */
/* ###################################################################### */

.footer {
    background-color: #0a0a0a;
    color: #fff;
    padding: 80px 0 40px;
    position: relative;
    z-index: 10;
    border-top: 1px solid #1a1a1a;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* --- 상단 영역 (Wrapper) --- */
.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid #222;
}

/* 1. 브랜드 컬럼 */
.footer-brand-col {
    flex: 0 0 300px;
}

.footer-logo {
    width: 80px;
    margin-bottom: 15px;
    display: block;
}

.footer-slogan {
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px; height: 36px;
    border: 1px solid #333;
    background-color: transparent;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #888;
    transition: all 0.3s ease;
}

/* 2. 링크 & 정보 컬럼 */
.footer-links-col {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 80px;
}

.link-group h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 25px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

/* 제목 밑에 살짝 포인트 (오렌지 점) */
.link-group h4::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 20px; height: 2px;
    background-color: #f57309;
}

.footer-nav li { margin-bottom: 12px; }

.footer-nav li a {
    color: #999;
    font-size: 0.9rem;
    transition: all 0.3s ease; 
    display: inline-block;
}

/* 연락처 스타일 상세 */
.contact-group { min-width: 220px; }

.address-box { margin-bottom: 20px; display: flex; flex-direction: column; gap: 6px; }

/* [수정] 주소 및 이메일 링크 스타일 (아이콘 포함) */
.addr-link, .email-link {
    display: inline-flex; /* 아이콘과 텍스트 가로 정렬 */
    align-items: center;
    gap: 8px; /* 텍스트와 아이콘 사이 간격 */
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.3s;
    text-decoration: none;
}
.email-link { color: #777; font-size: 0.85rem; }

/* [추가] 새창 아이콘 스타일 */
.link-icon {
    font-size: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}

.f-phones {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fp-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    
    /* [핵심] 줄바꿈 절대 금지 (모바일 최적화) */
    white-space: nowrap; 
}

.fp-label {
    color: #f57309; 
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.fp-num {
    color: #bbb;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s;
}
.fp-num.main { color: #fff; font-weight: 700; font-size: 1rem; }

/* 3. 하단 바 (Bottom) */
.footer-bottom {
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.footer-terms { display: flex; align-items: center; }
.footer-terms a { color: #888; transition: color 0.3s; font-weight: 500; }
.footer-terms .bar { margin: 0 12px; color: #333; font-size: 0.7rem; }
.copyright { color: #444; }


/* --- [중요] 반응형 (Mobile & Tablet) --- */
@media (max-width: 1024px) {
    .footer-links-col { gap: 40px; }
}

@media (max-width: 768px) {
    .footer { padding: 60px 0 40px; }
    .footer-container { padding: 0 25px; }
    
    /* 세로 배치 */
    .footer-wrapper {
        flex-direction: column;
        align-items: flex-start; 
        gap: 50px;
        padding-bottom: 40px;
    }

    .footer-brand-col { flex: none; width: 100%; }
    
    .footer-links-col {
        flex-direction: column; 
        align-items: flex-start;
        gap: 50px;
        width: 100%;
        justify-content: flex-start;
    }

    /* 하단 바도 세로 배치 & 왼쪽 정렬 */
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start; 
        gap: 15px;
        padding-top: 25px;
    }
    
    .copyright { color: #333; margin-top: 5px; }
}


/* --- 호버 효과 (PC Only) --- */
@media (hover: hover) and (pointer: fine) {
    .social-link:hover {
        background-color: #f57309; border-color: #f57309; color: #fff;
    }
    .footer-nav li a:hover { 
        color: #fff; 
        transform: translateX(5px); 
    }
    .fp-num:hover { color: #fff; }
    .footer-terms a:hover { color: #f57309; }
    
    /* [수정] 주소/이메일 호버 시 오렌지색 + 아이콘 애니메이션 */
    .addr-link:hover, .email-link:hover { color: #f57309; }
    .addr-link:hover .link-icon, .email-link:hover .link-icon {
        opacity: 1;
        transform: translate(2px, -2px); /* 우상단으로 찌르는 모션 */
    }
}


/* --- 모달 스타일 (기존 유지) --- */
.legal-modal {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.85);
    z-index: 9999; justify-content: center; align-items: center;
    backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s;
}
.legal-modal.show { display: flex; opacity: 1; }
.legal-content {
    background-color: #1a1a1a; width: 90%; max-width: 500px; max-height: 70vh;
    border: 1px solid #333; display: flex; flex-direction: column;
}
.legal-header {
    padding: 20px; border-bottom: 1px solid #222;
    display: flex; justify-content: space-between; align-items: center;
}
.legal-header h3 { color: #fff; font-size: 1.1rem; font-family: 'Oswald', sans-serif; }
.legal-close { color: #666; font-size: 24px; }
.legal-body { padding: 25px; overflow-y: auto; color: #aaa; font-size: 0.9rem; line-height: 1.6; }
.legal-body h4 { color: #fff; margin: 20px 0 10px; font-size: 1rem; }
.legal-body h4:first-child { margin-top: 0; }