/* footer / skin_1 — 기본형 */

.section-footer {
    width: 100%;
}

.section-footer__inner {
    max-width: var(--inner-width);
    margin: 0 auto;
    padding: 48px 0 32px;
}

/* 상호 별도표시 (display/color/font-size 는 render.php 에서 기기별 주입) */
.section-footer__brand {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.section-footer__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* 회사 정보 */
.section-footer__info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    font-style: normal;
    font-size: 13px;
    line-height: 1.6;
}

.section-footer__info-item {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.section-footer__info-item--full {
    width: 100%;
}

.section-footer__info-label {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.5;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-footer__link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

.section-footer__link:hover {
    opacity: 0.7;
}

/* SNS */
.section-footer__sns {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.section-footer__sns-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: background 0.2s;
}

.section-footer__sns-link:hover {
    background: rgba(255,255,255,0.2);
}

.section-footer__sns-svg {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.section-footer__sns-svg svg {
    width: 18px;
    height: 18px;
}

.section-footer__sns-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* 약관 + 패밀리사이트 묶음 (좌측 그룹) */
.section-footer__bottom-start {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* 패밀리사이트 */
.section-footer__family-select {
    font: inherit;
    font-size: 13px;
    color: inherit;
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 7px;
    padding: 6px 30px 6px 12px;
    cursor: pointer;
    max-width: 220px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s;
}

.section-footer__family-select:hover {
    border-color: rgba(255,255,255,0.4);
}

.section-footer__family-select option {
    color: #222222;
}

/* 저작권 */
.section-footer__bottom {
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.section-footer__copyright {
    font-size: 12px;
    opacity: 0.4;
}

/* 약관 링크 */
.section-footer__policy {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.section-footer__policy-link {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.section-footer__policy-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.section-footer__policy-sep {
    font-size: 11px;
    opacity: 0.3;
}

/* 약관 모달 */
.section-footer__modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.section-footer__modal.is-open {
    display: flex;
}

.section-footer__modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.section-footer__modal-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: #222222;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.section-footer__modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.section-footer__modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-right: auto;
}

.section-footer__modal-select {
    font: inherit;
    font-size: 12px;
    color: #444;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 7px;
    padding: 5px 26px 5px 10px;
    cursor: pointer;
    max-width: 150px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 9px center;
}

.section-footer__modal-close {
    background: none;
    border: 0;
    font-size: 26px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.15s;
}

.section-footer__modal-close:hover {
    color: #222;
}

.section-footer__modal-body {
    padding: 20px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.75;
    color: #444;
    white-space: normal;
    word-break: break-word;
}

/* 반응형 */


@media (max-width: 767px) {
    .section-footer__top {
        flex-direction: column;
        gap: 24px;
    }

    .section-footer__info {
        font-size: 12px;
        gap: 4px 14px;
    }

    .section-footer__sns {
        gap: 10px;
    }

    .section-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}