/* ===============================
   Site Footer Nav (Reusable)
   =============================== */

/* shared footer column contract */
.footer-col {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2.5vw;
    padding-right: 2.5vw;
    box-sizing: border-box;
}

/* ===============================
   Site Footer Nav (Premium)
   =============================== */

/* Keep .footer-col as-is */

/* Container */
.legal-links {
    display: flex;
    justify-content: center;
    gap: 22px;
    row-gap: 12px;
    flex-wrap: wrap;

    margin-top: 18px;
    margin-bottom: 60px;

    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 0.92em;
    letter-spacing: 0.01em;
}

/* Links: premium restrained baseline */
.legal-links .legal-link {
    position: relative;
    display: inline-flex;
    align-items: center;

    padding: 5px 2px;
    margin: 0;

    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;

    transition: color .18s ease, transform .18s ease;
}

/* Underline animation (starts hidden) */
.legal-links .legal-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0px;

    height: 1px;
    background: rgba(255, 255, 255, 0.45);

    transform: scaleX(0);
    transform-origin: left;
    transition: transform .18s ease, background .18s ease;
    opacity: 0.9;
}

/* Hover: brighten + underline appears */
.legal-links .legal-link:hover {
    color: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
}

.legal-links .legal-link:hover::after {
    transform: scaleX(1);
    background: rgba(255, 255, 255, 0.75);
}

/* Keyboard focus: visible, premium */
.legal-links .legal-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: 4px;
    border-radius: 8px;
}

/* Current page: always bright + underline shown */
.legal-links .legal-link[aria-current="page"] {
    color: rgba(255, 255, 255, 0.98);
    font-weight: 700;
}

.legal-links .legal-link[aria-current="page"]::after {
    transform: scaleX(1);
    background: rgba(255, 255, 255, 0.9);
}

@media (prefers-reduced-motion: reduce) {

    .legal-links .legal-link,
    .legal-links .legal-link::after {
        transition: none !important;
        transform: none !important;
    }
}

/* Tablet */
@media screen and (max-width: 768px) {
    .legal-links {
        gap: 18px;
        font-size: 0.88em;
        margin-bottom: 40px;
    }
}

/* Mobile: keep column but still premium */
@media (max-width: 480px) {
    .legal-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        font-size: 0.9em;
        margin-bottom: 30px;
    }

    .legal-links .legal-link {
        white-space: normal;
        text-align: center;
    }
}