/* VOID GACHA · 全局官方資訊頁尾 */

#screen-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.void-app-main {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    overflow-anchor: none;
}

.void-global-footer {
    flex-shrink: 0;
    width: auto;
    margin-top: auto;
    margin-left: calc(-1 * (var(--void-side-nav, 102px) + 20px));
    margin-right: calc(-1 * (var(--void-side-nav, 102px) + 20px));
    background: rgba(8, 4, 15, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 240, 255, 0.15);
    padding: 30px calc(var(--void-side-nav, 102px) + 20px) 36px calc(var(--void-side-nav, 102px) + 20px);
    margin-top: 50px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-info,
.footer-copyright {
    width: 100%;
    text-align: center;
}

.footer-logo {
    font-family: 'Urbanist', 'Orbitron', 'Noto Sans TC', sans-serif;
    color: #ffd700;
    font-size: 18px;
    letter-spacing: 2px;
    margin: 0 0 5px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
    text-align: center;
    width: 100%;
}

.footer-info p,
.footer-copyright p {
    color: #8a829e;
    font-size: 13px;
    margin: 0;
    line-height: 1.6;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 0;
    margin: 10px 0;
}

.footer-links a {
    color: #00f0ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
    outline: none;
}

.footer-links .divider {
    color: rgba(255, 255, 255, 0.15);
    margin: 0 12px;
    font-size: 12px;
}

/* 法律條款彈窗 */
.void-footer-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.void-footer-modal__veil {
    position: absolute;
    inset: 0;
    background: rgba(4, 2, 12, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.void-footer-modal__panel {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: min(78vh, 640px);
    overflow: auto;
    padding: 28px 24px 24px;
    border-radius: 18px;
    border: 1px solid rgba(0, 240, 255, 0.35);
    background: linear-gradient(155deg, rgba(18, 8, 36, 0.97), rgba(8, 12, 32, 0.98));
    box-shadow:
        0 0 40px rgba(127, 0, 255, 0.35),
        0 0 24px rgba(0, 240, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.void-footer-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    color: rgba(240, 230, 255, 0.9);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.void-footer-modal__close:hover {
    border-color: rgba(255, 215, 0, 0.55);
    color: #ffd700;
}

.void-footer-modal__title {
    margin: 0 0 14px;
    font-family: 'Orbitron', 'Noto Sans TC', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.35);
    text-align: center;
}

.void-footer-modal__body {
    color: rgba(220, 215, 235, 0.92);
    font-size: 0.9rem;
    line-height: 1.75;
    text-align: center;
}

.void-footer-modal__body p {
    margin: 0 0 12px;
    text-align: center;
}

.void-footer-modal__body p:last-child {
    margin-bottom: 0;
}

.void-footer-modal__body a {
    color: #00f0ff;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.void-footer-modal__body a:hover,
.void-footer-modal__body a:focus-visible {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.35);
    outline: none;
}

.void-footer-modal__panel--legal {
    width: min(640px, 100%);
    max-height: min(82vh, 720px);
    padding: 24px 20px 20px;
}

.void-footer-modal__body--legal {
    text-align: center;
    padding: 0;
    margin: 0;
}

.void-footer-modal__iframe {
    display: block;
    width: 100%;
    min-height: min(62vh, 560px);
    border: none;
    border-radius: 12px;
    background: transparent;
}

@media (max-width: 720px) {
    .void-global-footer {
        margin-left: calc(-1 * max(10px, env(safe-area-inset-left, 0px)));
        margin-right: calc(-1 * max(10px, env(safe-area-inset-right, 0px)));
        padding-left: max(10px, env(safe-area-inset-left, 0px));
        padding-right: max(10px, env(safe-area-inset-right, 0px));
        padding-bottom: calc(28px + var(--void-mobile-nav-h, 54px));
    }
}

@media (max-width: 520px) {
    .void-global-footer {
        margin-left: calc(-1 * max(8px, env(safe-area-inset-left, 0px)));
        margin-right: calc(-1 * max(8px, env(safe-area-inset-right, 0px)));
        padding-left: max(8px, env(safe-area-inset-left, 0px));
        padding-right: max(8px, env(safe-area-inset-right, 0px));
        padding-top: 24px;
        padding-bottom: 28px;
    }

    .footer-links .divider {
        margin: 0 8px;
    }

    .footer-links a {
        font-size: 13px;
    }
}
