/*
 * RollWithIt — Global Site Footer
 * Phase 3.4C-HF2
 *
 * Shared presentation for the global legal/footer block.
 *
 * System-specific footer positioning MUST NOT live here.
 * PF2e / SWADE overrides belong to their own modules.
 */

.site-footer {
    box-sizing: border-box;

    width: 100%;

    margin-top: 34px;

    padding:
        0
        18px
        calc(14px + env(safe-area-inset-bottom, 0px));

    color: #8995a3;

    font-size: 12px;
}

.site-footer::before {
    content: "";

    display: block;

    max-width: 1480px;
    height: 1px;

    margin: 0 auto 16px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(215, 163, 91, .55),
            transparent
        );
}

.site-footer-inner {
    max-width: 1480px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(240px, 1fr)
        auto
        minmax(210px, .7fr);

    gap: 20px;

    align-items: center;
}

.site-footer-brand {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.site-footer-brand strong {
    color: #d5dce5;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 14px;
    font-weight: 600;
}

.site-footer-brand span {
    line-height: 1.45;
}

.site-footer-nav {
    display: flex;

    justify-content: center;

    gap: 16px;

    flex-wrap: wrap;
}

.site-footer-nav a {
    color: #cda063;

    font-weight: 700;

    text-decoration: none;
}

.site-footer-nav a:hover {
    color: #ecc27f;

    text-decoration: underline;
}

.site-footer-meta {
    display: flex;
    flex-direction: column;

    align-items: flex-end;

    gap: 3px;

    white-space: nowrap;
}

.site-footer-disclaimer {
    max-width: 1480px;

    margin: 11px auto 0;

    color: #6f7a87;

    font-size: 10px;
    line-height: 1.45;

    text-align: center;
}

@media (max-width: 820px) {
    .site-footer {
        margin-top: 24px;

        padding-left: 14px;
        padding-right: 14px;
    }

    .site-footer-inner {
        grid-template-columns: 1fr;

        gap: 12px;

        text-align: center;
    }

    .site-footer-brand,
    .site-footer-meta {
        align-items: center;
    }

    .site-footer-nav {
        gap: 12px 16px;
    }

    .site-footer-meta {
        white-space: normal;
    }
}
