/* Mise en page éditoriale des CGV, limitée à leur page WordPress. */
body.casas-pro-legal .entry-content {
    box-sizing: border-box;
    padding: 76px 28px 112px;
    font-family: var(--wp--preset--font-family--inter);
    font-size: var(--wp--preset--font-size--cv-m);
    line-height: 1.72;
    overflow-wrap: break-word;
}

body.casas-pro-legal .entry-content > h1 {
    margin-block: 0;
    font-family: var(--wp--preset--font-family--cormorant);
    font-size: clamp(42px, 4vw, 54px);
    font-weight: 500;
    line-height: 1.04;
    text-wrap: balance;
}

body.casas-pro-legal .entry-content > h1 + p {
    margin-block-start: 16px;
    color: #526260;
    font-size: var(--wp--preset--font-size--cv-s);
}

body.casas-pro-legal .entry-content > h1 + p + p {
    margin-block-start: 30px;
}

body.casas-pro-legal .entry-content > h2 {
    margin-block: 56px 0;
    font-family: var(--wp--preset--font-family--cormorant);
    font-size: clamp(27px, 2.6vw, 32px);
    font-weight: 500;
    line-height: 1.14;
    text-wrap: balance;
}

body.casas-pro-legal .entry-content > p,
body.casas-pro-legal .entry-content > ul {
    margin-block: 18px 0;
    line-height: 1.72;
}

body.casas-pro-legal .entry-content > h2 + p {
    margin-block-start: 20px;
}

body.casas-pro-legal .entry-content > ul {
    padding-inline-start: 1.6em;
}

body.casas-pro-legal .entry-content > ul > li + li {
    margin-block-start: 6px;
}

body.casas-pro-legal .entry-content a:any-link {
    color: var(--wp--preset--color--deep-green);
    text-decoration: underline;
    text-decoration-color: var(--wp--preset--color--gold);
    text-underline-offset: 0.2em;
    transition: text-decoration-color 180ms ease;
}

body.casas-pro-legal .entry-content a:hover {
    text-decoration-color: currentColor;
}

body.casas-pro-legal .entry-content a:focus-visible {
    border-radius: 2px;
    outline: 2px solid var(--wp--preset--color--deep-green);
    outline-offset: 3px;
    text-decoration-color: currentColor;
}

body.casas-pro-legal .entry-content > .wp-block-group {
    margin-block-start: 24px;
    padding: 30px !important; /* Le bloc Gutenberg porte un padding inline de 20 px. */
    border: 1px solid var(--wp--preset--color--gold);
    background-color: var(--wp--preset--color--sand);
}

body.casas-pro-legal .entry-content > .wp-block-group > p {
    margin-block: 20px 0;
    line-height: 1.72;
}

body.casas-pro-legal .entry-content > .wp-block-group > p:first-child {
    margin-block-start: 0;
}

body.casas-pro-legal .entry-content > hr {
    margin-block: 60px 0;
    border-top: 1px solid var(--wp--preset--color--gold);
}

body.casas-pro-legal .entry-content > h2:last-of-type {
    margin-block-start: 34px;
}

body.casas-pro-legal .entry-content > h2:last-of-type ~ p {
    margin-block-start: 20px;
}

@media (max-width: 600px) {
    body.casas-pro-legal .entry-content {
        padding: var(--wp--preset--spacing--xxl) 26px 88px;
    }

    body.casas-pro-legal .entry-content > h2 {
        margin-block-start: 48px;
    }

    body.casas-pro-legal .entry-content > ul {
        padding-inline-start: 1.45em;
    }

    body.casas-pro-legal .entry-content > .wp-block-group {
        padding: 22px !important;
    }

    /* Sept lignes à compléter : leurs points décoratifs restent sur une ligne. */
    body.casas-pro-legal .entry-content > h2:last-of-type ~ p:nth-last-of-type(-n+8):not(:last-of-type) {
        overflow: hidden;
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.casas-pro-legal .entry-content a:any-link {
        transition: none;
    }
}
