.footer {
    background-color: #ffffff;
    padding: 40px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 20px;
}

.footer-brand-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    width: 120px;
}

.footer-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 24px;
    font-family: 'Paperlogy', sans-serif;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff4d8d, #ff6b8b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.footer-social-link:hover {
    transform: translateY(-2px);
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    font-family: 'Paperlogy', sans-serif;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
    font-family: 'Paperlogy', sans-serif;
}

.footer-links a:hover {
    color: #ff4d8d;
}

.footer-contact-info {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    font-family: 'Paperlogy', sans-serif;
}

.footer-contact-info strong {
    color: #222;
    font-weight: 700;
}

.footer-bottom {
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    flex-direction: column;
}

.footer-copyright {
    color: #888;
    font-size: 14px;
    font-family: 'Paperlogy', sans-serif;
}

.footer-company-info-desktop {
    color: #666;
    font-size: 13px;
    font-family: 'Paperlogy', sans-serif;
    text-align: center;
    line-height: 1.4;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #d63384;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    font-family: 'Paperlogy', sans-serif;
}

.footer-legal a:hover {
    color: #ff4d8d;
}

/* 모바일 사업자 정보 (기본 숨김) */
.footer-company-mobile {
    display: none;
}

.company-info-toggle {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 13px;
    font-family: 'Paperlogy', sans-serif;
    margin-top: 12px;
}

.company-info-toggle:hover {
    color: #333;
}

.company-info-toggle .toggle-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.company-info-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.footer-company-info-mobile {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
    color: #666;
    font-size: 12px;
    font-family: 'Paperlogy', sans-serif;
    line-height: 1.6;
}

.footer-company-info-mobile p {
    margin: 4px 0;
}

.footer-company-info-mobile.show {
    max-height: 200px;
    margin-top: 8px;
}

/* 태블릿 반응형 */
@media screen and (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        text-align: left;
    }

    .footer-brand-section {
        grid-column: 1 / -1;
        align-items: flex-start;
    }

    .footer-logo {
        width: 100px;
    }

    .footer-section h4 {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .footer-section ul li {
        margin-bottom: 8px;
    }

    .footer-section ul li a {
        font-size: 14px;
    }
}

/* 모바일 반응형 */
@media screen and (max-width: 480px) {
    .footer {
        padding: 40px 0 30px;
    }

    .footer-container {
        padding: 0 16px;
    }

    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        text-align: left;
    }

    .footer-brand-section {
        grid-column: 1 / -1;
        align-items: flex-start;
    }

    .footer-logo {
        width: 90px;
    }

    /* 모바일에서 사업자 정보 표시 */
    .footer-company-mobile {
        display: block;
    }

    .footer-company-info-desktop {
        display: none;
    }

    .footer-section h4 {
        font-size: 14px;
        margin-bottom: 12px;
        font-weight: 600;
    }

    .footer-section ul li {
        margin-bottom: 6px;
    }

    .footer-section ul li a {
        font-size: 12px;
    }

    .footer-description {
        font-size: 13px;
    }

    .footer-bottom {
        gap: 12px;
    }

    .footer-copyright {
        font-size: 12px;
    }
}
