/* Footer */
footer {
    background: linear-gradient(145deg, var(--surface) 0%, color-mix(in srgb, var(--accent-2) 7%, var(--surface)) 52%, color-mix(in srgb, var(--accent-2) 5%, var(--surface)) 100%);
    color: var(--text-strong);
    text-align: center;
    padding: var(--spacing-md);
    margin-top: 0;
    border-top: 1px solid color-mix(in srgb, var(--accent-2) 30%, var(--surface));
    box-shadow: 0 -10px 30px color-mix(in srgb, var(--accent) 10%, transparent);
}

footer p {
    opacity: 0.95;
    color: var(--text-muted);
    /* Balanced, so a narrow screen splits the line in two even halves rather
       than stranding "Terms" alone on the second line (every threat page). */
    text-wrap: balance;
}

/* The phone size, here rather than in responsive.css, which only index.html
   loads: every other page (privacy, terms, the threat pages) kept the body's
   16px, and its first line split after "Passkey Accounts™ ·". Now every footer
   reads as the home page's does. */
@media (max-width: 767px) {
    footer p {
        font-size: clamp(0.75rem, 1.2vw, 0.875rem);
    }
}

/* Each link is one unit, so the balanced break falls between them and never
   inside "Passkey Accounts™". */
footer p a {
    white-space: nowrap;
}

footer a {
    color: var(--accent-text);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

footer a:hover {
    color: var(--accent-strong);
    text-decoration: underline;
}

/* :focus-visible, not :focus — the latter fires on a mouse click too, so every
 * footer link a reader clicked kept a ring until they clicked elsewhere. Token
 * matched to the rest of the site; see .landing-tab-button in landing-tabs.css. */
footer a:focus-visible {
    outline: 2px solid var(--accent-text);
    outline-offset: 3px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--accent-text);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent-strong);
    text-decoration: underline;
}

.footer-logo-wrap {
    display: flex;
    justify-content: center;
    /* Room under the disc. The © line sat 2px below it, inside the brightest band
       of the trigger's halo (it fades over ~40px), which took the accent links on
       that line under AA on the wine theme at phone width (4.44:1). */
    margin-bottom: 0.75rem;
}

/* The footer logo's slot — a live widget where the 56px logo used to be. Same
   contract as .navbar-widget-mount (navigation.css): the element's height is
   the trigger's size, so it is stated here and the widget follows it. */
.footer-widget-mount {
    width: 3.5rem;
    height: 3.5rem;
    flex: none;
}

/* Set by landing-page-tabs.js when this widget could not mount. */
.footer-widget-mount[hidden] {
    display: none;
}

