/* Shared footer: all public, legal and dashboard pages. */
.alto-site-footer {
    --footer-bg: #111216;
    --footer-text: #f2f3f5;
    --footer-muted: #a3a9b5;
    --footer-line: #23252c;
    box-sizing: border-box;
    container: alto-footer / inline-size;
    display: block;
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: auto 0 0;
    padding: 72px clamp(24px, 5vw, 80px) 28px;
    background: var(--footer-bg);
    color: var(--footer-text);
    text-align: start;
    font-family: 'gg sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    z-index: 2;
}
.alto-site-footer *, .alto-site-footer *::before, .alto-site-footer *::after { box-sizing: border-box; }
.alto-site-footer .alto-footer-inner { width: 100%; max-width: 1220px; min-width: 0; margin-inline: auto; }
.alto-site-footer .alto-footer-main { display: grid; grid-template-columns: minmax(240px, 1.65fr) minmax(0, 1.35fr); gap: clamp(48px, 6vw, 100px); align-items: start; }
.alto-site-footer .alto-footer-brand { min-width: 0; }
.alto-site-footer .alto-footer-language {
    position: relative;
    width: min(100%, 300px);
    margin: 28px 0 0;
}
.alto-site-footer .alto-footer-language-flag {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 3px rgba(0,0,0,0.4);
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}
.alto-site-footer .alto-footer-language::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-68%) rotate(45deg);
    pointer-events: none;
    opacity: .72;
}
.alto-site-footer .alto-footer-language-select {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 10px 42px 10px 48px;
    border: 1px solid #353841;
    border-radius: 9px;
    background: #18191e;
    color: var(--footer-text);
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.alto-site-footer .alto-footer-language-select:hover { border-color: #50545f; background: #1c1d22; }
.alto-site-footer .alto-footer-language-select:focus-visible { outline: 2px solid #00d2ff; outline-offset: 3px; border-color: transparent; }
.alto-site-footer .alto-footer-language-select option { background: #18191e; color: var(--footer-text); }

.alto-site-footer .alto-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    color: var(--footer-text);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -.5px;
    text-decoration: none;
    opacity: .5;
    transition: opacity .2s;
}
.alto-site-footer .alto-footer-logo img { display: block; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; filter: grayscale(100%); transition: filter .2s; }
.alto-site-footer .alto-footer-logo:hover, .alto-site-footer .alto-footer-logo:focus-visible { opacity: 1; }
.alto-site-footer .alto-footer-logo:hover img, .alto-site-footer .alto-footer-logo:focus-visible img { filter: grayscale(0%); }
.alto-site-footer .alto-footer-description { max-width: 350px; margin: 22px 0 0; padding: 0; color: var(--footer-muted); font-size: 15px; font-weight: 400; line-height: 1.65; }
.alto-site-footer .alto-footer-columns { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; min-width: 0; }
.alto-site-footer .alto-footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    text-align: center;
}
.alto-site-footer .alto-footer-heading { display: block; width: 100%; margin: 3px 0 20px; padding: 0; border: 0; color: var(--footer-text); font-size: 16px; font-weight: 700; line-height: 1.5; letter-spacing: 0; text-align: center; text-transform: none; }
.alto-site-footer .alto-footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}
.alto-site-footer .alto-footer-links a, .alto-site-footer .alto-footer-links button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 32px;
    margin: 0;
    padding: 3px 0;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: var(--footer-muted);
    font: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
    transition: color .2s, text-shadow .2s;
}
.alto-site-footer .alto-footer-links a:hover, .alto-site-footer .alto-footer-links button:hover { color: var(--footer-text); text-shadow: 0 0 10px rgba(255,255,255,.3); }
.alto-site-footer a:focus-visible, .alto-site-footer button:focus-visible { outline: 2px solid #00d2ff; outline-offset: 5px; }
.alto-site-footer .alto-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 76px; padding-top: 26px; border-top: 1px solid var(--footer-line); }
.alto-site-footer .alto-footer-bottom .alto-footer-copyright { flex: 1; min-width: 0; }
.alto-site-footer .alto-footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    color: var(--footer-muted);
    background: transparent;
    text-decoration: none;
    transition: color .2s, background-color .2s;
}
.alto-site-footer .alto-footer-social svg { display: block; flex: 0 0 20px; width: 20px; height: 20px; }
.alto-site-footer .alto-footer-social:hover, .alto-site-footer .alto-footer-social:focus-visible { color: var(--footer-text); background-color: var(--footer-line); }
.alto-site-footer .alto-footer-copyright { margin: 0; padding: 0; color: var(--footer-muted); font-size: 14px; font-weight: 400; line-height: 1.6; }
html[data-theme="light"] .alto-site-footer { --footer-bg: #f4f7fb; --footer-text: #172033; --footer-muted: #526174; --footer-line: #d4dce6; }
html[data-theme="light"] .alto-site-footer .alto-footer-language-select { border-color: #c7d0dc; background: #fff; color: var(--footer-text); }
html[data-theme="light"] .alto-site-footer .alto-footer-language-select:hover { border-color: #9aa8b8; background: #f8fafc; }
html[data-theme="light"] .alto-site-footer .alto-footer-language-select option { background: #fff; color: var(--footer-text); }
html[data-theme="light"] .alto-site-footer a:focus-visible, html[data-theme="light"] .alto-site-footer button:focus-visible { outline-color: #006f9f; }
@media (max-width: 1100px) {
    .alto-site-footer .alto-footer-main { grid-template-columns: minmax(200px, .8fr) minmax(0, 1.2fr); gap: 40px; }
    .alto-site-footer .alto-footer-columns { gap: 24px; }
}
@media (max-width: 850px) {
    .alto-site-footer { padding: 48px 24px 28px; }
    .alto-site-footer .alto-footer-main { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .alto-site-footer .alto-footer-description { max-width: 400px; }
    .alto-site-footer .alto-footer-links { gap: 4px; }
    .alto-site-footer .alto-footer-links a, .alto-site-footer .alto-footer-links button { min-height: 44px; }
    .alto-site-footer .alto-footer-bottom { margin-top: 44px; padding-top: 24px; }
}
@media (max-width: 540px) {
    .alto-site-footer .alto-footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
    .alto-site-footer .alto-footer-heading { margin-bottom: 12px; }
}
@media (max-width: 360px) {
    .alto-site-footer .alto-footer-columns { grid-template-columns: minmax(0, 1fr); }
}
/* Dashboard sidebars reduce the footer's available width independently of the viewport. */
@container alto-footer (max-width: 740px) {
    .alto-site-footer .alto-footer-main { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .alto-site-footer .alto-footer-bottom { margin-top: 44px; }
}
@container alto-footer (max-width: 460px) {
    .alto-site-footer .alto-footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}
@container alto-footer (max-width: 312px) {
    .alto-site-footer .alto-footer-columns { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .alto-site-footer a, .alto-site-footer button, .alto-site-footer img, .alto-site-footer select { transition: none !important; }
}
