/* La página de mipliego.com y su aviso legal (12-01; D63, D80, D81). Directorio plano: nada fuera de él salvo el
   mailto. Cada color es un token de resources/css/mipliego-tokens.css y lo vigila el check `pagina`. Composición de
   Trazo (2026-11-11); textos de Atalaya. */
@font-face {
    font-family: "Instrument Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("InstrumentSans-400.woff2") format("woff2");
}
/* La 600, solo para el título del aviso legal: el navegador no la descarga en una página que no la usa. */
@font-face {
    font-family: "Instrument Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("InstrumentSans-600.woff2") format("woff2");
}
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    background-color: #f3f5f8; /* --mp-fondo */
    color: #1b1f22; /* --mp-texto */
    font-family: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
}
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    text-align: center;
}
h1 {
    margin: 0 0 2rem;
    font-size: 1rem;
    line-height: 0;
}
.logotipo {
    display: inline-block;
    width: min(20rem, 72vw); /* el logotipo grande: el pequeño es solo para 16-24 px de alto (Trazo, L6) */
    height: auto;
}
p {
    margin: 0;
    overflow-wrap: break-word;
    text-wrap: balance;
}
/* Interlineados SIN unidad (16/24 → 1.5; 14/20 → 1.4286; 24/30 → 1.25): en rem no crecen con el texto al 200 % y las
   líneas se pisan (D-487, el mismo caso en el correo). A tamaño normal pintan igual que los de Trazo. */
.lema {
    font-size: 1rem;
    line-height: 1.5;
}
.acceso {
    margin-top: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #44494d; /* --mp-texto-suave */
}
a {
    color: #08629c; /* --mp-enlace */
    text-underline-offset: 0.2em;
}
a:hover {
    color: #103551; /* --mp-enlace-hover */
}
a:focus-visible {
    outline: 2px solid #2c85c7; /* --mp-foco */
    outline-offset: 2px;
}
footer {
    container-type: inline-size; /* el pie se apila por SU ancho en em, que crece con el texto (Trazo) */
    padding: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.4286;
    color: #44494d; /* --mp-texto-suave */
}
footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex; /* sin el espacio en blanco del inline-block antes de cada punto */
    flex-wrap: wrap;
    justify-content: center;
}
footer li + li::before {
    content: "·";
    padding: 0 0.5rem;
}
footer a {
    overflow-wrap: anywhere;
}
/* El aviso legal: texto a la izquierda, con su logotipo pequeño arriba. */
.legal {
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
}
.legal .cabecera {
    margin: 0 0 2rem;
    line-height: 0;
}
.logotipo-pequeno {
    height: 24px;
    width: auto;
}
.legal h1 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    line-height: 1.25;
    font-weight: 600;
}
.legal p,
.legal ul {
    margin: 0 0 1rem;
    text-wrap: pretty;
}
.legal ul {
    padding-left: 1.25rem;
}
.legal strong {
    font-weight: 600;
}
.legal a {
    overflow-wrap: anywhere; /* el correo de la lista, que a 320 al 200 % no cabe entero */
}
.legal .volver {
    margin-top: 1rem; /* + el 1rem del párrafo anterior = los 2rem de Trazo: en flex los márgenes no se juntan */
}
/* Una consulta de CONTENEDOR y no de pantalla: su `em` es el del pie, así que con el texto al 200 % se apila antes de
   partirse en fila con líneas que empiezan por «·» (Trazo; la media query en em no se enteraba). */
@container (max-width: 22em) {
    footer ul {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }
    footer li + li::before {
        content: none;
    }
}
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121516; /* --mp-fondo (oscuro) */
        color: #f3f5f8; /* --mp-texto (oscuro) */
    }
    .acceso {
        color: #d2d6d9; /* --mp-texto-suave (oscuro) */
    }
    footer {
        color: #d2d6d9; /* --mp-texto-suave (oscuro) */
    }
    a {
        color: #c6d9ea; /* --mp-enlace (oscuro) */
    }
    a:hover {
        color: #e4eaf1; /* --mp-enlace-hover (oscuro) */
    }
    a:focus-visible {
        outline-color: #c6d9ea; /* --mp-foco (oscuro) */
    }
}
