body {
    background-color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

.saltar {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 1000;
    padding: 10px 16px;
    background: #fff;
    color: #007a33;
    border: 2px solid #00c853;
}

.saltar:focus {
    top: 16px;
}

.legal {
    color: #424242;
}

.legal a {
    color: #007a33;
    text-decoration: underline;
    text-decoration-color: #00e676;
    text-underline-offset: 3px;
}

.legal a:hover {
    text-decoration-thickness: 3px;
}

.legal a:focus-visible,
.saltar:focus-visible {
    outline: 3px solid #00e676;
    outline-offset: 2px;
}

.legal-portada {
    background: #f7f5f3;
    border-bottom: 1px solid #eee;
}

.legal-ancho {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.legal-portada .legal-ancho {
    padding-top: 48px;
    padding-bottom: 40px;
}

.legal h2 {
    font-family: 'Bitter', serif;
    font-size: 44px;
    line-height: 1.15;
    color: #007a33;
    margin: 0 0 16px;
    text-wrap: balance;
}

.legal .actualizado {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #757575;
    text-align: left;
}

.legal-cuerpo {
    padding-top: 40px;
    padding-bottom: 72px;
}

.legal .indice {
    width: auto;
    height: auto;
    line-height: inherit;
    background: none;
    box-shadow: none;
    color: inherit;
    margin-bottom: 32px;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.legal .indice strong {
    display: block;
    margin-bottom: 8px;
    font-family: 'Bitter', serif;
    font-weight: 400;
    font-size: 18px;
    color: #424242;
}

.legal .indice ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: indice;
}

.legal .indice li {
    counter-increment: indice;
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
}

.legal .indice a {
    display: flex;
    gap: 10px;
    padding: 6px 0 6px 12px;
    border-left: 5px solid transparent;
    color: #424242;
    text-decoration: none;
}

.legal .indice a::before {
    content: counter(indice);
    min-width: 1.4em;
    color: #757575;
    font-variant-numeric: tabular-nums;
}

.legal .indice a:hover {
    color: #007a33;
}

.legal .indice a[aria-current] {
    border-left-color: #00e676;
    color: #007a33;
}

.legal-texto {
    max-width: 44rem;
    min-width: 0;
}

.legal-texto p,
.legal-texto li {
    font-size: 17px;
    line-height: 1.75;
    color: #424242;
    text-align: left;
    text-wrap: pretty;
    overflow-wrap: break-word;
}

.legal-texto p {
    margin: 0 0 16px;
}

.legal-texto .entrada {
    font-size: 19px;
    line-height: 1.7;
}

.legal-texto h3 {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 56px 0 16px;
    font-family: 'Bitter', serif;
    font-size: 26px;
    line-height: 1.3;
    color: #2e2e2e;
    text-align: left;
    text-wrap: balance;
    scroll-margin-top: 24px;
}

.legal-texto h3 .num {
    flex: none;
    min-width: 1.4em;
    padding-bottom: 2px;
    border-bottom: 5px solid #00e676;
    color: #007a33;
    font-size: 30px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.legal-texto ul {
    margin: 0 0 20px;
    padding-left: 22px;
}

.legal-texto ul > li {
    list-style-type: disc;
    margin-bottom: 8px;
    padding-left: 4px;
}

.legal-texto ul > li::marker {
    color: #00c853;
}

.legal .nota {
    margin-top: 56px;
    padding: 20px 24px;
    background: #f7f5f3;
    border-left: 5px solid #00e676;
    font-size: 16px;
}

@media screen and (min-width: 993px) {
    .legal-cuerpo {
        display: grid;
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 64px;
        align-items: start;
        padding-top: 56px;
    }

    .legal .indice {
        position: sticky;
        top: 24px;
        margin: 0;
        padding: 0;
        border: 0;
    }

    .legal-texto h3:first-of-type {
        margin-top: 40px;
    }
}

@media screen and (max-width: 600px) {
    .legal-ancho {
        padding: 0 16px;
    }

    .legal-portada .legal-ancho {
        padding-top: 32px;
        padding-bottom: 28px;
    }

    .legal h2 {
        font-size: 32px;
    }

    .legal-texto .entrada {
        font-size: 17px;
    }

    .legal-texto h3 {
        font-size: 22px;
        margin-top: 44px;
    }

    .legal-texto h3 .num {
        font-size: 24px;
    }
}

@media print {
    header,
    footer,
    .saltar,
    .legal .indice {
        display: none;
    }

    .legal-portada {
        background: none;
    }

    .legal-cuerpo {
        display: block;
    }

    .legal h2,
    .legal-texto h3,
    .legal-texto h3 .num,
    .legal a {
        color: #000;
    }

    .legal-texto a[href^="http"]::after {
        content: " (" attr(href) ")";
    }
}
