/* Guscio pubblico delle pagine legali (prefisso lgs-). Autonomo: non dipende da auth.css
   ne' da syncrocheck.css. Tema: data-theme (impostato da theme-init.js) oppure sistema. */
@font-face {
    font-family: "Manrope";
    src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}

:root {
    --lgs-bg: #ffffff;
    --lgs-ink: #16202c;
    --lgs-muted: #5b6878;
    --lgs-line: #e3e8ef;
    --lgs-accent: #f39a5b;
    --lgs-accent-ink: #1b1305;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --lgs-bg: #0b1224;
        --lgs-ink: #e8edf5;
        --lgs-muted: #9aa8bb;
        --lgs-line: #1e2a44;
    }
}
:root[data-theme="dark"] {
    --lgs-bg: #0b1224;
    --lgs-ink: #e8edf5;
    --lgs-muted: #9aa8bb;
    --lgs-line: #1e2a44;
}

* { box-sizing: border-box; }

.lgs-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--lgs-bg);
    color: var(--lgs-ink);
    font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.lgs-skip {
    position: absolute;
    left: -9999px;
    top: 8px;
    padding: 10px 14px;
    background: var(--lgs-ink);
    color: var(--lgs-bg);
    border-radius: 8px;
    z-index: 10;
}
.lgs-skip:focus { left: 12px; }

.lgs-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px clamp(16px, 4vw, 40px);
    border-bottom: 1px solid var(--lgs-line);
}
.lgs-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    color: inherit;
    text-decoration: none;
}
.lgs-mark {
    display: grid;
    place-items: center;
    inline-size: 32px;
    block-size: 32px;
    border-radius: 9px;
    background: #0b1224;
    color: #fff;
    font-weight: 800;
}
.lgs-nav { display: flex; align-items: center; gap: 8px; }
.lgs-nav a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 14px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    white-space: nowrap;
}
.lgs-nav a:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.lgs-nav .lgs-cta { background: var(--lgs-accent); color: var(--lgs-accent-ink); }
.lgs-nav .lgs-cta:hover { background: var(--lgs-accent); filter: brightness(.95); }

.lgs-main { flex: 1; }

.lgs-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 24px;
    padding: 20px clamp(16px, 4vw, 40px) 28px;
    border-top: 1px solid var(--lgs-line);
    font-size: 14px;
    color: var(--lgs-muted);
}
.lgs-foot-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.lgs-foot-nav a {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    padding: 10px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.lgs-foot-nav a:hover { color: var(--lgs-ink); text-decoration: underline; }

.lgs-body a:focus-visible,
.lgs-body button:focus-visible {
    outline: 3px solid var(--lgs-accent);
    outline-offset: 2px;
}

@media (max-width: 420px) {
    .lgs-nav a:not(.lgs-cta) { display: none; }
}

/* v55: firma dell'azienda nel footer del guscio pubblico */
.lgs-made-by a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.lgs-made-by a:hover { color: var(--lgs-ink); }
