/* Public site: the footer — the mark with the line about the owner on the left, the links of the service pages on the right. The channels stand in their own strip before it (contacts.css). */

.app-site-foot {
    padding: var(--space-4) 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

/* One row: the mark and the line on the left, the links at the right end; on a phone — a column, the mark with the line above the links. */
.app-site-foot__wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-1) var(--space-5);
}

.app-site-foot__id {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1) var(--space-3);
}

.app-site-foot__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-half) var(--space-3);
    font-size: var(--fs-site-read);
}

.app-site-foot__links a {
    color: var(--text-2);
}

/* «Cookie settings» opens the banner and leads nowhere, so it is a button — drawn as one more link of the row.
   Without the script it would do nothing: hidden until cookie.js marks <html> with app-js-cookie. */
.app-site-foot__links button {
    display: none;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-2);
    font: inherit;
    line-height: inherit;
    cursor: pointer;
}

.app-js-cookie .app-site-foot__links button {
    display: inline;
}

.app-site-foot__links button:hover {
    text-decoration: underline;
}

/* The line is a signature, not an action of the page: the colour of the footer text, the underline under the pointer only. */
.app-site-foot__line {
    color: var(--text-3);
    font-size: var(--fs-site-meta);
    line-height: 1.5;
}

.app-site-foot__line:hover {
    color: var(--text-3);
    text-decoration: underline;
}

@container (max-width: 719px) {
    .app-site-foot__wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Touch target: every link of the footer is at least --field tall; the text keeps its size (core.md §19.1). */
@container (max-width: 719px) {
    .app-site-foot__links a,
    .app-js-cookie .app-site-foot__links button,
    .app-site-foot__line {
        display: inline-flex;
        align-items: center;
        min-height: var(--field);
    }

    /* A button is a control: the touch height of controls (measure.mjs 19.1), not the one of a link. */
    .app-js-cookie .app-site-foot__links button {
        min-height: var(--control-touch);
    }
}
