/* Shared keyboard navigation */
.vss-skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100000;
    padding: 10px 14px;
    border-radius: 8px;
    background: #111827;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-160%);
}

.vss-skip-link:focus {
    transform: translateY(0);
}

/* Global legal policy links — compact on login/ERP; full grid on /legal hub only */
.aethon-legal-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
    align-items: center;
    margin: 0 0 10px;
    padding: 0 12px;
    line-height: 1.5;
}

.aethon-legal-footer-links a {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    padding: 4px 2px;
    transition: color 0.15s ease;
}

.aethon-legal-footer-links a:hover {
    color: #4154f1;
    text-decoration: none;
}

.aethon-legal-dot {
    color: #cbd5e1;
    font-size: 13px;
    user-select: none;
    padding: 0 6px;
    line-height: 1;
}

/* Compact: single calm row (login, ERP footer, injected pages) */
.aethon-legal-footer-links--compact {
    flex-wrap: nowrap;
    gap: 0;
}

.aethon-legal-footer-links--compact a {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* Full variant: policy hub footer — soft pill chips */
.aethon-legal-footer-links:not(.aethon-legal-footer-links--compact) {
    gap: 8px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.aethon-legal-footer-links:not(.aethon-legal-footer-links--compact) a {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.aethon-legal-footer-links:not(.aethon-legal-footer-links--compact) a:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    color: #4154f1;
}

.aethon-legal-footer-links__hub {
    background: #eef2ff !important;
    border-color: #c7d2fe !important;
    color: #4154f1 !important;
}

/* Login / auth pages */
.aethon-legal-footer-links--login {
    margin-top: 0;
    margin-bottom: 8px;
}

.aethon-legal-footer-links--login a {
    color: #94a3b8;
    font-size: 12px;
}

.aethon-legal-footer-links--login a:hover {
    color: #4154f1;
}

.aethon-legal-footer-links--login .aethon-legal-dot {
    color: #d1d5db;
}

/* Middleware fallback injection */
.aethon-legal-inject-wrap {
    margin-top: auto;
}

@media print {
    .aethon-legal-inject-wrap,
    .aethon-legal-footer-links--inject {
        display: none !important;
    }
}

.aethon-legal-footer-links--inject {
    background: #fafbfc;
    border-top: 1px solid #f1f5f9;
    padding: 12px 16px 14px;
    margin: 0;
}

/* ERP mobile: clear bottom nav */
@media (max-width: 991.98px) {
    body.aethon-mobile-shell .footer-area.new-footer .aethon-legal-footer-links {
        padding-bottom: calc(8px + var(--mobile-nav-height, 64px) + var(--mobile-safe-bottom, 0px));
    }
}

@media (max-width: 380px) {
    .aethon-legal-footer-links--compact {
        flex-wrap: wrap;
        row-gap: 2px;
    }

    .aethon-legal-footer-links--compact .aethon-legal-dot {
        display: none;
    }

    .aethon-legal-footer-links--compact a {
        padding: 2px 8px;
    }
}
