/* layout/footer.css — Footer (가로 리듬 = 본문 max-w-[1300px] + px-6) */
.footer__inner {
    width: 100%;
    max-width: 1300px;
    margin-inline: auto;
    padding-inline: var(--space-6);
}

/* ── 푸터 네비 ── */
.footer-top,
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .footer-top {
        flex-direction: row;
        justify-content: flex-start;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.footer-brand a {
    display: flex;
    align-items: center;
    line-height: 0;
}

.footer-brand img {
    display: block;
}

.footer-nav {
    --nav-link-base: var(--gray-900);
    --nav-underline-bottom: 2px;
    --nav-underline-height: 1px;
    --nav-link-fill-duration: 0.3s;
    align-items: center;
}

.footer-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 1.5rem;
    padding: 0;
    font-size: var(--text-ui-md);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .footer-nav-link {
        font-size: 1.0625rem;
    }
}

.footer-nav-link::after {
    bottom: 0;
}

.footer-nav-link--privacy {
    --nav-link-base: var(--brand-gold);
}

.footer-legal {
    max-width: 100%;
    font-size: var(--text-footer-legal);
    line-height: 1.6;
    color: var(--text-subtle);
    text-align: center;
    overflow-wrap: anywhere;
}

@media (min-width: 1024px) {
    .footer-legal {
        text-align: left;
    }
}

.footer-legal__break--desktop {
    display: none;
}

.footer-legal__break--mobile {
    display: block;
}

@media (min-width: 1024px) {
    .footer-legal__break--desktop {
        display: block;
    }

    .footer-legal__break--mobile {
        display: none;
    }
}

.footer-legal__line {
    margin: 0;
}

.footer-legal__brand {
    font-weight: 700;
    color: var(--text-muted);
}

.footer-legal__verify-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline-start: 0.25rem;
    padding-block: 0.1875rem;
    padding-inline: 0.4375rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.25rem;
    background-color: var(--white);
    color: var(--btn-dark);
    font-size: var(--text-ui-sm);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: baseline;
    position: relative;
    top: -0.125em;
    cursor: pointer;
    transition:
        background-color var(--btn-fill-duration),
        border-color var(--btn-fill-duration);
}

.footer-legal__verify-btn:hover,
.footer-legal__verify-btn:focus-visible {
    background-color: var(--surface-hover);
}

.footer-legal__verify-btn:focus-visible {
    outline: 2px solid var(--brand-green);
    outline-offset: 1px;
}

@media (min-width: 768px) {
    .footer-legal__verify-btn {
        font-size: var(--text-ui-sm);
        padding-block: 0.25rem;
        padding-inline: 0.5rem;
    }
}

.footer-legal__copyright {
    margin: 1.25rem 0 0;
    letter-spacing: -0.02em;
}

.footer-bottom__escrow {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.shop-escrow-mark {
    display: inline-flex;
    line-height: 0;
}

.shop-escrow-mark img {
    display: block;
    width: 3.75rem;
    height: 3.75rem;
}
