/* Footer 컴포넌트 전용 스타일 - 3영역 구성 */
.site-footer {
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 20px 0 50px 0;
    margin-top: 0px;
    color: #333;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 링크 메뉴 영역 */
.footer-links-area {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.footer-links-area a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links-area a:hover {
    color: #007bff;
}

.footer-links-area .divider {
    color: #ccc;
    margin: 0 15px;
}

/* 기업정보 & 고객센터 1줄 배치 */
.info-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* 기업정보 영역 (좌정렬) */
.company-info {
    text-align: left;
    flex: 1;
}

.company-info p {
    margin: 5px 0;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
}

.company-info p:first-child {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}
.company-info p strong img {
    max-height: 30px;
}

/* 고객센터 영역 (우정렬) */
.customer-service {
    text-align: right;
    flex-shrink: 0;
}

.customer-service p {
    margin: 2px 0;
    font-size: 0.9rem;
    color: #666;
}

.customer-service p:first-child {
    color: #333;
    margin-bottom: 8px;
}

.customer-service .phone {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

/* 반응형 */
@media (max-width: 768px) {
    .site-footer {
        padding: 25px 0;
    }

    .footer-links-area .divider {
        margin: 0 10px;
    }

    .footer-links-area a {
        font-size: 14px;
    }

    .info-section {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
        padding-bottom: 20px;
    }

    .company-info,
    .customer-service {
        text-align: center;
    }

    .company-info p,
    .customer-service p {
        font-size: 0.75rem;
        margin:0;
    }

    .customer-service .phone {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 20px 0;
    }

    .footer-links-area .divider {
        margin: 0 8px;
    }

    .footer-links-area a {
        font-size: 0.75rem;
    }

    .company-info p strong img {
        max-height: 25px;
    }
}

/* 개인정보처리방침 모달 스타일 */
.privacy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: white;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden !important;
    animation: modalFadeIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

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

.modal-close:hover {
    background: #e9ecef;
    color: #333;
}

.modal-body {
    max-height: calc(80vh - 80px);
    overflow-y: auto;
    padding: 0;
}

.privacy-content {
    padding: 30px;
    line-height: 1.6;
}

.privacy-content h3 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #007bff;
}

.privacy-content h3:first-child {
    margin-top: 0;
}

.privacy-content p {
    margin: 10px 0;
    color: #555;
    font-size: 0.9rem;
}

.privacy-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.privacy-content li {
    margin: 5px 0;
    color: #555;
    font-size: 0.9rem;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 85vh;
        margin: 10px;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .privacy-content {
        padding: 20px;
    }

    .privacy-content h3 {
        font-size: 1rem;
    }

    .privacy-content p,
    .privacy-content li {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 12px 15px;
    }

    .privacy-content {
        padding: 15px;
    }

    .modal-close {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }
}

/* Top 버튼 스타일 */
.top-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #4fc3f7;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(79, 195, 247, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.top-button:hover {
    background: #29b6f6;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 195, 247, 0.4);
}

.top-button i {
    font-size: 16px;
    font-weight: bold;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .top-button {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .top-button i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .top-button {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .top-button i {
        font-size: 12px;
    }
}