/* 1. 푸터 전체 레이아웃 */
.site-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 80px 20px 60px; /* 상단 여백을 넓게 잡아 이미지 느낌 재현 */
    font-family: 'Pretendard', -apple-system, sans-serif;
    border-top: 1px solid #1a1b1e;
}

.footer-top {
    display: flex;
    max-width: 1100px;
    margin: 0 auto;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

/* 2. 로고 영역 */
.footer-logo-area {
    flex: 1.5; /* 로고 공간을 넓게 확보 */
    min-width: 200px;
}

.footer-logo-area img {
    height: 38px; /* 이미지 속 로고 크기 재현 */
    display: block;
}

/* 3. 메뉴 섹션 스타일 */
.footer-nav {
    display: flex;
    flex: 3;
    justify-content: space-between;
    gap: 20px;
}

.footer-section {
    min-width: 120px;
    text-align: left;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 15px;
}

.footer-section a {
    color: #888888; /* 이미지처럼 차분한 회색 */
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #ffffff;
}

/* 4. 앱 다운로드 버튼 (이미지 뱃지 스타일) */
.download-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
}

.store-badge {
    display: inline-block;
    height: 40px;
    transition: opacity 0.2s;
}

.store-badge:hover {
    opacity: 0.8;
}

.store-badge img {
    height: 100%;
    border-radius: 6px;
    border: 1px solid #333;
}

/* 5. 기관 정보 (하단) */
.footer-bottom {
    max-width: 1100px;
    margin: 60px auto 0;
    padding-top: 40px;
    /* 이미지처럼 구분선 없이 텍스트만 깔끔하게 배치하거나 아주 흐린 선 사용 */
    font-size: 13px;
    color: #cccccc;
    line-height: 1.8;
    text-align: left;
}

.company-name {
    font-weight: 700;
    color: #dddddd;
    margin-bottom: 10px;
    display: block;
}

/* 모바일 반응형 footer 레이아웃 */
@media (max-width: 768px) {
    /* site-footer: 모바일 패딩 축소 */
    .site-footer {
        padding: 40px 24px 48px;
    }

    /* footer-top: 로고와 메뉴를 세로로 쌓음 */
    .footer-top {
        flex-direction: column;
        gap: 0;
    }

    /* footer-logo-area: 로고 아래 여백으로 메뉴와 간격 확보 */
    .footer-logo-area {
        margin-bottom: 36px;
    }

    /* footer-nav: flex → 2×2 grid로 전환 (지원/정책 1행, 문의하기/다운로드 2행) */
    .footer-nav {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 40px 20px;
    }

    /* 각 섹션의 grid 위치 명시 */
    .footer-nav .footer-section:nth-child(1) { grid-column: 1; grid-row: 1; } /* 지원 */
    .footer-nav .footer-section:nth-child(2) { grid-column: 2; grid-row: 1; } /* 정책 */
    .footer-nav .footer-section:nth-child(3) { grid-column: 1; grid-row: 2; } /* 문의하기 */
    .footer-nav .footer-section:nth-child(4) { grid-column: 2; grid-row: 2; } /* 다운로드 */

    /* footer-section h4: 모바일 제목 폰트 축소 */
    .footer-section h4 {
        font-size: 15px;
        margin-bottom: 18px;
    }

    /* footer-section a: 모바일 링크 폰트 축소 */
    .footer-section a {
        font-size: 13px;
    }

    /* store-badge: 모바일 뱃지 높이 축소 */
    .store-badge {
        height: 36px;
    }

    /* footer-bottom: 사업자 정보 영역 — 상단 구분선 추가, 폰트 축소 */
    .footer-bottom {
        margin-top: 48px;
        padding-top: 32px;
        font-size: 12px;
        line-height: 1.9;
        border-top: 1px solid #222;
    }
}