/* Jembreando - Legal Premium (Fase 03.5).
   Hoja independiente para evitar estilos obsoletos por cache PWA.
   Se carga DESPUES de home.css en la pagina Legal. */

.legal-body .site-header {
    background: rgb(250 249 252 / 92%);
}
.legal-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(70px, 8vw, 110px) 0;
    background: #faf7fc;
    isolation: isolate;
}
.legal-hero::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background: url('../images/ambient-gradient.webp') right center / auto 100% no-repeat;
    opacity: .85;
    pointer-events: none;
}
.legal-hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: center;
}
.legal-hero-copy h1 {
    font-size: clamp(2.65rem, 6.6vw, 5.3rem);
    max-width: 790px;
    margin: 22px 0;
}
.legal-hero-copy .lead {
    max-width: 660px;
}
.legal-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.legal-hero-aside {
    background: linear-gradient(145deg, #3c2357 0%, #7e3eab 65%, #dc5595 100%);
    border-radius: 32px;
    padding: clamp(26px, 5vw, 42px);
    box-shadow: 0 24px 62px rgb(80 39 104 / 18%);
    color: #fff;
    overflow: hidden;
    position: relative;
}
.legal-hero-aside::after {
    content: '';
    width: 230px;
    height: 230px;
    border: 1px solid #ffffff40;
    border-radius: 50%;
    position: absolute;
    top: -70px;
    right: -95px;
    pointer-events: none;
}
.legal-hero-symbol {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    border-radius: 22px;
    background: #ffffff21;
}
.legal-hero-symbol img {
    width: 38px;
    height: 38px;
}
.legal-hero-badge {
    display: inline-flex;
    padding: 7px 12px;
    margin-top: 27px;
    border: 1px solid #ffffff60;
    border-radius: 40px;
    font-weight: 800;
    font-size: .7rem;
    letter-spacing: .05em;
}
.legal-hero-aside h2 {
    color: #fff;
    font-size: clamp(1.85rem, 3.2vw, 2.75rem);
    margin: 16px 0 10px;
}
.legal-hero-aside p {
    color: #f9e8f5;
    max-width: 380px;
}
.legal-hero-status {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-top: 1px solid #ffffff35;
    padding-top: 19px;
    font-size: .78rem;
    color: #f9e2f0;
    font-weight: 600;
}
.legal-hero-status .icon {
    filter: brightness(0) invert(1);
}
.legal-shell {
    background: linear-gradient(#fff, #fcf9fd);
    padding: clamp(68px, 8vw, 110px) 0 100px;
}
.legal-section-heading {
    max-width: 780px;
    margin-bottom: 42px;
}
.legal-section-heading h2 {
    font-size: clamp(2.2rem, 5vw, 3.65rem);
    margin-bottom: 16px;
}
.legal-section-heading h2 em, .legal-closing h2 em {
    font-style: normal;
    color: #da387e;
}
.legal-section-heading p {
    font-size: 1.04rem;
    line-height: 1.8;
}
.legal-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 25px;
    align-items: start;
}
.legal-sidebar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 12px 34px rgb(67 29 77 / 5%);
}
.legal-sidebar-heading {
    font-size: .73rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
    color: #8d7197;
    padding: 5px 10px 13px;
}
.legal-sidebar a {
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 14px;
    padding: 12px 10px;
    color: #514159;
    font-size: .85rem;
    font-weight: 700;
}
.legal-sidebar a:hover, .legal-sidebar a:focus-visible {
    background: #fff2f9;
    color: #c72d79;
}
.legal-sidebar .icon {
    width: 18px;
    height: 18px;
}
.legal-sidebar .legal-chevron {
    width: 15px;
    height: 15px;
    margin-left: auto;
    opacity: .55;
}
.legal-sidebar .legal-sidebar-help {
    margin-top: 12px;
    border-top: 1px solid var(--line);
    border-radius: 0;
    color: #c52b75;
    justify-content: space-between;
}
.legal-articles {
    min-width: 0;
    display: grid;
    gap: 20px;
}
.legal-article {
    scroll-margin-top: 105px;
    background: white;
    border: 1px solid #eee4f0;
    border-radius: 26px;
    padding: clamp(23px, 4vw, 38px);
    box-shadow: 0 16px 45px rgb(66 30 76 / 5%);
}
.legal-article-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 19px;
}
.legal-number {
    display: inline-grid;
    place-items: center;
    height: 30px;
    min-width: 30px;
    border-radius: 10px;
    font-size: .7rem;
    font-weight: 800;
    background: #fff0f7;
    color: #cc357b;
}
.legal-article-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #f5eefe;
}
.legal-article-icon .icon {
    width: 17px;
    height: 17px;
}
.legal-article-kind {
    color: #b02b77;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-size: .68rem;
    font-weight: 800;
}
.legal-article h2 {
    font-size: clamp(1.48rem, 3vw, 2.05rem);
    margin-bottom: 19px;
    overflow-wrap: anywhere;
}
.legal-article p {
    font-size: .92rem;
    line-height: 1.94;
    color: #665971;
}
.legal-article p:last-child {
    margin-bottom: 0;
}
.legal-notice {
    display: flex;
    gap: 15px;
    border: 1px solid #f2d0df;
    background: #fff1f7;
    color: #703052;
    border-radius: 23px;
    padding: 23px;
}
.legal-notice > .icon {
    width: 23px;
    height: 23px;
}
.legal-notice strong {
    color: #7c2758;
}
.legal-notice p {
    margin: 5px 0 0;
    color: #75445d;
    line-height: 1.75;
    font-size: .85rem;
}
.legal-closing {
    margin: 0 0 32px;
    padding: 76px 0;
    background: linear-gradient(115deg, #34204e 0%, #7b36a1 65%, #db408b 100%);
    color: white;
}
.legal-closing-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
}
.legal-closing h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    max-width: 650px;
}
.legal-closing h2 em {
    color: #ffb5da;
}
.legal-closing p {
    color: #f2e1f1;
    max-width: 590px;
}
.legal-closing .kicker {
    color: #ffb5da;
}
@media (min-width: 850px) {
    .legal-hero-inner {
        grid-template-columns: 1.22fr .78fr;
        gap: 65px;
    }
    .legal-layout {
        grid-template-columns: 266px minmax(0,1fr);
        gap: 29px;
    }
    .legal-sidebar {
        position: sticky;
        top: 95px;
    }
    .legal-closing-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
@media (max-width: 620px) {
    .legal-hero {
        padding: 57px 0 66px;
    }
    .legal-hero-actions .button {
        width: 100%;
    }
    .legal-shell {
        padding: 67px 0 75px;
    }
    .legal-article {
        border-radius: 21px;
    }
    .legal-closing {
        padding: 65px 0;
        margin-bottom: 0;
    }
}
/* Lectura editorial: jerarquia, enlaces, desplazamiento y adaptacion. */
.legal-body main {
    display: block;
    overflow: clip;
}
.legal-body .legal-hero h1 em {
    font-style: normal;
    color: #dd3987;
}
.legal-body .legal-section-heading .kicker {
    color: #b42e78;
}
.legal-body .legal-article p + p {
    margin-top: 16px;
}
.legal-body .legal-article strong {
    font-weight: 800;
    color: #412c4f;
}
.legal-body .legal-sidebar a {
    transition: color .2s ease, background-color .2s ease;
}
.legal-body .legal-sidebar a:focus-visible {
    outline-offset: 2px;
}
.legal-body .legal-article, .legal-body .legal-section-heading {
    min-width: 0;
}
.legal-body .legal-articles {
    align-content: start;
}
@media (max-width: 849px) {
    .legal-body .legal-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3px;
    }
    .legal-body .legal-sidebar-heading {
        grid-column: 1 / -1;
    }
    .legal-body .legal-sidebar a {
        padding: 12px 10px;
    }
    .legal-body .legal-sidebar-help {
        grid-column: 1 / -1;
    }
}
@media (max-width: 450px) {
    .legal-body .legal-sidebar {
        grid-template-columns: 1fr;
    }
    .legal-body .legal-hero-aside {
        border-radius: 25px;
    }
    .legal-body .legal-article {
        padding: 23px 20px;
    }
}
