.cj-legacy-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 56px);
    padding-block: clamp(32px, 5vw, 64px);
}

.cj-legacy-cards--cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cj-legacy-cards--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cj-legacy-cards--cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cj-legacy-cards__card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 18px;
    border-top: 3px solid var(--cj-color-orange);
}

.cj-legacy-cards__title {
    margin: 0;
    font-family: var(--cj-font-display);
    font-weight: 800;
    font-size: clamp(20px, 2.4vw, 26px);
    line-height: 1.15;
    color: var(--cj-color-black);
}

.cj-legacy-cards__subtitle {
    font-family: var(--cj-font-body);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--cj-color-orange);
}

.cj-legacy-cards__text {
    font-family: var(--cj-font-body);
    font-size: 15px;
    line-height: 1.6;
    color: rgba(11, 10, 9, 0.78);
}

.cj-legacy-cards__text p {
    margin: 0 0 12px;
}

.cj-legacy-cards__text p:last-child {
    margin-bottom: 0;
}

.cj-legacy-cards__text ul,
.cj-legacy-cards__text ol {
    margin: 0 0 12px;
    padding-left: 20px;
}

.cj-legacy-cards__text strong,
.cj-legacy-cards__text b {
    color: var(--cj-color-black);
}

/* Theme sombre */
.cj-legacy-cards--dark .cj-legacy-cards__title {
    color: var(--cj-color-light);
}

.cj-legacy-cards--dark .cj-legacy-cards__text {
    color: rgba(245, 242, 236, 0.78);
}

.cj-legacy-cards--dark .cj-legacy-cards__text strong,
.cj-legacy-cards--dark .cj-legacy-cards__text b {
    color: var(--cj-color-light);
}

@media (max-width: 860px) {
    .cj-legacy-cards,
    .cj-legacy-cards--cols-2,
    .cj-legacy-cards--cols-3,
    .cj-legacy-cards--cols-4 {
        grid-template-columns: 1fr;
    }
}
