/* BASIC css start */
/* === Footer 공통 스타일 === */
.site-footer {
    border-top: 1px solid #EDEDED;
    padding: 30px 16px;
    font-size: 12px;
    color: var(--color-text-body);
    background-color: #fff;
    line-height: 18px;
    margin-top: 60px;
}

/* 제목 스타일 (고객센터, 계좌정보 등) */
.site-footer h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-heading);
    margin-bottom: 6px;
    line-height: 18px;
}

/* 강조 텍스트 */
.cs-center .phone {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-heading);
}

.cs-center .desc,
.bank-info p {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-body);
    margin-top: 4px;
}

/* === 모바일 (Mobile) 스타일 === */
/* Flexbox로 수직 정렬 및 순서 변경 */
.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* 구조 깨기: display contents를 사용하여 col-left/right라는 부모의 제약을 벗어나 자식들을 재배치 */
.col-left,
.col-right {
    display: contents;
}

/* 순서 재배치 (order 속성 사용) */
/* 1. 메뉴 (Nav) */
.footer-nav {
    order: 1;
    display: flex;
    gap: 20px;
}

@media (max-width: 400px) {
    .footer-nav {
        display: flex;
        justify-content: space-between;
        gap: 0;
    }
}

.footer-nav li {}

.footer-nav li a {
    color: var(--color-text-body);
    font-size: 13px;
    font-weight: 400;
}

/* 2. 고객센터 */
.cs-center {
    order: 2;
}

/* 3. 계좌정보 */
.bank-info {
    order: 3;
}

/* 4. 사업자정보 (맨 아래) */
.biz-info {
    order: 4;
    margin-top: 10px;
}

/* 모바일 로고 숨김 */
.footer-logo {
    display: none;
} 

/* 사업자 정보 토글 스타일 (모바일 디자인) */
.biz-toggle-title {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding-bottom: 2px;
}

.biz-toggle-title .arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    transform: rotate(225deg);
    margin-left: 8px;
    margin-bottom: -3px;
    transition: transform 0.3s;
}

.biz-toggle-title.active .arrow {
    transform: rotate(45deg);
    margin-bottom: 3px;
}

.biz-content p {
    margin-bottom: 4px;
    word-break: keep-all;
    color: var(--color-text-body);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

.biz-content p a {
    word-break: keep-all;
    color: var(--color-text-body);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

.biz-content .copyright {
    margin-top: 4px;
    color: var(--color-text-light);
}


/* === PC (Desktop) 스타일: 1024px 이상 === */
@media (min-width: 1024px) {

    .site-footer {
        padding: 40px 0 60px;
    }

    .footer-inner {
        flex-direction: row; 
        justify-content: space-between;
        align-items: flex-start;
        gap: 0;
        padding: 0 var(--layout-side-padding);
        max-width: calc(var(--layout-max-width) + (var(--layout-side-padding) * 2));
        width: 100%;
        margin: 0 auto;
    }

    /* display: contents 해제하고 다시 블록 형태로 잡기 */
    .col-left {
        display: block;
        width: 65%;
    }

    .col-right {
        display: flex;
        width: 35%;
        gap: 100px;
        justify-content: flex-end;
    }

    /* 순서 및 배치 리셋 */
    .footer-nav,
    .cs-center,
    .bank-info,
    .biz-info {
        order: 0;
    }

    /* 1. 로고 노출 */
    .footer-logo {
        font-size: 25px;
        color: var(--color-text-heading);
        display: block;
        margin-bottom: 20px;
    }

    .footer-logo img {
        max-height: 80px;
        display: block;
    }

    /* 2. 메뉴 스타일 변경 */
    .footer-nav {
        margin-bottom: 20px;
        gap: 32px;
        line-height: 20px;
    }

    /* 3. 사업자 정보 스타일 */
    .biz-info {
        margin-top: 0;
    }

    .biz-toggle-title { 
        display: none;
    }

    .biz-content {
        display: block;
    }

    .biz-content p {
        display: inline-block;
        margin-bottom: 5px;
        line-height: 18px;
        float: left;
    }

    .biz-content p::after {
        content: "";
        display: inline-block;
        margin-left: 10px;
    }

    .biz-content .copyright {
        display: block;
        margin-top: 5px;
    }

    .biz-content p:nth-child(3) {
        clear: left;
    }

    /* 4. 고객센터 & 계좌정보 */
    .cs-center,
    .bank-info {
        margin-top: 0;
    }

    .site-footer h3 {
        margin-bottom: 10px;
    }

    .cs-center .phone {
        font-size: 14px;
        line-height: 20px;
    }
} 
/* BASIC css end */

