/* ==========================================================
   law25_description.css
   Quebec Law 25 obligations section.

   Left column now mirrors the EU AI Act layout:
     • numbered rows (01..12)
     • two free, expandable rows (accordion)
     • remaining rows locked, with a hover/focus tooltip
     • eyebrow badge, column heading, subtitle and footer
   Right-column collage and the big centered title are unchanged.
   ========================================================== */


/* ── Section wrapper ── */
.how-to-setup5 {
    width: 100%;
    position: relative;
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 96px 120px;
    gap: 48px;
    text-align: center;
    font-size: 48px;
    color: #000319;
    font-family: Manrope;
}

/* ── Big centered title block ── */
.how-to-setup5 .how-to-setup-inner {
    width: 800px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.how-to-setup5 .what-is-quebecs-law-25-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.how-to-setup5 .what-is-quebecs {
    align-self: stretch;
    position: relative;
    letter-spacing: -0.05em;
    line-height: 120%;
    font-weight: 500;
}

/* ── Two-column body ── */
.how-to-setup5 .law25-body {
    align-self: stretch;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 48px;
    text-align: left;
    font-size: 16px;
    font-family: Inter;
}


/* ==========================================================
   LEFT COLUMN — AI-Act style
   ========================================================== */

.how-to-setup5 .aiact-obligations-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

/* ── Eyebrow badge ── */
.how-to-setup5 .iso27-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #e8f5e8;
    border: 1px solid #cfe9cf;
    font-family: Inter;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #008b00;
}

.how-to-setup5 .iso27-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #008b00;
}

/* ── Column heading + subtitle ── */
.how-to-setup5 .iso27-col-title {
    margin: 0;
    font-family: Manrope;
    font-size: 30px;
    line-height: 120%;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #000319;
}

.how-to-setup5 .iso27-col-subtitle {
    margin: 0;
    font-family: Inter;
    font-size: 16px;
    line-height: 160%;
    color: rgba(0, 3, 24, 0.55);
}

/* ── Obligation card ── */
.how-to-setup5 .aiact-card {
    align-self: stretch;
    width: 100%;
    border-radius: 12px;
    background-color: #f1f6f7;
    border: 1px solid #dfe5ed;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 4px 24px;
    box-sizing: border-box;
}

/* ── Rows ── */
.how-to-setup5 .aiact-row {
    align-self: stretch;
    border-bottom: 1px solid #dfe5ed;
}

.how-to-setup5 .aiact-row--last {
    border-bottom: none;
}

.how-to-setup5 .aiact-row-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    cursor: pointer;
    user-select: none;
}

/* Locked headers are not interactive */
.how-to-setup5 .aiact-row-header[aria-disabled="true"] {
    cursor: default;
}

.how-to-setup5 .aiact-row-header:focus-visible {
    outline: 2px solid #008b00;
    outline-offset: 2px;
    border-radius: 6px;
}

/* Number badge */
.how-to-setup5 .iso27-num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e8f5e8;
    color: #008b00;
    font-family: Inter;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Slightly mute the number on locked rows */
.how-to-setup5 .aiact-row-header[aria-disabled="true"] .iso27-num {
    background: #edf1f4;
    color: rgba(0, 3, 24, 0.40);
}

/* Row title text */
.how-to-setup5 .aiact-row-text {
    flex: 1;
    line-height: 140%;
    font-weight: 600;
    font-size: 16px;
    color: #000319;
    font-family: Inter;
}

.how-to-setup5 .aiact-row-header[aria-disabled="true"] .aiact-row-text {
    color: rgba(0, 3, 24, 0.55);
}

/* ── +/− toggle (free rows) ── */
.how-to-setup5 .iso27-toggle {
    flex-shrink: 0;
    margin-left: auto;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f5e8;
    color: #008b00;
    transition: background 0.2s, color 0.2s;
}

.how-to-setup5 .iso27-toggle::before {
    content: "+";
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.how-to-setup5 .open .iso27-toggle {
    background: #008b00;
    color: #fff;
}

.how-to-setup5 .open .iso27-toggle::before {
    content: "−";
}

/* ── Expanded body ── */
.how-to-setup5 .aiact-row-body {
    padding: 0 0 16px 44px;   /* align under the row title (30px badge + 14px gap) */
}

.how-to-setup5 .aiact-row-list {
    margin: 0;
    padding-left: 18px;
    color: rgba(0, 3, 24, 0.55);
    font-family: Inter;
    font-size: 15px;
    line-height: 150%;
}

.how-to-setup5 .aiact-row-list li {
    margin-bottom: 8px;
}

.how-to-setup5 .aiact-row-list li:last-child {
    margin-bottom: 0;
}

/* ── Lock (locked rows) ── */
.how-to-setup5 .iso27-lock-wrap {
    flex-shrink: 0;
    margin-left: auto;
    position: relative;
    display: flex;
    align-items: center;
}

.how-to-setup5 .iso27-lock-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #edf1f4;
    color: rgba(0, 3, 24, 0.45);
}

/* Tooltip */
.how-to-setup5 .iso27-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    width: 220px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #000319;
    color: #fff;
    font-family: Inter;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
    z-index: 20;
    pointer-events: none;
}

.how-to-setup5 .iso27-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 16px;
    border: 6px solid transparent;
    border-top-color: #000319;
}

.how-to-setup5 .iso27-lock-wrap:hover .iso27-tooltip,
.how-to-setup5 .iso27-lock-wrap:focus-within .iso27-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.how-to-setup5 .iso27-tooltip-cta {
    color: #7cd97c;
    font-weight: 600;
}

/* ── Footer ── */
.how-to-setup5 .iso27-footer {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.how-to-setup5 .iso27-footer-meta {
    font-family: Inter;
    font-size: 13px;
    color: rgba(0, 3, 24, 0.5);
}

.how-to-setup5 .iso27-footer-cta {
    font-family: Inter;
    font-size: 14px;
    font-weight: 600;
    color: #008b00;
    text-decoration: none;
}

.how-to-setup5 .iso27-footer-cta:hover {
    text-decoration: underline;
}


/* ==========================================================
   RIGHT COLUMN — image collage (unchanged)
   ========================================================== */

.how-to-setup5 .law-25-promo-image-2-parent {
    flex-shrink: 0;
    flex-grow: 0;
    width: 560px;
    height: 660px;
    position: relative;
}

.how-to-setup5 .law-25-promo-image-2 {
    position: absolute;
    top: 152px;
    left: 0;
    border-radius: 7px;
    width: 250px;
    height: 178px;
    object-fit: cover;
}

.how-to-setup5 .smart-questionnaire-2 {
    position: absolute;
    top: 36px;
    left: 288px;
    border-radius: 7px;
    width: 272px;
    height: 190px;
    object-fit: cover;
}

.how-to-setup5 .smart-questionnaire-2-2 {
    position: absolute;
    top: 436px;
    left: 266px;
    border-radius: 7px;
    width: 283px;
    height: 197px;
    object-fit: cover;
}

.how-to-setup5 .text-area-to {
    position: absolute;
    top: 108px;
    left: 4px;
    font-size: 13px;
    font-family: Inter;
    line-height: 130%;
    font-weight: 600;
    width: 250px;
    color: #000319;
    padding-bottom: 8px;
}

.how-to-setup5 .text-area-to2 {
    position: absolute;
    top: 0;
    left: 292px;
    font-size: 13px;
    font-family: Inter;
    line-height: 130%;
    font-weight: 600;
    width: 268px;
    color: #000319;
    padding-bottom: 8px;
}

.how-to-setup5 .text-area-to3 {
    position: absolute;
    top: 402px;
    left: 270px;
    font-size: 13px;
    font-family: Inter;
    line-height: 130%;
    font-weight: 600;
    width: 279px;
    color: #000319;
    padding-bottom: 8px;
}

.how-to-setup5 .rectangle-group {
    position: absolute;
    top: 348px;
    left: 214px;
    width: 124px;
    height: 44px;
}

.how-to-setup5 .group-child {
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background-color: #fff;
    border: 1px solid #dfe5ed;
    box-sizing: border-box;
}

.how-to-setup5 .image-30-icon {
    position: absolute;
    top: 13px;
    left: 6px;
    width: 112px;
    height: 16px;
    object-fit: cover;
}

.how-to-setup5 .group-item {
    position: absolute;
    top: 324px;
    left: 146px;
    border-radius: 12px;
    width: 68px;
    height: 50px;
}

.how-to-setup5 .group-inner {
    position: absolute;
    top: 404px;
    left: 257px;
    border-radius: 12px;
    width: 23px;
    height: 122px;
}

.how-to-setup5 .group-child2 {
    position: absolute;
    top: 218px;
    left: 339px;
    border-radius: 12px;
    width: 68px;
    height: 153px;
    object-fit: contain;
}


/* ==========================================================
   TABLET / MOBILE — max-width: 768px
   ========================================================== */
@media (max-width: 768px) {

    .how-to-setup5 {
        padding: 48px 20px;
        gap: 28px;
        overflow: hidden;
    }

    .how-to-setup5 .how-to-setup-inner {
        width: 100%;
    }

    /* Stack columns vertically */
    .how-to-setup5 .law25-body {
        flex-direction: column;
        align-items: center;
        gap: 28px;
        width: 100%;
    }

    .how-to-setup5 .aiact-obligations-col {
        width: 100%;
        flex: unset;
    }

    .how-to-setup5 .aiact-card {
        width: 100%;
    }

    .how-to-setup5 .iso27-col-title {
        font-size: 24px;
    }

    .how-to-setup5 .iso27-col-subtitle {
        font-size: 15px;
    }

    /* Keep tooltips inside the viewport on small screens */
    .how-to-setup5 .iso27-tooltip {
        width: 190px;
    }

    /* Collage: switch to a vertical flex stack */
    .how-to-setup5 .law-25-promo-image-2-parent {
        position: static !important;
        width: 100% !important;
        max-width: 420px;
        height: auto !important;
        margin: 0 auto;
        flex-shrink: unset;
        flex-grow: unset;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .how-to-setup5 .group-item,
    .how-to-setup5 .group-inner,
    .how-to-setup5 .group-child2,
    .how-to-setup5 .rectangle-group {
        display: none;
    }

    .how-to-setup5 .text-area-to,
    .how-to-setup5 .text-area-to2,
    .how-to-setup5 .text-area-to3 {
        position: static !important;
        width: 100% !important;
        font-size: 14px !important;
        font-weight: 600;
        line-height: 1.4;
        color: #000319;
        background: none;
        padding: 20px 0 8px !important;
        margin: 0;
        top: auto !important;
        left: auto !important;
    }

    .how-to-setup5 .text-area-to {
        padding-top: 0 !important;
    }

    .how-to-setup5 .law-25-promo-image-2,
    .how-to-setup5 .smart-questionnaire-2,
    .how-to-setup5 .smart-questionnaire-2-2 {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 10px;
        object-fit: cover;
        display: block;
        top: auto !important;
        left: auto !important;
    }
}


/* ==========================================================
   SMALL MOBILE — max-width: 480px
   ========================================================== */
@media (max-width: 480px) {

    .how-to-setup5 {
        padding: 40px 16px;
        gap: 24px;
    }

    .how-to-setup5 .aiact-row-text {
        font-size: 15px;
    }

    .how-to-setup5 .text-area-to,
    .how-to-setup5 .text-area-to2,
    .how-to-setup5 .text-area-to3 {
        font-size: 13px !important;
    }
}