/* =========================================================
   INNOVENTECH — LEGAL & PRIVACY PAGE
   File: wwwroot/css/legal.css
   ========================================================= */

.legal-page {
    --legal-navy: #07152b;
    --legal-navy-soft: #102542;
    --legal-blue: #1f5fbf;
    --legal-blue-dark: #174a96;
    --legal-cyan: #18cce5;
    --legal-text: #28384c;
    --legal-muted: #66758a;
    --legal-line: #dde5ef;
    --legal-soft: #f5f8fc;
    --legal-white: #ffffff;

    color: var(--legal-text);
    background:
        linear-gradient(
            180deg,
            #f7faff 0%,
            #ffffff 480px
        );
}

.legal-page *,
.legal-page *::before,
.legal-page *::after {
    box-sizing: border-box;
}

.legal-shell {
    width: min(1180px, calc(100% - 64px));
    margin-inline: auto;
}


/* =========================================================
   HERO
   ========================================================= */

/* =========================================================
   LEGAL HERO — IMAGE VERSION
   ========================================================= */

/* =========================================================
   LEGAL HERO — FINAL IMAGE POSITIONING
   ========================================================= */

.legal-hero{
    position:relative;
    min-height:420px;
    overflow:hidden;

    border-bottom:1px solid rgba(31,95,191,.12);
    background:#f5f9ff;
}


/* Show the complete image without cropping */

.legal-hero__image{
    position:absolute;
    z-index:1;
    inset:0;

    width:100%;
    height:100%;

    display:block;

    object-fit:contain;
    object-position:right center;

    pointer-events:none;
    user-select:none;
}


/* Fade the image beneath the text */
.legal-hero__overlay{
    position:absolute;
    inset:0;
    z-index:2;
    pointer-events:none;

    background:

        /* Soft blue atmosphere */
        radial-gradient(
            circle at 18% 28%,
            rgba(208,224,245,.65) 0%,
            rgba(208,224,245,.32) 26%,
            transparent 60%
        ),

        /* Slight blue tint near the building */
        radial-gradient(
            circle at 72% 22%,
            rgba(186,215,245,.28) 0%,
            transparent 42%
        ),

        /* Main fade */
        linear-gradient(
            90deg,
            #eef5fd 0%,
            #f3f8fe 24%,
            rgba(243,248,254,.96) 40%,
            rgba(243,248,254,.82) 53%,
            rgba(243,248,254,.38) 66%,
            rgba(243,248,254,0) 78%
        );
}


/* Restore the same centered container used throughout the page */

.legal-hero__inner{
    position:relative;
    z-index:3;

    width:min(1180px, calc(100% - 64px));
    min-height:420px;
    margin-inline:auto;

    padding-top:38px;
    padding-bottom:58px;
}




/* Keep the text within the left side */

.legal-hero__content{
    position:relative;
    z-index:3;

    width:min(56%, 720px);
    max-width:720px;
}
.legal-breadcrumbs {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 42px;

    color: #718096;
    font-size: 0.78rem;
    font-weight: 650;
}

.legal-breadcrumbs a {
    color: #53667d;
    text-decoration: none;
    transition: color 180ms ease;
}

.legal-breadcrumbs a:hover {
    color: var(--legal-blue);
}

.legal-breadcrumbs svg {
    width: 13px;
    height: 13px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legal-kicker {
    display: block;
    margin-bottom: 13px;

    color: var(--legal-blue);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}


.legal-hero h1{
    max-width:none;
    margin:0 0 20px;

    color:var(--legal-navy);

    font-family:inherit;
    font-size:clamp(2.75rem, 5vw, 4.4rem);
    font-weight:800;
    line-height:1.02;
    letter-spacing:-.045em;
}
.legal-hero__content > p {
    max-width: 730px;
    margin: 0;

    color: #52647a;
    font-size: 1.05rem;
    line-height: 1.78;
}

.legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-top: 25px;
    padding: 8px 12px;

    border: 1px solid rgba(31, 95, 191, 0.13);
    border-radius: 999px;

    color: #52657c;
    background: rgba(255, 255, 255, 0.60);

    font-size: 0.75rem;
    font-weight: 700;
}

.legal-updated svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: var(--legal-blue);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   PAGE LAYOUT
   ========================================================= */

.legal-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 760px);
    justify-content: space-between;
    align-items: start;
    gap: 70px;

    padding-top: 58px;
    padding-bottom: 100px;
}


/* =========================================================
   STICKY SIDEBAR
   ========================================================= */

.legal-sidebar {
    position: sticky;
    top: 108px;
}

.legal-sidebar__card {
    overflow: hidden;

    border: 1px solid var(--legal-line);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.92);

    box-shadow:
        0 16px 42px rgba(18, 43, 77, 0.06);
}

.legal-sidebar__label {
    display: block;
    padding: 18px 20px 13px;

    color: #6b7a8d;
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.legal-section-nav {
    display: flex;
    flex-direction: column;
}

.legal-section-nav a {
    position: relative;

    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 11px;

    margin: 0;
    padding: 15px 18px;

    border-top: 1px solid #edf1f6;

    color: var(--legal-navy);
    text-decoration: none;

    transition:
        color 180ms ease,
        background-color 180ms ease,
        padding-left 180ms ease;
}

.legal-section-nav a::after {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;

    width: 3px;
    border-radius: 0 999px 999px 0;

    background: var(--legal-blue);

    opacity: 0;
    transform: scaleY(0.5);

    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.legal-section-nav a:hover {
    padding-left: 21px;
    color: var(--legal-blue);
    background: #f5f9ff;
}

.legal-section-nav a:hover::after {
    opacity: 1;
    transform: scaleY(1);
}

.legal-nav-number {
    color: var(--legal-blue);
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.5;
}

.legal-section-nav strong {
    display: block;
    margin-bottom: 2px;

    font-size: 0.82rem;
    line-height: 1.4;
}

.legal-section-nav small {
    display: block;

    color: #7b8999;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.4;
}

.legal-sidebar__contact {
    padding: 18px 20px;

    border-top: 1px solid var(--legal-line);

    background:
        linear-gradient(
            145deg,
            #f5f9ff,
            #edf4fc
        );
}

.legal-sidebar__contact span {
    display: block;
    margin-bottom: 5px;

    color: #718096;
    font-size: 0.7rem;
}

.legal-sidebar__contact a {
    display: inline;
    margin: 0;

    color: var(--legal-blue);
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

.legal-sidebar__contact a:hover {
    color: var(--legal-blue-dark);
    text-decoration: underline;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.legal-content {
    min-width: 0;
}

.legal-section {
    scroll-margin-top: 110px;
}

.legal-section + .legal-section {
    margin-top: 74px;
    padding-top: 70px;
    border-top: 1px solid var(--legal-line);
}

.legal-section__heading {
    display: flex;
    align-items: flex-start;
    gap: 17px;

    margin-bottom: 25px;
}

.legal-section__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(31, 95, 191, 0.18);
    border-radius: 50%;

    color: var(--legal-blue);
    background: #eef4ff;

	
    width:50px;
    height:50px;
    flex:0 0 50px;

    font-size:1rem;
    font-weight:800;

    border-width:2px;
}
.legal-section__eyebrow {
    display: block;
    margin: 1px 0 5px;

    color: var(--legal-blue);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.legal-section h2 {
    margin: 0;

    color: var(--legal-navy);

    font-family: inherit;
    font-weight: 800;
    letter-spacing: -.03em;

    font-size: clamp(2rem, 3vw, 2.7rem);

line-height:1.1;

}

.legal-section__intro {
    margin: 0 0 35px;
    padding: 21px 23px;

    border-left: 3px solid var(--legal-blue);
    border-radius: 0 7px 7px 0;

    color: #42566e;
    background:
        linear-gradient(
            90deg,
            #f1f6fd,
            #f8fbff
        );

    font-size: 1.02rem;
    line-height: 1.78;
}

.legal-section h3 {
    margin: 35px 0 13px;

    color: var(--legal-navy);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.4;
}

.legal-section h4 {
    color: var(--legal-navy);
}

.legal-section p {
    margin: 0 0 19px;

    color: var(--legal-text);
    font-size: 0.96rem;
    line-height: 1.86;
}

.legal-section ul,
.legal-section ol {
    margin: 0 0 24px;
    padding-left: 23px;

    color: var(--legal-text);
}

.legal-section li {
    padding-left: 5px;
    font-size: 0.95rem;
    line-height: 1.75;
}

.legal-section li + li {
    margin-top: 7px;
}

.legal-section a {
    color: var(--legal-blue);
    font-weight: 700;
    text-underline-offset: 3px;
}

.legal-section a:hover {
    color: var(--legal-blue-dark);
}


/* =========================================================
   INFORMATION NOTICES
   ========================================================= */

.legal-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    margin: 27px 0 30px;
    padding: 18px 20px;

    border: 1px solid rgba(196, 125, 23, 0.20);
    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            #fffaf0,
            #fff7e7
        );
}

.legal-notice svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    margin-top: 2px;

    fill: none;
    stroke: #b56a08;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legal-notice p {
    margin: 0;

    color: #6f522c;
    font-size: 0.84rem;
    line-height: 1.7;
}

.legal-notice--information {
    border-color: rgba(31, 95, 191, 0.16);

    background:
        linear-gradient(
            135deg,
            #f1f6fd,
            #f8fbff
        );
}

.legal-notice--information svg {
    stroke: var(--legal-blue);
}

.legal-notice--information p {
    color: #465e78;
}


/* =========================================================
   CONTACT CARD
   ========================================================= */

.legal-contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    max-width: 420px;
    margin-top: 23px;
    padding: 22px 24px;

    border: 1px solid rgba(31, 95, 191, 0.14);
    border-radius: 9px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(24, 204, 229, 0.09),
            transparent 40%
        ),
        linear-gradient(
            145deg,
            #f7faff,
            #edf4fc
        );

    font-style: normal;
}

.legal-contact-card strong {
    margin-bottom: 2px;
    color: var(--legal-navy);
}

.legal-contact-card span,
.legal-contact-card a {
    margin: 2px 0;
    font-size: 0.83rem;
    line-height: 1.6;
}


/* =========================================================
   COOKIE CARDS
   ========================================================= */

.legal-cookie-grid {
    display: grid;
    gap: 13px;
    margin: 23px 0 31px;
}

.legal-cookie-card {
    display: grid;
    grid-template-columns: 47px minmax(0, 1fr);
    gap: 16px;

    padding: 19px 20px;

    border: 1px solid var(--legal-line);
    border-radius: 8px;

    background: #ffffff;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.legal-cookie-card:hover {
    transform: translateY(-2px);

    border-color: rgba(31, 95, 191, 0.26);

    box-shadow:
        0 12px 28px rgba(18, 43, 77, 0.07);
}

.legal-cookie-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border: 1px solid rgba(31, 95, 191, 0.14);
    border-radius: 9px;

    color: var(--legal-blue);
    background: #eef4ff;
}

.legal-cookie-card__icon svg {
    width: 23px;
    height: 23px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legal-cookie-card h4 {
    margin: 1px 0 5px;
    font-size: 0.93rem;
    font-weight: 800;
}

.legal-cookie-card p {
    margin: 0;

    color: #607086;
    font-size: 0.82rem;
    line-height: 1.65;
}


/* =========================================================
   CLOSING CONTACT PANEL
   ========================================================= */

.legal-closing {
    display: flex;
    align-items: flex-start;
    gap: 16px;

    margin-top: 42px;
    padding: 24px;

    border: 1px solid rgba(31, 95, 191, 0.17);
    border-radius: 10px;

    background:
        radial-gradient(
            circle at 100% 100%,
            rgba(24, 204, 229, 0.10),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            #f3f8ff,
            #eaf2fc
        );
}

.legal-closing__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;
    flex: 0 0 auto;

    border-radius: 50%;

    color: #ffffff;
    background: var(--legal-blue);
}

.legal-closing__icon svg {
    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legal-closing h3 {
    margin: 0 0 4px;
}

.legal-closing p {
    margin: 0;
    font-size: 0.85rem;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    .legal-layout {
        grid-template-columns: 225px minmax(0, 1fr);
        gap: 42px;
    }

    .legal-sidebar {
        top: 95px;
    }
}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 800px) {

    .legal-shell {
        width: min(100% - 40px, 1180px);
    }

    .legal-hero__inner{
        width:min(100% - 40px, 1180px);
        padding-top:30px;
        padding-bottom:48px;
    }

    .legal-breadcrumbs {
        margin-bottom: 31px;
    }

    .legal-layout {
        display: block;
        padding-top: 35px;
        padding-bottom: 75px;
    }

    .legal-sidebar {
        position: static;
        margin-bottom: 45px;
    }

    .legal-sidebar__card {
        border-radius: 8px;
    }

    .legal-section-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .legal-section-nav a {
        grid-template-columns: 1fr;
        gap: 5px;
        border-top: 1px solid #edf1f6;
    }

    .legal-section-nav a + a {
        border-left: 1px solid #edf1f6;
    }

    .legal-section-nav small {
        display: none;
    }

    .legal-sidebar__contact {
        display: none;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 620px) {

    .legal-shell {
        width: min(100% - 32px, 1180px);
    }

    .legal-hero {
        padding: 25px 0 39px;
    }

    .legal-breadcrumbs {
        display: none;
    }

    .legal-kicker {
        margin-bottom: 10px;
        font-size: 0.64rem;
    }

    .legal-hero h1 {
        margin-bottom: 15px;
        font-size: 2.35rem;
        line-height: 1.05;
    }

    .legal-hero__content > p {
        font-size: 0.91rem;
        line-height: 1.7;
    }

    .legal-updated {
        margin-top: 20px;
        font-size: 0.68rem;
    }

    .legal-layout {
        padding-top: 27px;
        padding-bottom: 60px;
    }

    .legal-sidebar {
        margin-bottom: 37px;
    }

    .legal-sidebar__label {
        padding: 14px 15px 10px;
    }

    .legal-section-nav {
        grid-template-columns: 1fr;
    }

    .legal-section-nav a {
        grid-template-columns: 25px minmax(0, 1fr);
        padding: 12px 15px;
    }

    .legal-section-nav a + a {
        border-left: 0;
    }

    .legal-section-nav small {
        display: block;
    }

    .legal-section {
        scroll-margin-top: 88px;
    }

    .legal-section + .legal-section {
        margin-top: 52px;
        padding-top: 49px;
    }

.legal-section__heading{
    display:flex;
    align-items:center;
    gap:16px;
}

    .legal-section__number {
        width: 33px;
        height: 33px;
    }

    .legal-section h2 {
        font-size: 1.85rem;
    }

    .legal-section__intro {
        margin-bottom: 29px;
        padding: 17px 18px;
        font-size: 0.92rem;
    }

    .legal-section h3 {
        margin-top: 30px;
        font-size: 1rem;
    }

    .legal-section p {
        font-size: 0.9rem;
        line-height: 1.78;
    }

    .legal-section li {
        font-size: 0.89rem;
    }

    .legal-notice {
        padding: 16px;
    }

    .legal-cookie-card {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 13px;
        padding: 16px;
    }

    .legal-cookie-card__icon {
        width: 39px;
        height: 39px;
    }

    .legal-closing {
        padding: 19px 17px;
    }

    .legal-closing__icon {
        width: 39px;
        height: 39px;
    }
}


/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .legal-page *,
    .legal-page *::before,
    .legal-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


.legal-contact-cta__button{

    display:flex !important;
    align-items:center;
    justify-content:center;

    width:100%;
    height:32px;

    margin-top:14px;
    padding:0 16px;

    box-sizing:border-box;

    border-radius:8px;

    background:#2c67c7;

    color:#fff !important;

    font-size:.88rem;
    font-weight:700;
    line-height:1;

    text-decoration:none !important;
    white-space:nowrap;

    overflow:hidden;

    transition:background .2s ease;
}

.legal-contact-cta__button:hover{
    background:#2356aa;
    color:#fff !important;
}

/* =========================================================
   LEGAL COOKIE TABLE
   ========================================================= */

.legal-cookie-table-wrap{
    width:100%;
    margin:22px 0 32px;
    overflow-x:auto;

    border:1px solid var(--legal-line);
    border-radius:9px;
    background:#fff;
}

.legal-cookie-table{
    width:100%;
    min-width:680px;

    border-collapse:collapse;
    font-size:.84rem;
}

.legal-cookie-table th,
.legal-cookie-table td{
    padding:15px 17px;
    border-bottom:1px solid var(--legal-line);

    color:var(--legal-text);
    text-align:left;
    vertical-align:top;
    line-height:1.6;
}

.legal-cookie-table th{
    color:var(--legal-navy);
    background:#eef5fd;

    font-size:.75rem;
    font-weight:800;
    letter-spacing:.03em;
}

.legal-cookie-table tbody tr:last-child td{
    border-bottom:0;
}

.legal-cookie-table code{
    color:var(--legal-blue-dark);
    background:#edf4ff;

    padding:3px 6px;
    border-radius:4px;

    font-family:Consolas, Monaco, monospace;
    font-size:.78rem;
}

/* =========================================================
   LEGAL & PRIVACY — FINAL TYPOGRAPHY OVERRIDE
   ========================================================= */


/* =========================================================
   HERO
   ========================================================= */

.legal-page .legal-hero h1 {
    font-size: clamp(2.75rem, 4.2vw, 4rem) !important;
    line-height: 1.02 !important;
}

.legal-page .legal-hero__content > p {
    font-size: 1rem !important;
    line-height: 1.7 !important;
}


/* =========================================================
   14px — BREADCRUMBS / BUTTONS
   ========================================================= */

.legal-page .legal-breadcrumbs,
.legal-page .legal-contact-cta__button {
    font-size: 0.875rem !important;
    line-height: 1.3 !important;
}


/* =========================================================
   13px — SECONDARY UI
   ========================================================= */

.legal-page .legal-updated,
.legal-page .legal-sidebar__contact a {
    font-size: 0.8125rem !important;
    line-height: 1.4 !important;
}


/* =========================================================
   12px — EYEBROWS / MICRO LABELS
   ========================================================= */

.legal-page .legal-kicker,
.legal-page .legal-sidebar__label,
.legal-page .legal-nav-number,
.legal-page .legal-sidebar__contact span,
.legal-page .legal-section__eyebrow {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
}


/* =========================================================
   SIDEBAR NAVIGATION
   ========================================================= */

.legal-page .legal-section-nav strong {
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
}

.legal-page .legal-section-nav small {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
}


/* =========================================================
   MAIN LEGAL SECTIONS
   ========================================================= */

/* Privacy Policy / Terms of Use / Cookie Policy */
.legal-page .legal-section h2 {
    font-size: clamp(1.75rem, 2.4vw, 2.25rem) !important;
    line-height: 1.1 !important;
}

/* Numbered subsection headings */
.legal-page .legal-section h3,
.legal-page .legal-closing h3 {
    font-size: 1.125rem !important;
    line-height: 1.4 !important;
}

/* Introductory highlighted paragraphs */
.legal-page .legal-section__intro {
    font-size: 1rem !important;
    line-height: 1.7 !important;
}

/* Main legal reading text */
.legal-page .legal-section p,
.legal-page .legal-section li {
    font-size: 1rem !important;
    line-height: 1.7 !important;
}


/* =========================================================
   INFORMATION / WARNING NOTICES
   ========================================================= */

.legal-page .legal-notice p,
.legal-page .legal-closing p {
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
}


/* =========================================================
   CONTACT + COOKIE CARDS
   ========================================================= */

.legal-page .legal-contact-card strong,
.legal-page .legal-cookie-card h4 {
    font-size: 0.9375rem !important;
    line-height: 1.4 !important;
}

.legal-page .legal-contact-card span,
.legal-page .legal-contact-card a,
.legal-page .legal-cookie-card p {
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
}


/* =========================================================
   COOKIE TABLE
   ========================================================= */

.legal-page .legal-cookie-table {
    font-size: 0.875rem !important;
}

.legal-page .legal-cookie-table th {
    font-size: 0.8125rem !important;
}

.legal-page .legal-cookie-table th,
.legal-page .legal-cookie-table td {
    line-height: 1.55 !important;
}

.legal-page .legal-cookie-table code {
    font-size: 0.8125rem !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 620px) {

    .legal-page .legal-hero h1 {
        font-size: clamp(2.15rem, 9vw, 2.6rem) !important;
    }

    .legal-page .legal-section h2 {
        font-size: 1.75rem !important;
    }

    .legal-page .legal-hero__content > p,
    .legal-page .legal-section__intro,
    .legal-page .legal-section p,
    .legal-page .legal-section li {
        font-size: 0.9375rem !important;
    }

    .legal-page .legal-section h3,
    .legal-page .legal-closing h3 {
        font-size: 1.0625rem !important;
    }
}

/* Align section number vertically with section title */
.legal-page .legal-section__heading {
    align-items: center !important;
}

/* ==========================================================
   LEGAL PAGE — FINAL MOBILE HERO
   Image behind text + compact height + readable title
   ========================================================== */

@media (max-width: 620px) {

    /* ------------------------------------------------------
       HERO CONTAINER
       ------------------------------------------------------ */

    .legal-page .legal-hero {
        position: relative !important;

        min-height: 0 !important;
        height: auto !important;

        padding: 0 !important;

        overflow: hidden !important;

        background: #eef5fd !important;
    }


    /* ------------------------------------------------------
       HERO IMAGE — FULL BACKGROUND
       ------------------------------------------------------ */

    .legal-page .legal-hero__image {
        position: absolute !important;
        inset: 0 !important;

        width: 100% !important;
        height: 100% !important;

        object-fit: cover !important;
        object-position: 67% center !important;

        z-index: 0 !important;
    }


    /* ------------------------------------------------------
       LIGHT OVERLAY FOR TEXT READABILITY
       ------------------------------------------------------ */

    .legal-page .legal-hero__overlay {
        display: block !important;

        position: absolute !important;
        inset: 0 !important;

        z-index: 1 !important;

        background:
            linear-gradient(
                90deg,
                rgba(238,245,253,.96) 0%,
                rgba(238,245,253,.91) 42%,
                rgba(238,245,253,.68) 68%,
                rgba(238,245,253,.30) 100%
            ) !important;
    }


    /* ------------------------------------------------------
       TEXT CONTAINER
       ------------------------------------------------------ */

    .legal-page .legal-hero__inner {
        position: relative !important;
        z-index: 2 !important;

        width: 100% !important;
        min-height: 0 !important;

        margin: 0 !important;

        padding: 38px 24px 34px !important;
    }


    .legal-page .legal-hero__content {
        width: 100% !important;
        max-width: none !important;
    }


    /* ------------------------------------------------------
       KICKER
       ------------------------------------------------------ */

    .legal-page .legal-kicker {
        margin-bottom: 12px !important;

        text-shadow:
            0 1px 2px rgba(255,255,255,.98),
            0 0 8px rgba(255,255,255,.90) !important;
    }


    /* ------------------------------------------------------
       TITLE — SMALLER + NO OVERLAP
       ------------------------------------------------------ */

    .legal-page .legal-hero h1 {
        max-width: 90% !important;

        margin: 0 0 16px !important;

        font-size: clamp(2rem, 8vw, 2.35rem) !important;
        line-height: 1.02 !important;
        letter-spacing: -.035em !important;

        text-shadow:
            0 1px 2px rgba(255,255,255,1),
            0 0 8px rgba(255,255,255,.95),
            0 0 18px rgba(255,255,255,.82) !important;
    }


    /* ------------------------------------------------------
       DESCRIPTION
       ------------------------------------------------------ */

    .legal-page .legal-hero__content > p {
        max-width: 88% !important;

        margin: 0 !important;

        font-size: .94rem !important;
        line-height: 1.6 !important;

        text-shadow:
            0 1px 2px rgba(255,255,255,1),
            0 0 7px rgba(255,255,255,.94),
            0 0 15px rgba(255,255,255,.78) !important;
    }


    /* ------------------------------------------------------
       UPDATED DATE
       ------------------------------------------------------ */

    .legal-page .legal-updated {
        margin-top: 18px !important;
    }

}