﻿/* =========================================================
   CHRONICAL SOLUTIONS
   LEGAL SUPPORT - FUTURISTIC DARK HERO
   CSS MATCHED WITH PROVIDED HTML
========================================================= */

.legal-tech-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    padding: 90px 0 0;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient( circle at 76% 42%, rgba(72, 207, 46, 0.13), transparent 28% ), radial-gradient( circle at 12% 78%, rgba(39, 132, 54, 0.12), transparent 30% ), linear-gradient( 135deg, #02130c 0%, #031a10 48%, #02120b 100% );
    color: #ffffff;
}


/* =========================================================
   TECHNICAL GRID
========================================================= */

.legal-bg-grid {
    position: absolute;
    inset: 0;
    z-index: -5;
    pointer-events: none;
    background-image: linear-gradient( rgba(91, 192, 65, 0.055) 1px, transparent 1px ), linear-gradient( 90deg, rgba(91, 192, 65, 0.055) 1px, transparent 1px );
    background-size: 52px 52px;
    mask-image: linear-gradient( to bottom, rgba(0,0,0,1), rgba(0,0,0,.75), transparent );
    animation: legalGridMove 18s linear infinite;
}


@keyframes legalGridMove {

    from {
        background-position: 0 0;
    }

    to {
        background-position: 52px 52px;
    }
}


/* =========================================================
   AMBIENT GLOW
========================================================= */

.legal-bg-glow {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -4;
    filter: blur(110px);
}


.legal-glow-left {
    left: -220px;
    bottom: -180px;
    background: rgba(42, 158, 58, .12);
    animation: legalGlowLeft 9s ease-in-out infinite alternate;
}


.legal-glow-right {
    right: -170px;
    top: 80px;
    background: rgba(75, 211, 47, .12);
    animation: legalGlowRight 8s ease-in-out infinite alternate;
}


@keyframes legalGlowLeft {

    0% {
        transform: translate3d(0,0,0) scale(1);
        opacity: .45;
    }

    100% {
        transform: translate3d(80px,-50px,0) scale(1.2);
        opacity: .85;
    }
}


@keyframes legalGlowRight {

    0% {
        transform: translate3d(0,0,0) scale(1);
        opacity: .35;
    }

    100% {
        transform: translate3d(-80px,60px,0) scale(1.18);
        opacity: .8;
    }
}


/* =========================================================
   SCANNING LINE
========================================================= */

.legal-scan-line {
    position: absolute;
    left: 0;
    top: -120px;
    width: 100%;
    height: 130px;
    pointer-events: none;
    z-index: -2;
    background: linear-gradient( to bottom, transparent, rgba(91, 218, 65, .08), transparent );
    filter: blur(10px);
    animation: legalScanMove 7s linear infinite;
}


@keyframes legalScanMove {

    0% {
        transform: translateY(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    70% {
        opacity: .9;
    }

    100% {
        transform: translateY(900px);
        opacity: 0;
    }
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.legal-tech-container {
    position: relative;
    width: min(1180px, calc(100% - 60px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, .82fr) minmax(500px, 1.18fr);
    gap: 70px;
    align-items: center;
}


/* =========================================================
   LEFT CONTENT
========================================================= */

.legal-tech-content {
    position: relative;
    z-index: 5;
    animation: legalContentReveal 1s cubic-bezier(.22,1,.36,1) both;
}


@keyframes legalContentReveal {

    from {
        opacity: 0;
        transform: translateX(-45px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* =========================================================
   LABEL
========================================================= */

.legal-tech-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #68d83e;
    text-transform: uppercase;
}


.legal-label-line {
    width: 42px;
    height: 1px;
    background: linear-gradient( 90deg, transparent, #69d73e );
    box-shadow: 0 0 8px rgba(105,215,62,.7);
}


.legal-label-dot {
    width: 6px;
    height: 6px;
    background: #72dc46;
    transform: rotate(45deg);
    box-shadow: 0 0 8px rgba(114,220,70,.9), 0 0 20px rgba(114,220,70,.35);
    animation: legalDotPulse 2s ease-in-out infinite;
}


@keyframes legalDotPulse {

    0%, 100% {
        transform: rotate(45deg) scale(.75);
        opacity: .5;
    }

    50% {
        transform: rotate(45deg) scale(1.25);
        opacity: 1;
    }
}


/* =========================================================
   MAIN HEADING
========================================================= */

.legal-tech-content h1 {
    margin: 0;
    max-width: 620px;
    font-size: clamp(46px, 5.3vw, 52px);
    line-height: .96;
    font-weight: 800;
    letter-spacing: -3px;
    color: #ffffff;
}


    .legal-tech-content h1 strong {
        color: #58c932;
        font-weight: 800;
        text-shadow: 0 0 30px rgba(88,201,50,.14);
    }


/* =========================================================
   DESCRIPTION
========================================================= */

.legal-tech-description {
    max-width: 560px;
    margin: 30px 0 0;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(224,239,228,.68);
}


/* =========================================================
   LEFT STATS
========================================================= */

.legal-tech-stats {
    margin-top: 40px;
    border-top: 1px solid rgba(91,193,65,.20);
    border-bottom: 1px solid rgba(91,193,65,.20);
}


.legal-stat {
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 12px;
    align-items: center;
    min-height: 68px;
    border-bottom: 1px solid rgba(91,193,65,.12);
    transition: background .35s ease, padding-left .35s ease;
}


    .legal-stat:last-child {
        border-bottom: 0;
    }


    .legal-stat:hover {
        padding-left: 10px;
        background: linear-gradient( 90deg, rgba(75,184,48,.08), transparent );
    }


    .legal-stat > span {
        font-size: 11px;
        font-weight: 800;
        color: #59ce35;
        letter-spacing: 1px;
    }


    .legal-stat strong {
        display: block;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 1px;
        color: #ffffff;
    }


    .legal-stat small {
        display: block;
        margin-top: 5px;
        font-size: 11px;
        color: rgba(255,255,255,.45);
    }


/* =========================================================
   RIGHT TECHNOLOGY AREA
========================================================= */

.legal-tech-interface {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: legalInterfaceReveal 1.1s .15s cubic-bezier(.22,1,.36,1) both;
}


@keyframes legalInterfaceReveal {

    from {
        opacity: 0;
        transform: translateX(45px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* =========================================================
   TOP INTERFACE LINE
========================================================= */

.legal-interface-top {
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(91,193,65,.18);
}


.legal-interface-status {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255,255,255,.52);
}


    .legal-interface-status span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #67d63d;
        box-shadow: 0 0 8px #67d63d, 0 0 18px rgba(103,214,61,.55);
        animation: legalStatusBlink 1.8s infinite;
    }


@keyframes legalStatusBlink {

    0%, 100% {
        opacity: .45;
        transform: scale(.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}


.legal-interface-id {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,.28);
}


/* =========================================================
   DIGITAL DOCUMENT
========================================================= */

.legal-document {
    position: relative;
    width: min(100%, 540px);
    min-height: 355px;
    padding: 28px;
    border: 1px solid rgba(86,205,54,.35);
    background: linear-gradient( 135deg, rgba(15,55,30,.90), rgba(2,23,13,.96) );
    box-shadow: 0 35px 80px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.04);
    transform: perspective(1200px) rotateY(-5deg) rotateX(1deg);
    transition: transform .6s ease, border-color .5s ease, box-shadow .5s ease;
    overflow: hidden;
}


    .legal-document::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(111,222,70,.06), transparent );
        transform: skewX(-18deg);
        animation: legalDocumentShine 5s linear infinite;
    }


@keyframes legalDocumentShine {

    0% {
        left: -100%;
    }

    55%, 100% {
        left: 140%;
    }
}


.legal-document:hover {
    transform: perspective(1200px) rotateY(0deg) translateY(-8px);
    border-color: rgba(104,220,67,.68);
    box-shadow: 0 40px 90px rgba(0,0,0,.48), 0 0 35px rgba(69,194,47,.08), inset 0 1px 0 rgba(255,255,255,.05);
}


/* =========================================================
   DOCUMENT HEADER
========================================================= */

.legal-document-header {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(91,193,65,.16);
}


.legal-document-symbol {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(93,207,58,.38);
    background: rgba(80,181,53,.07);
    color: #69d83e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}


.legal-document-header span {
    display: block;
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(255,255,255,.35);
}


.legal-document-header strong {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 1px;
    color: rgba(255,255,255,.72);
}


.legal-document-code {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #66d53b;
}


/* =========================================================
   DOCUMENT TITLE
========================================================= */

.legal-document-title {
    padding-top: 27px;
}


    .legal-document-title span {
        display: block;
        margin-bottom: 9px;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 2px;
        color: #5dca35;
    }


    .legal-document-title h2 {
        margin: 0;
        font-size: clamp(30px, 3vw, 43px);
        line-height: 1;
        font-weight: 800;
        letter-spacing: -1.5px;
        color: #ffffff;
    }


/* =========================================================
   DOCUMENT LINES
========================================================= */

.legal-document-lines {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}


.legal-doc-line {
    position: relative;
    height: 5px;
    overflow: hidden;
    background: rgba(94,198,65,.09);
}


    .legal-doc-line::after {
        content: "";
        position: absolute;
        inset: 0;
        transform: translateX(-110%);
        background: linear-gradient( 90deg, transparent, rgba(105,216,66,.55), transparent );
        animation: legalDocLineScan 3.5s ease-in-out infinite;
    }


    .legal-doc-line:nth-child(2)::after {
        animation-delay: .4s;
    }


    .legal-doc-line:nth-child(3)::after {
        animation-delay: .8s;
    }


    .legal-doc-line:nth-child(4)::after {
        animation-delay: 1.2s;
    }


@keyframes legalDocLineScan {

    0%, 100% {
        transform: translateX(-110%);
    }

    50% {
        transform: translateX(110%);
    }
}


.legal-doc-line.long {
    width: 90%;
}


.legal-doc-line.medium {
    width: 67%;
}


.legal-doc-line.short {
    width: 45%;
}


/* =========================================================
   PROCESS AREA
========================================================= */

.legal-process {
    margin-top: 27px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.07);
}


.legal-process-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}


    .legal-process-head span {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1.5px;
        color: rgba(255,255,255,.42);
    }


    .legal-process-head strong {
        font-size: 13px;
        color: #6ad941;
    }


.legal-progress {
    width: 100%;
    height: 5px;
    overflow: hidden;
    background: rgba(255,255,255,.07);
}


    .legal-progress span {
        display: block;
        width: 78%;
        height: 100%;
        background: linear-gradient( 90deg, #32921f, #70dd46 );
        box-shadow: 0 0 13px rgba(91,213,57,.5);
        animation: legalProgressLoad 2.4s cubic-bezier(.22,1,.36,1) both;
    }


@keyframes legalProgressLoad {

    from {
        width: 0;
    }

    to {
        width: 78%;
    }
}


/* =========================================================
   DOCUMENT FOOTER
========================================================= */

.legal-document-footer {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,.06);
}


    .legal-document-footer span {
        font-size: 9px;
        line-height: 1.4;
        letter-spacing: 1px;
        color: rgba(255,255,255,.35);
    }


/* =========================================================
   DATA RAIL
========================================================= */

.legal-data-rail {
    position: absolute;
    left: 5px;
    right: 5px;
    bottom: -50px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    border-top: 1px solid rgba(91,193,65,.18);
    border-bottom: 1px solid rgba(91,193,65,.18);
}


    .legal-data-rail > div {
        min-height: 62px;
        padding: 13px 16px;
        border-right: 1px solid rgba(91,193,65,.12);
    }


        .legal-data-rail > div:last-child {
            border-right: 0;
        }


    .legal-data-rail span {
        display: block;
        margin-bottom: 7px;
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 1.5px;
        color: rgba(255,255,255,.32);
    }


    .legal-data-rail strong {
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 1px;
        color: #61d23a;
    }


/* =========================================================
   SCAN INFORMATION
========================================================= */

.legal-scan-info {
    position: absolute;
    right: -12px;
    top: 145px;
    width: 135px;
    padding: 12px;
    border-left: 1px solid rgba(93,204,58,.25);
    background: linear-gradient( 90deg, rgba(7,39,21,.2), rgba(7,39,21,.65) );
    transform: translateX(18px);
    animation: legalScanInfoFloat 4s ease-in-out infinite;
}


@keyframes legalScanInfoFloat {

    0%, 100% {
        transform: translateX(18px);
    }

    50% {
        transform: translateX(7px);
    }
}


.legal-scan-info > span {
    display: block;
    margin-bottom: 10px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
    color: rgba(255,255,255,.38);
}


.legal-scan-meter {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 20px;
}


    .legal-scan-meter i {
        display: block;
        width: 7px;
        height: 7px;
        background: #55c832;
        opacity: .35;
        animation: legalMeter 1.2s ease-in-out infinite;
    }


        .legal-scan-meter i:nth-child(2) {
            height: 12px;
            animation-delay: .1s;
        }


        .legal-scan-meter i:nth-child(3) {
            height: 17px;
            animation-delay: .2s;
        }


        .legal-scan-meter i:nth-child(4) {
            height: 10px;
            animation-delay: .3s;
        }


        .legal-scan-meter i:nth-child(5) {
            height: 19px;
            animation-delay: .4s;
        }


        .legal-scan-meter i:nth-child(6) {
            height: 13px;
            animation-delay: .5s;
        }


        .legal-scan-meter i:nth-child(7) {
            height: 17px;
            animation-delay: .6s;
        }


        .legal-scan-meter i:nth-child(8) {
            height: 9px;
            animation-delay: .7s;
        }


        .legal-scan-meter i:nth-child(9) {
            height: 15px;
            animation-delay: .8s;
        }


        .legal-scan-meter i:nth-child(10) {
            height: 20px;
            animation-delay: .9s;
        }


@keyframes legalMeter {

    0%, 100% {
        opacity: .25;
        transform: scaleY(.65);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}


.legal-scan-info small {
    display: block;
    margin-top: 9px;
    font-size: 10px;
    line-height: 1.4;
    color: rgba(255,255,255,.32);
}


/* =========================================================
   BOTTOM STRIP
========================================================= */

.legal-bottom-strip {
    position: relative;
    width: min(1180px, calc(100% - 60px));
    margin: 55px auto 0;
    padding: 20px 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(91,193,65,.20);
}


    .legal-bottom-strip span {
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 1.7px;
        color: rgba(255,255,255,.42);
    }


    .legal-bottom-strip i {
        width: 5px;
        height: 5px;
        background: #61d438;
        transform: rotate(45deg);
        box-shadow: 0 0 9px rgba(97,212,56,.8);
        animation: legalStripDot 2s ease-in-out infinite;
    }


        .legal-bottom-strip i:nth-of-type(2) {
            animation-delay: .4s;
        }


        .legal-bottom-strip i:nth-of-type(3) {
            animation-delay: .8s;
        }


@keyframes legalStripDot {

    0%, 100% {
        opacity: .35;
        transform: rotate(45deg) scale(.7);
    }

    50% {
        opacity: 1;
        transform: rotate(45deg) scale(1.2);
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .legal-tech-container {
        width: min(100% - 50px, 1000px);
        grid-template-columns: minmax(280px,.8fr) minmax(430px,1.2fr);
        gap: 45px;
    }


    .legal-tech-content h1 {
        font-size: 55px;
    }


    .legal-document {
        width: 500px;
    }


    .legal-scan-info {
        right: -5px;
    }
}


/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 850px) {

    .legal-tech-section {
        min-height: auto;
        padding-top: 75px;
    }


    .legal-tech-container {
        width: min(100% - 40px, 700px);
        grid-template-columns: 1fr;
        gap: 65px;
    }


    .legal-tech-content h1 {
        max-width: 700px;
        font-size: 55px;
    }


    .legal-tech-description {
        max-width: 680px;
    }


    .legal-tech-interface {
        min-height: 520px;
    }


    .legal-document {
        width: min(100%, 560px);
        transform: none;
    }


        .legal-document:hover {
            transform: translateY(-6px);
        }


    .legal-bottom-strip {
        width: min(100% - 40px, 700px);
        margin-top: 45px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .legal-tech-section {
        padding-top: 60px;
    }


    .legal-tech-container {
        width: calc(100% - 30px);
        gap: 50px;
    }


    .legal-tech-label {
        font-size: 10px;
        letter-spacing: 2px;
        gap: 8px;
    }


    .legal-label-line {
        width: 28px;
    }


    .legal-tech-content h1 {
        font-size: 42px;
        line-height: 1;
        letter-spacing: -1.8px;
    }


    .legal-tech-description {
        margin-top: 22px;
        font-size: 14px;
        line-height: 1.75;
    }


    .legal-tech-stats {
        margin-top: 30px;
    }


    .legal-stat {
        grid-template-columns: 38px 1fr;
        min-height: 70px;
    }


        .legal-stat strong {
            font-size: 11px;
        }


        .legal-stat small {
            font-size: 11px;
        }


    .legal-tech-interface {
        min-height: 530px;
        display: block;
    }


    .legal-interface-top {
        position: relative;
        top: auto;
        margin-bottom: 25px;
    }


    .legal-interface-id {
        font-size: 9px;
    }


    .legal-document {
        width: 100%;
        min-height: 390px;
        padding: 20px;
        transform: none;
    }


    .legal-document-header {
        grid-template-columns: 38px 1fr auto;
        gap: 9px;
    }


    .legal-document-symbol {
        width: 34px;
        height: 34px;
        font-size: 10px;
    }


    .legal-document-header span {
        font-size: 8px;
        letter-spacing: 1.4px;
    }


    .legal-document-header strong {
        font-size: 10px;
    }


    .legal-document-code {
        font-size: 9px;
    }


    .legal-document-title {
        padding-top: 24px;
    }


        .legal-document-title h2 {
            font-size: 30px;
        }


    .legal-data-rail {
        left: 0;
        right: 0;
        bottom: 5px;
    }


        .legal-data-rail > div {
            padding: 11px 8px;
            min-height: 58px;
        }


        .legal-data-rail span {
            font-size: 8px;
        }


        .legal-data-rail strong {
            font-size: 10px;
        }


    .legal-scan-info {
        display: none;
    }


    .legal-document-footer span {
        font-size: 8px;
    }


    .legal-bottom-strip {
        width: calc(100% - 30px);
        margin-top: 25px;
        display: grid;
        grid-template-columns: 1fr 8px 1fr 8px 1fr 8px 1fr;
        gap: 6px;
        align-items: center;
    }


        .legal-bottom-strip span {
            font-size: 9px;
            letter-spacing: .8px;
        }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .legal-tech-container {
        width: calc(100% - 24px);
    }


    .legal-tech-content h1 {
        font-size: 36px;
    }


    .legal-tech-description {
        font-size: 13px;
    }


    .legal-document {
        min-height: 380px;
        padding: 17px;
    }


    .legal-document-title h2 {
        font-size: 27px;
    }


    .legal-document-footer {
        gap: 6px;
    }


        .legal-document-footer span {
            font-size: 8px;
            letter-spacing: .5px;
        }


    .legal-data-rail > div {
        padding-left: 6px;
        padding-right: 6px;
    }


    .legal-data-rail strong {
        font-size: 9px;
    }


    .legal-bottom-strip {
        grid-template-columns: 1fr 5px 1fr 5px 1fr 5px 1fr;
    }


        .legal-bottom-strip span {
            font-size: 8px;
            letter-spacing: .5px;
        }
}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 350px) {

    .legal-tech-content h1 {
        font-size: 32px;
    }


    .legal-document {
        min-height: 365px;
        padding: 15px;
    }


    .legal-document-title h2 {
        font-size: 24px;
    }


    .legal-document-footer span {
        font-size: 7px;
    }


    .legal-data-rail strong {
        font-size: 8px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .legal-tech-section *,
    .legal-tech-section::before,
    .legal-tech-section::after {
        animation: none !important;
        transition: none !important;
    }
}
/* =========================================================
   LEGAL SUPPORT — SECOND LIGHT SECTION
   UNIQUE CASE FLOW / DOCUMENT INTELLIGENCE
========================================================= */

.legal-flow-section {
    position: relative;
    width: 100%;
    padding: 50px;
    overflow: hidden;
    isolation: isolate;
    background: radial-gradient( circle at 8% 20%, rgba(88, 205, 64, 0.14), transparent 28% ), radial-gradient( circle at 88% 75%, rgba(89, 194, 72, 0.10), transparent 30% ), #f7fbf5;
    color: #102318;
}


/* =========================================================
   TECH GRID
========================================================= */

.legal-flow-grid {
    position: absolute;
    inset: 0;
    z-index: -5;
    opacity: 0.55;
    background-image: linear-gradient( rgba(39, 113, 48, 0.055) 1px, transparent 1px ), linear-gradient( 90deg, rgba(39, 113, 48, 0.055) 1px, transparent 1px );
    background-size: 55px 55px;
    mask-image: linear-gradient( to bottom, transparent, black 15%, black 85%, transparent );
    animation: legalFlowGridMove 18s linear infinite;
}


@keyframes legalFlowGridMove {

    from {
        background-position: 0 0;
    }

    to {
        background-position: 55px 55px;
    }
}


/* =========================================================
   BACKGROUND LIGHT
========================================================= */

.legal-flow-light {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    z-index: -4;
}


.legal-flow-light-one {
    left: -180px;
    top: 90px;
    background: rgba(80, 195, 65, 0.12);
    animation: legalFlowLightOne 9s ease-in-out infinite alternate;
}


.legal-flow-light-two {
    right: -180px;
    bottom: -100px;
    background: rgba(75, 180, 65, 0.10);
    animation: legalFlowLightTwo 11s ease-in-out infinite alternate;
}


@keyframes legalFlowLightOne {

    from {
        transform: translate3d(0, 0, 0);
        opacity: 0.45;
    }

    to {
        transform: translate3d(100px, 45px, 0);
        opacity: 0.85;
    }
}


@keyframes legalFlowLightTwo {

    from {
        transform: translate3d(0, 0, 0);
        opacity: 0.4;
    }

    to {
        transform: translate3d(-100px, -70px, 0);
        opacity: 0.8;
    }
}


/* =========================================================
   ABSTRACT DOCUMENT LINES
========================================================= */

.legal-flow-lines {
    position: absolute;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
}


    .legal-flow-lines span {
        position: absolute;
        height: 1px;
        width: 180px;
        background: linear-gradient( 90deg, transparent, rgba(56, 158, 57, 0.35), transparent );
        opacity: 0.5;
    }


        .legal-flow-lines span:nth-child(1) {
            top: 18%;
            left: -200px;
            animation: legalDocumentLine 9s linear infinite;
        }


        .legal-flow-lines span:nth-child(2) {
            top: 31%;
            left: -300px;
            animation: legalDocumentLine 12s linear infinite 2s;
        }


        .legal-flow-lines span:nth-child(3) {
            top: 47%;
            left: -220px;
            animation: legalDocumentLine 10s linear infinite 4s;
        }


        .legal-flow-lines span:nth-child(4) {
            top: 63%;
            left: -280px;
            animation: legalDocumentLine 13s linear infinite 1s;
        }


        .legal-flow-lines span:nth-child(5) {
            top: 76%;
            left: -250px;
            animation: legalDocumentLine 11s linear infinite 3s;
        }


        .legal-flow-lines span:nth-child(6) {
            top: 88%;
            left: -180px;
            animation: legalDocumentLine 14s linear infinite 5s;
        }


@keyframes legalDocumentLine {

    0% {
        transform: translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.65;
    }

    80% {
        opacity: 0.65;
    }

    100% {
        transform: translateX(150vw);
        opacity: 0;
    }
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.legal-flow-container {
    position: relative;
    width: min(1240px, calc(100% - 70px));
    margin: 30px auto;
    display: grid;
    grid-template-columns: minmax(250px, 0.72fr) minmax(500px, 1.45fr) minmax(110px, 0.28fr);
    gap: 55px;
    align-items: center;
}


/* =========================================================
   LEFT INTRO
========================================================= */

.legal-flow-intro {
    position: relative;
    padding: 40px 0;
    animation: legalFlowIntro 1s ease both;
}


@keyframes legalFlowIntro {

    from {
        opacity: 0;
        transform: translateX(-35px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.legal-flow-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: #3d922b;
}


    .legal-flow-label i {
        width: 34px;
        height: 1px;
        background: #4aa934;
        position: relative;
    }


        .legal-flow-label i::after {
            content: "";
            position: absolute;
            right: 0;
            top: -2px;
            width: 5px;
            height: 5px;
            background: #51b438;
            transform: rotate(45deg);
        }


/* =========================================================
   BIG NUMBER
========================================================= */

.legal-flow-big-number {
    margin-top: 30px;
    font-size: clamp(100px, 12vw, 175px);
    line-height: 0.75;
    font-weight: 900;
    letter-spacing: -12px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(52, 137, 45, 0.22);
    user-select: none;
    animation: legalNumberPulse 5s ease-in-out infinite;
}


@keyframes legalNumberPulse {

    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.9;
    }
}


/* =========================================================
   LEFT HEADING
========================================================= */

.legal-flow-intro h2 {
    position: relative;
    margin: -4px 0 0;
    max-width: 400px;
    font-size: clamp(36px, 4vw, 57px);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -2.5px;
    color: #12271a;
}


    .legal-flow-intro h2 strong {
        display: block;
        color: #399b27;
        font-weight: 800;
        text-shadow: 0 8px 30px rgba(57, 155, 39, 0.12);
    }


.legal-flow-intro p {
    max-width: 400px;
    margin: 25px 0 0;
    font-size: 14px;
    line-height: 1.8;
    color: #68766d;
}


/* =========================================================
   SIGNATURE
========================================================= */

.legal-flow-signature {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 35px;
}


    .legal-flow-signature span {
        width: 28px;
        height: 1px;
        background: #9ac78f;
    }


    .legal-flow-signature small {
        font-size: 10px;
        letter-spacing: 2px;
        font-weight: 700;
        color: #719070;
    }


/* =========================================================
   CENTER PROCESS
========================================================= */

.legal-flow-process {
    position: relative;
    padding: 15px 0;
    animation: legalProcessIn 1s 0.15s ease both;
}


@keyframes legalProcessIn {

    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   PROCESS HEADER
========================================================= */

.legal-flow-process-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(52, 129, 48, 0.18);
}


    .legal-flow-process-head span {
        font-size: 10px;
        letter-spacing: 2px;
        font-weight: 800;
        color: #438e37;
    }


    .legal-flow-process-head em {
        font-size: 10px;
        font-style: normal;
        letter-spacing: 1.5px;
        color: #9aaa9d;
    }


/* =========================================================
   PROCESS ROW
========================================================= */

.legal-flow-row {
    position: relative;
    min-height: 132px;
    display: grid;
    grid-template-columns: 54px 25px minmax(0, 1fr) 35px;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid rgba(52, 129, 48, 0.15);
    transition: background 0.45s ease, padding 0.45s ease;
}


    .legal-flow-row:hover {
        background: linear-gradient( 90deg, rgba(72, 174, 54, 0.075), transparent 85% );
        padding-left: 12px;
    }


.legal-flow-row-last {
    border-bottom: 0;
}


/* =========================================================
   INDEX
========================================================= */

.legal-flow-index {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #55a544;
    transition: transform 0.4s ease;
}


.legal-flow-row:hover .legal-flow-index {
    transform: translateX(5px);
}


/* =========================================================
   VERTICAL CONNECTOR
========================================================= */

.legal-flow-line {
    position: relative;
    width: 1px;
    height: 62px;
    background: rgba(60, 143, 51, 0.20);
}


    .legal-flow-line b {
        position: absolute;
        left: -2px;
        top: 0;
        width: 5px;
        height: 15px;
        background: #54b43d;
        box-shadow: 0 0 12px rgba(77, 177, 58, 0.45);
        animation: legalFlowNode 3s ease-in-out infinite;
    }


.legal-flow-row:nth-child(3) .legal-flow-line b {
    animation-delay: 0.6s;
}


.legal-flow-row:nth-child(4) .legal-flow-line b {
    animation-delay: 1.2s;
}


.legal-flow-row:nth-child(5) .legal-flow-line b {
    animation-delay: 1.8s;
}


@keyframes legalFlowNode {

    0% {
        top: 0;
        opacity: 0.25;
    }

    50% {
        top: 47px;
        opacity: 1;
    }

    100% {
        top: 0;
        opacity: 0.25;
    }
}


/* =========================================================
   PROCESS CONTENT
========================================================= */

.legal-flow-content span {
    display: block;
    margin-bottom: 7px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #61a556;
}


.legal-flow-content h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #162b1c;
    transition: color 0.35s ease;
}


.legal-flow-row:hover .legal-flow-content h3 {
    color: #3b992b;
}


.legal-flow-content p {
    max-width: 490px;
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.65;
    color: #7a867e;
}


/* =========================================================
   ARROW / CHECK
========================================================= */

.legal-flow-mark {
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(55, 135, 47, 0.22);
    color: #55a344;
    font-size: 14px;
    transition: transform 0.35s ease, color 0.35s ease;
}


.legal-flow-row:hover .legal-flow-mark {
    transform: translateX(5px);
    color: #2e8e20;
}


/* =========================================================
   RIGHT VERTICAL AREA
========================================================= */

.legal-flow-side {
    position: relative;
    min-height: 480px;
    border-left: 1px solid rgba(55, 137, 48, 0.17);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px 0 25px 24px;
}


.legal-flow-side-word {
    writing-mode: vertical-rl;
    font-size: 42px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 6px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(54, 137, 45, 0.20);
    animation: legalVerticalText 5s ease-in-out infinite alternate;
}


@keyframes legalVerticalText {

    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(18px);
    }
}


.legal-flow-side-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


    .legal-flow-side-text span {
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 1.3px;
        color: #78917b;
        white-space: nowrap;
        transition: color 0.3s ease, transform 0.3s ease;
    }


        .legal-flow-side-text span:hover {
            color: #3e972d;
            transform: translateX(5px);
        }


.legal-flow-side-bottom {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


    .legal-flow-side-bottom strong {
        font-size: 10px;
        letter-spacing: 1.5px;
        color: #4a9d3a;
    }


    .legal-flow-side-bottom small {
        font-size: 8px;
        line-height: 1.4;
        color: #9ba79e;
        letter-spacing: 0.8px;
    }


/* =========================================================
   BOTTOM MOVING STRIP
========================================================= */

.legal-flow-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 52px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-top: 1px solid rgba(48, 128, 43, 0.14);
    background: rgba(245, 250, 243, 0.7);
    backdrop-filter: blur(8px);
}


.legal-flow-footer-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: 22px;
    animation: legalFooterMove 25s linear infinite;
}


    .legal-flow-footer-track span {
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 2px;
        color: #6b8c69;
        white-space: nowrap;
    }


    .legal-flow-footer-track i {
        width: 5px;
        height: 5px;
        background: #5ab347;
        transform: rotate(45deg);
        box-shadow: 0 0 8px rgba(78, 170, 61, 0.45);
    }


@keyframes legalFooterMove {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .legal-flow-container {
        width: min(100% - 50px, 900px);
        grid-template-columns: minmax(220px, 0.7fr) minmax(420px, 1.3fr);
        gap: 45px;
    }


    .legal-flow-side {
        display: none;
    }


    .legal-flow-intro h2 {
        font-size: 44px;
    }


    .legal-flow-big-number {
        font-size: 130px;
    }
}


/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 800px) {

    .legal-flow-section {
        min-height: auto;
    }


    .legal-flow-container {
        width: calc(100% - 40px);
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 75px 0 90px;
    }


    .legal-flow-intro {
        padding: 0;
    }


    .legal-flow-big-number {
        margin-top: 25px;
        font-size: 115px;
    }


    .legal-flow-intro h2 {
        max-width: 600px;
        font-size: 48px;
    }


    .legal-flow-intro p {
        max-width: 650px;
    }


    .legal-flow-process {
        width: 100%;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .legal-flow-container {
        width: calc(100% - 30px);
        padding: 60px 0 80px;
        gap: 42px;
    }


    .legal-flow-label {
        font-size: 10px;
        letter-spacing: 1.8px;
    }


    .legal-flow-big-number {
        margin-top: 22px;
        font-size: 90px;
        letter-spacing: -7px;
    }


    .legal-flow-intro h2 {
        font-size: 39px;
        line-height: 1;
        letter-spacing: -1.7px;
    }


    .legal-flow-intro p {
        margin-top: 20px;
        font-size: 13px;
        line-height: 1.75;
    }


    .legal-flow-signature {
        margin-top: 25px;
    }


    .legal-flow-process-head {
        padding-bottom: 14px;
    }


        .legal-flow-process-head span {
            font-size: 9px;
            letter-spacing: 1.4px;
        }


        .legal-flow-process-head em {
            font-size: 9px;
        }


    .legal-flow-row {
        min-height: 145px;
        grid-template-columns: 32px 16px minmax(0, 1fr) 25px;
        gap: 10px;
    }


        .legal-flow-row:hover {
            padding-left: 6px;
        }


    .legal-flow-index {
        font-size: 10px;
    }


    .legal-flow-line {
        height: 70px;
    }


    .legal-flow-content span {
        font-size: 8px;
        letter-spacing: 1.3px;
    }


    .legal-flow-content h3 {
        font-size: 18px;
        line-height: 1.15;
    }


    .legal-flow-content p {
        margin-top: 7px;
        font-size: 11px;
        line-height: 1.55;
    }


    .legal-flow-mark {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }


    .legal-flow-footer {
        height: 46px;
    }


    .legal-flow-footer-track {
        gap: 17px;
    }


        .legal-flow-footer-track span {
            font-size: 8px;
            letter-spacing: 1.5px;
        }


    .legal-flow-light {
        width: 260px;
        height: 260px;
        filter: blur(80px);
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 400px) {

    .legal-flow-container {
        width: calc(100% - 24px);
    }


    .legal-flow-intro h2 {
        font-size: 34px;
    }


    .legal-flow-big-number {
        font-size: 78px;
    }


    .legal-flow-row {
        grid-template-columns: 27px 12px minmax(0, 1fr) 20px;
        gap: 8px;
    }


    .legal-flow-content h3 {
        font-size: 16px;
    }


    .legal-flow-content p {
        font-size: 10.5px;
    }


    .legal-flow-content span {
        font-size: 7.5px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .legal-flow-section *,
    .legal-flow-section::before,
    .legal-flow-section::after {
        animation: none !important;
        transition: none !important;
    }
}