/*
 * Company footer — the single credit block every UBA surface renders
 * (components/templates/footer-company.php).
 *
 * Self-contained on purpose: it owns its surface, colour, typography and
 * rhythm, so no host stylesheet (`.texto`, `.separador`, Bootstrap or the tw
 * utilities) can reach it and nothing here ever needs a later override. The
 * dark surface belongs to the footer because it lands on navy pages and on the
 * white login-provisional page alike.
 *
 * Owned tokens only — no `--themecolor` / `--secthemecolor`, no `!important`.
 */

.scaem-footer {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    box-sizing: border-box;
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    background-color: #0a1322;
    color: #f5f5f5;
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    font-size: 0.875rem;
    line-height: 1.35;
    text-align: center;
}

/* `main.css` paints every `p` with a 20px margin and the Open Sans stack; the
 * line class outranks it, so the copy stays on the footer's own rhythm. */
.scaem-footer__line {
    margin: 0;
    color: inherit;
}

/* The credit's domain is the footer's only link. It keeps the footer's own white
 * — `main.css` paints anchors with the host's `--themecolor`, which the footer
 * never borrows — and stays underlined in every state, so it reads as a link on
 * the dark surface. */
.scaem-footer__link:link,
.scaem-footer__link:visited,
.scaem-footer__link:hover,
.scaem-footer__link:focus,
.scaem-footer__link:active {
    color: inherit;
    text-decoration: underline;
}

/* `main.css` silences the anchor outline, so the ring is restated for the
 * keyboard. */
.scaem-footer__link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
