/* ==========================================================
   law_description.css
   Covers both pages:
     - Law 25:   .how-to-setup5 .law25-*
     - AI Act:   .how-to-setup5 .aiact-*
   All class names are unique — zero conflict with law25_v2_desktop.css
   ========================================================== */


/* ────────────────────────────────────────────────────────────
   SHARED 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;
}

/* ── Shared title ── */
.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;
}

.how-to-setup5 .assess-your-compliance-container {
    align-self: stretch;
    position: relative;
    letter-spacing: -0.05em;
    line-height: 120%;
    font-weight: 500;
}

/* ── Shared row text ── */
.how-to-setup5 .implement-privacy-governance {
    flex: 1;
    position: relative;
    line-height: 140%;
    font-weight: 600;
    font-size: 16px;
    color: #000319;
}


/* ────────────────────────────────────────────────────────────
   LAW 25  —  .law25-*
   ──────────────────────────────────────────────────────────── */

.how-to-setup5 .how-to-setup-inner {
    width: 586px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Two-column row */
.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 */
.how-to-setup5 .law25-obligations-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

/* Card */
.how-to-setup5 .law25-card {
    align-self: stretch;
    border-radius: 12px;
    background-color: #f1f6f7;
    border: 1px solid #dfe5ed;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px;
    box-sizing: border-box;
}

/* Plain rows */
.how-to-setup5 .law25-row {
    align-self: stretch;
    border-bottom: 1px solid #dfe5ed;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 14px 0;
    gap: 10px;
}

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

/* Expandable first row */
.how-to-setup5 .arrow-left-02-parent {
    align-self: stretch;
    border-bottom: 1px solid #dfe5ed;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.how-to-setup5 .law25-row-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

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

.how-to-setup5 .accordion-toggle-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e8f5e8;
    color: #008b00;
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 500;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}

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

/* Expanded body */
.how-to-setup5 .appoint-a-privacy-officer-parent {
    padding: 0 0 14px 0;
}

.how-to-setup5 .designate-a-person-container {
    line-height: 140%;
    color: rgba(0, 3, 24, 0.5);
    font-size: 16px;
}

.how-to-setup5 .designate-a-person-in-charge-o {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    padding-left: 21px;
}

.how-to-setup5 .designate-a-person {
    margin-bottom: 10px;
}


/* ────────────────────────────────────────────────────────────
   AI ACT  —  .aiact-*
   ──────────────────────────────────────────────────────────── */

/* Title block — wider so long titles wrap to 2 lines not 3 */
.how-to-setup5 .aiact-title-block {
    width: 800px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Two-column row */
.how-to-setup5 .aiact-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 */
.how-to-setup5 .aiact-obligations-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.how-to-setup5 .aiact-col-title {
    align-self: stretch;
    position: relative;
    font-size: 24px;
    letter-spacing: -0.05em;
    line-height: 140%;
    font-weight: 600;
    font-family: Manrope;
    color: #000319;
}

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

/* Rows */
.how-to-setup5 .aiact-row {
    align-self: stretch;
    border-bottom: 1px solid #dfe5ed;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 14px 0;
    gap: 10px;
}

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

/* Expandable row */
.how-to-setup5 .aiact-row--expandable {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    cursor: default;
}

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

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

/* Fix 2: chevron replaced by a pure-CSS +/− toggle button */
.how-to-setup5 .aiact-arrow-icon {
    width: 22px;
    flex-shrink: 0;
    object-fit: contain;
}

/* Hide the SVG chevron — we use a CSS pseudo-element instead */
.how-to-setup5 .aiact-chevron-icon {
    display: none;
}

/* + toggle rendered on the row-header itself */
.how-to-setup5 .aiact-row-header::after {
    content: "+";
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f5e8;
    color: #008b00;
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    line-height: 1;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.how-to-setup5 .obligation-open .aiact-row-header::after {
    content: "−";
    background: #008b00;
    color: #fff;
}


.how-to-setup5 .aiact-row-header::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #008b00;
    opacity: 0.5;
}

.how-to-setup5 .aiact-row--expandable::before {
    display: none;
}

/* Fix 3: row icon — small coloured dot/square before each plain row text */
.how-to-setup5 .aiact-row::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #008b00;
    opacity: 0.5;
}

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

/* Expanded body */
.how-to-setup5 .aiact-row-body {
    padding: 0 0 14px 32px;
}

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

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

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


/* ────────────────────────────────────────────────────────────
   SHARED COLLAGE  (both pages use same class names)
   ──────────────────────────────────────────────────────────── */

/* Law 25 right column */
.how-to-setup5 .law-25-promo-image-2-parent {
    flex-shrink: 0;
    flex-grow: 0;
    width: 560px;
    height: 580px;
    position: relative;
}

/* AI Act right column — taller to accommodate labels above images */
.how-to-setup5 .aiact-collage {
    flex-shrink: 0;
    flex-grow: 0;
    width: 560px;
    height: 660px;
    position: relative;
}

/* ── Law 25 collage images ── */
.how-to-setup5 .law-25-promo-image-2 {
    position: absolute;
    top: 114px;
    left: 0;
    border-radius: 7px;
    width: 250px;
    height: 178px;
    object-fit: cover;
}

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

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

.how-to-setup5 .text-area-to {
    position: absolute;
    top: 88px;
    left: 4px;
    font-size: 14px;
    font-family: Inter;
    line-height: 140%;
    font-weight: 600;
    width: 252px;
    color: #000319;
}

.how-to-setup5 .text-area-to2 {
    position: absolute;
    top: 0;
    left: 306px;
    font-size: 14px;
    font-family: Inter;
    line-height: 140%;
    font-weight: 600;
    width: 252px;
    color: #000319;
}

.how-to-setup5 .text-area-to3 {
    position: absolute;
    top: 360px;
    left: 282px;
    font-size: 14px;
    font-family: Inter;
    line-height: 140%;
    font-weight: 600;
    width: 252px;
    color: #000319;
}

.how-to-setup5 .rectangle-group {
    position: absolute;
    top: 300px;
    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: 276px;
    left: 146px;
    border-radius: 12px;
    width: 68px;
    height: 50px;
}

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

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

/* ── AI Act collage — images shifted down, labels clearly above ── */
.how-to-setup5 .aiact-img-1 {
    position: absolute;
    top: 152px;           /* label (≈28px) + gap (16px) = 44px offset from label top (108) */
    left: 0;
    border-radius: 7px;
    width: 250px;
    height: 178px;
    object-fit: cover;
}

.how-to-setup5 .aiact-img-2 {
    position: absolute;
    top: 36px;            /* label at top:0, gap 12px, label ~24px tall */
    left: 288px;
    border-radius: 7px;
    width: 272px;
    height: 190px;
    object-fit: cover;
}

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

/* Labels sit above images with clear padding — no overlap */
.how-to-setup5 .aiact-label-1 {
    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 .aiact-label-2 {
    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 .aiact-label-3 {
    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 .aiact-badge {
    position: absolute;
    top: 348px;
    left: 214px;
    width: 124px;
    height: 44px;
}

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

.how-to-setup5 .aiact-badge-logo {
    position: absolute;
    top: 13px;
    left: 6px;
    width: 112px;
    height: 16px;
    object-fit: cover;
}

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

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

.how-to-setup5 .aiact-deco-3 {
    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,
    .how-to-setup5 .aiact-title-block {
        width: 100%;
    }

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

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

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

    /* ── Law 25 collage: keep absolute positioning, just scaled down ── */
    .how-to-setup5 .law-25-promo-image-2-parent {
        position: relative;
        width: 100%;
        max-width: 340px;
        height: 410px;
        margin: 0 auto;
        flex-shrink: unset;
        flex-grow: unset;
    }

    .how-to-setup5 .law-25-promo-image-2 {
        top: 104px; left: 0; width: 150px; height: auto; z-index: 2;
    }
    .how-to-setup5 .smart-questionnaire-2 {
        top: 0; left: 162px; width: 166px; height: auto; z-index: 2;
    }
    .how-to-setup5 .smart-questionnaire-2-2 {
        top: 250px; left: 148px; width: 180px; height: auto; z-index: 2;
    }
    .how-to-setup5 .text-area-to {
        top: 76px; left: 4px; width: 44%; max-width: 148px;
        font-size: clamp(11px, 2.8vw, 13px); line-height: 1.2; z-index: 6;
        padding-bottom: 0;
    }
    .how-to-setup5 .text-area-to2 {
        top: 0; left: 48%; width: 44%; max-width: 148px;
        font-size: clamp(11px, 2.8vw, 13px); line-height: 1.2; z-index: 6;
        padding-bottom: 0;
    }
    .how-to-setup5 .text-area-to3 {
        top: 228px; left: 52%; width: 42%; max-width: 142px;
        font-size: clamp(11px, 2.8vw, 13px); line-height: 1.2; z-index: 6;
        padding-bottom: 0;
    }
    .how-to-setup5 .rectangle-group {
        top: 200px; left: 122px; width: 90px; height: 32px; z-index: 5;
    }
    .how-to-setup5 .group-child { width: 90px; height: 32px; border-radius: 4px; }
    .how-to-setup5 .image-30-icon { top: 10px; left: 5px; width: 80px; height: auto; object-fit: contain; }
    .how-to-setup5 .group-item  { top: 184px; left: 80px;  width: 42px; height: auto; z-index: 1; }
    .how-to-setup5 .group-inner { top: 232px; left: 163px; width: 15px; height: 80px; z-index: 1; }
    .how-to-setup5 .group-child2{ top: 114px; left: 212px; width: 46px; height: auto; z-index: 1; }

    /* ── AI Act collage: switch to vertical flex stack on mobile ──
       Labels above images, no absolute positioning, no overlap       */
    .how-to-setup5 .aiact-collage {
        position: static !important;
        width: 100% !important;
        max-width: 420px;
        height: auto !important;
        margin: 0 auto;
        flex-shrink: unset;
        flex-grow: unset;

        /* vertical flex: label → image, label → image, label → image */
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    /* Hide decorative elements on mobile — they only work in absolute layout */
    .how-to-setup5 .aiact-deco-1,
    .how-to-setup5 .aiact-deco-2,
    .how-to-setup5 .aiact-deco-3,
    .how-to-setup5 .aiact-badge {
        display: none;
    }

    /* Each label: static block, clear typography, bottom margin = gap to image */
    .how-to-setup5 .aiact-label-1,
    .how-to-setup5 .aiact-label-2,
    .how-to-setup5 .aiact-label-3 {
        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;
    }

    /* First label: no top padding (section padding handles spacing) */
    .how-to-setup5 .aiact-label-1 {
        padding-top: 0 !important;
    }

    /* Each image: static, full width, rounded */
    .how-to-setup5 .aiact-img-1,
    .how-to-setup5 .aiact-img-2,
    .how-to-setup5 .aiact-img-3 {
        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 .law-25-promo-image-2-parent {
        max-width: 310px;
        height: 380px;
    }

    .how-to-setup5 .text-area-to,
    .how-to-setup5 .text-area-to2,
    .how-to-setup5 .text-area-to3 {
        font-size: 10.5px;
        line-height: 1.15;
    }

    .how-to-setup5 .aiact-label-1,
    .how-to-setup5 .aiact-label-2,
    .how-to-setup5 .aiact-label-3 {
        font-size: 13px !important;
    }
}
