/* ==========================================================
   law25_description.css
   Styles for law_description.html (Quebec Law 25 page)
   Mirrors law_description.css aiact-* patterns exactly,
   but targets the law25-* and shared classes used in that file.
   ========================================================== */


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

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

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

/* ── Expandable first row ──
   !important beats law25_v2_desktop.css which sets
   overflow:hidden / border-radius:18px / background:#fff on this element */
.how-to-setup5 .arrow-left-02-parent {
    align-self: stretch !important;
    border-bottom: 1px solid #dfe5ed !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    width: 100%;
    box-sizing: border-box;
}

.how-to-setup5 .law25-row-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;  /* let margin-left:auto on ::after do the work */
    padding: 14px 0 !important;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    position: relative !important;
    overflow: visible !important;
}

/* Neutralise any ::after law25_v2_desktop.css puts on the parent container */
.how-to-setup5 .arrow-left-02-parent::after {
    display: none !important;
    content: none !important;
}

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

/* Text inside the expandable header */
.how-to-setup5 .law25-row-header .implement-privacy-governance {
    flex: 1;
    line-height: 140%;
    font-weight: 600;
    font-size: 16px;
    color: #000319;
    /* reset oversized font from desktop CSS */
    letter-spacing: normal !important;
}

/* +/− toggle — CSS ::after pseudo-element on the header, same as aiact.
   Avoids the span being repositioned by law25_v2_desktop.css rules.    */
.how-to-setup5 .law25-row-header::after {
    content: "+";
    flex-shrink: 0 !important;
    margin-left: auto !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #e8f5e8 !important;
    color: #008b00 !important;
    font-size: 20px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    transition: background 0.2s, color 0.2s;
    box-sizing: content-box !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    pointer-events: none;
    order: 999 !important;   /* always last in flex row */
}

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

/* Hide the span — visual is handled by ::after above */
.how-to-setup5 .accordion-toggle-icon {
    display: none !important;
}

/* ── Expanded body ── */
/* Expanded body — hidden by default, shown by .obligation-open on parent.
   !important beats any display:none from law25_v2_desktop.css             */
.how-to-setup5 .appoint-a-privacy-officer-parent {
    padding: 0 0 14px 0;
    display: none !important;
}

.how-to-setup5 .obligation-open .appoint-a-privacy-officer-parent {
    display: block !important;
}

.how-to-setup5 .designate-a-person-container {
    display: block !important;
    line-height: 140%;
    color: rgba(0, 3, 24, 0.5);
    font-size: 15px;
    font-family: Inter;
}

.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;
}

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

/* Green dot before each plain row */
.how-to-setup5 .law25-row::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #008b00;
    opacity: 0.5;
}

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

/* ── Expandable first row — uses aiact-* classes.
   Since law_description.css is NOT loaded on the Law 25 page,
   we define all aiact-row-header rules here directly.          ── */
.how-to-setup5 .law25-expandable-row {
    align-self: stretch;
    border-bottom: 1px solid #dfe5ed;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.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;
}

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

/* +/− circle on the right */
.how-to-setup5 .aiact-row-header::after {
    content: "+";
    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;
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}

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

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

/* Expanded body — hidden by default, shown by .obligation-open */
.how-to-setup5 .law25-expandable-body {
    display: none;
    padding: 0 0 14px 0;
}

.how-to-setup5 .obligation-open .law25-expandable-body {
    display: block;
}

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

/* Global implement-privacy-governance reset (catches any stray usage) */
.how-to-setup5 .implement-privacy-governance {
    flex: 1;
    line-height: 140%;
    font-weight: 600;
    font-size: 16px;
    color: #000319;
    font-family: Inter;
}


/* ────────────────────────────────────────────────────────────
   RIGHT COLUMN — image collage
   ──────────────────────────────────────────────────────────── */

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

/* Images */
.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;
}

/* Labels — above each image with padding */
.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;
}

/* Badge / logo pill */
.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;
}

/* Decorative elements */
.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 .law25-obligations-col {
        width: 100%;
        flex: unset;
    }

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

    /* Collage: switch to vertical flex stack — same strategy as aiact mobile */
    .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;
    }

    /* Hide decorative elements — only work in desktop absolute layout */
    .how-to-setup5 .group-item,
    .how-to-setup5 .group-inner,
    .how-to-setup5 .group-child2,
    .how-to-setup5 .rectangle-group {
        display: none;
    }

    /* Labels: static, full width, clear spacing above each image */
    .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;
    }

    /* First label: no top padding */
    .how-to-setup5 .text-area-to {
        padding-top: 0 !important;
    }

    /* Images: static, full width, rounded */
    .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 .text-area-to,
    .how-to-setup5 .text-area-to2,
    .how-to-setup5 .text-area-to3 {
        font-size: 13px !important;
    }
}
