/* 푸터 법적 고지(개인정보처리방침/이용약관/이메일무단수집거부) 모달의 공통 스타일과 반응형 처리 */
.site-legal {
    position: fixed;
    inset: 0;
    width: min(820px, calc(100vw - 40px));
    max-width: none;
    max-height: min(750px, calc(100vh - 48px));
    margin: auto;
    padding: 0;
    color: var(--color-white);
    background: transparent;
    border: 0;
    overflow: visible;
}

.site-legal::backdrop {
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: site-legal-backdrop-in 0.2s ease-out;
}

.site-legal[open] {
    display: flex;
    animation: site-legal-in 0.24s ease-out;
}

.site-legal__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: inherit;
    padding: 40px 44px 36px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 0%, rgba(232, 69, 69, 0.12), transparent 34%),
        radial-gradient(circle at 88% 100%, rgba(47, 107, 255, 0.16), transparent 36%),
        linear-gradient(135deg, #242832 0%, #171b23 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
}

.site-legal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    font-size: 27px;
    font-weight: 300;
    line-height: 1;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-legal__close:hover,
.site-legal__close:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.32);
}

.site-legal__header {
    padding-right: 40px;
}

.site-legal__title {
    margin: 0;
    font-size: clamp(21px, 3vw, 25px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #fff;
}

.site-legal__divider {
    flex: none;
    height: 1px;
    margin: 20px 0 22px;
    background: rgba(255, 255, 255, 0.14);
}

.site-legal__body {
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.68);
    word-break: keep-all;
}

.site-legal__body p + p {
    margin-top: 14px;
}

@keyframes site-legal-in {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes site-legal-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 640px) {
    .site-legal__panel {
        padding: 36px 22px 26px;
        border-radius: 16px;
    }

    .site-legal__title {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-legal[open],
    .site-legal::backdrop {
        animation: none;
    }
}
