/* =========================================================
   DATICS — LEGAL & BUSINESS SERVICES
   File:
   assets/css/legal-documentation.css

   RESPONSIVE GRID:
   Desktop  : 3 cards
   Tablet   : 2 cards
   Mobile   : 2 cards
   Small    : 2 cards
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --legal-primary: #2563eb;
    --legal-secondary: #7137eb;

    --legal-dark: #111827;
    --legal-text: #374151;
    --legal-muted: #6b7280;

    --legal-border: #e8edf5;

    --legal-bg: #f8faff;
    --legal-white: #ffffff;

}


/* =========================================================
   GLOBAL PAGE
========================================================= */

.legal-page {
    width: 100%;
    overflow: hidden;
    color: var(--legal-dark);
    background: #fff;
    margin-top: 120px;
}

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

.legal-page a {
    text-decoration: none;
}

.legal-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


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

.legal-hero {
    position: relative;

    padding: 100px 0;

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(37, 99, 235, .10),
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 80%,
            rgba(113, 55, 235, .08),
            transparent 30%
        ),
        #f8faff;

    overflow: hidden;
}

.legal-hero::before {
    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    top: -180px;
    right: -150px;

    border-radius: 50%;

    background: rgba(37, 99, 235, .05);

    pointer-events: none;
}

.legal-hero .legal-container {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(0, .95fr);

    align-items: center;

    gap: 70px;
}


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

.legal-hero-content {
    max-width: 700px;
}

.legal-eyebrow {
    display: inline-flex;

    align-items: center;
    gap: 8px;

    color: var(--legal-primary);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.legal-eyebrow::before {
    content: "";

    width: 30px;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--legal-primary),
            var(--legal-secondary)
        );

    border-radius: 10px;
}

.legal-hero h1 {
    max-width: 700px;

    margin: 18px 0;

    color: var(--legal-dark);

    font-size: clamp(42px, 5vw, 68px);

    line-height: 1.05;

    letter-spacing: -2px;
}

.legal-hero h1 span,
.legal-section-heading h2 span,
.legal-final-cta h2 span {

    display: block;

    background:
        linear-gradient(
            90deg,
            var(--legal-primary),
            var(--legal-secondary)
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.legal-hero p {
    max-width: 650px;

    margin: 0 0 30px;

    color: var(--legal-text);

    font-size: 17px;

    line-height: 1.8;
}


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

.legal-hero-actions {

    display: flex;

    align-items: center;

    gap: 14px;

    flex-wrap: wrap;
}

.legal-btn {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 52px;

    padding: 0 25px;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;
}

.legal-btn-primary {

    color: #fff;

    background:
        linear-gradient(
            90deg,
            var(--legal-primary),
            var(--legal-secondary)
        );

    box-shadow:
        0 12px 30px rgba(37, 99, 235, .18);
}

.legal-btn-primary:hover {

    color: #fff;

    transform: translateY(-3px);

    box-shadow:
        0 18px 35px rgba(37, 99, 235, .25);
}

.legal-btn-outline {

    color: var(--legal-primary);

    border: 1px solid #dbe4ff;

    background: #fff;
}

.legal-btn-outline:hover {

    color: var(--legal-primary);

    background: #f5f8ff;

    transform: translateY(-2px);
}


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

.legal-hero-visual {

    position: relative;

    min-height: 420px;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* =========================================================
   DOCUMENT CARD
========================================================= */

.legal-document-card {

    position: relative;

    width: min(440px, 100%);

    padding: 30px;

    display: flex;

    align-items: center;

    gap: 18px;

    background:
        rgba(255, 255, 255, .92);

    border: 1px solid rgba(37, 99, 235, .12);

    border-radius: 24px;

    box-shadow:
        0 30px 70px rgba(37, 99, 235, .14);

    backdrop-filter: blur(12px);
}

.legal-document-icon {

    width: 64px;
    height: 64px;

    display: grid;

    place-items: center;

    flex: 0 0 auto;

    color: var(--legal-primary);

    background: #eef4ff;

    border-radius: 18px;

    font-size: 27px;
}

.legal-document-card strong {

    display: block;

    color: var(--legal-dark);

    font-size: 16px;
}

.legal-document-card span {

    display: block;

    margin-top: 5px;

    color: var(--legal-muted);

    font-size: 13px;
}

.legal-check {

    margin-left: auto;

    color: #16a34a;

    font-size: 24px;
}


/* =========================================================
   FLOATING CARDS
========================================================= */

.legal-floating-card {

    position: absolute;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 13px 16px;

    background: #fff;

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

    border-radius: 14px;

    box-shadow:
        0 18px 40px rgba(17, 24, 39, .10);

    animation: legalFloat 4s ease-in-out infinite;
}

.legal-floating-card i {

    display: grid;

    place-items: center;

    width: 35px;
    height: 35px;

    color: var(--legal-primary);

    background: #eef4ff;

    border-radius: 10px;
}

.legal-floating-card strong {

    display: block;

    color: var(--legal-dark);

    font-size: 13px;
}

.legal-floating-card span {

    display: block;

    margin-top: 2px;

    color: var(--legal-muted);

    font-size: 11px;
}

.legal-floating-card-one {

    top: 45px;
    left: 0;
}

.legal-floating-card-two {

    right: 0;
    bottom: 45px;

    animation-delay: 1.2s;
}

@keyframes legalFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

}


/* =========================================================
   SECONDARY SERVICE NAVIGATION
========================================================= */

.legal-service-nav {

    position: sticky;

    top: 0;

    z-index: 100;

    background: rgba(255, 255, 255, .96);

    border-bottom: 1px solid var(--legal-border);

    box-shadow:
        0 5px 20px rgba(17, 24, 39, .04);

    backdrop-filter: blur(12px);
}

.legal-service-nav-inner {

    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    padding: 10px 0;

    overflow-x: auto;

    scrollbar-width: none;
}

.legal-service-nav-inner::-webkit-scrollbar {
    display: none;
}

.legal-service-nav a {

    flex: 0 0 auto;

    padding: 11px 15px;

    color: var(--legal-text);

    border-radius: 9px;

    font-size: 14px;

    font-weight: 700;

    white-space: nowrap;

    transition:
        color .25s ease,
        background .25s ease;
}

.legal-service-nav a:hover,
.legal-service-nav a.active {

    color: var(--legal-primary);

    background: #eef4ff;
}


/* =========================================================
   SERVICES SECTION
========================================================= */

.legal-services-section {

    padding: 100px 0;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.legal-section-heading {

    max-width: 760px;

    margin: 0 auto 70px;

    text-align: center;
}

.legal-section-heading h2 {

    margin: 14px 0;

    color: var(--legal-dark);

    font-size: clamp(35px, 4vw, 52px);

    line-height: 1.1;

    letter-spacing: -1.5px;
}

.legal-section-heading p {

    color: var(--legal-text);

    font-size: 16px;

    line-height: 1.8;
}


/* =========================================================
   SERVICE CATEGORY
========================================================= */

.legal-service-category {

    scroll-margin-top: 100px;

    padding: 50px 0;

    border-top: 1px solid #edf0f5;
}

.legal-service-category:first-child {
    border-top: 0;
}


/* =========================================================
   CATEGORY HEADING
========================================================= */

.legal-category-heading {

    display: flex;

    align-items: center;

    gap: 20px;

    margin-bottom: 30px;
}

.legal-category-icon {

    width: 64px;
    height: 64px;

    display: grid;

    place-items: center;

    flex: 0 0 auto;

    color: var(--legal-primary);

    background: #eef4ff;

    border-radius: 18px;

    font-size: 26px;
}

.legal-category-heading span {

    color: var(--legal-primary);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;
}

.legal-category-heading h3 {

    margin: 4px 0;

    color: var(--legal-dark);

    font-size: 28px;

    line-height: 1.2;
}

.legal-category-heading p {

    margin: 0;

    color: var(--legal-muted);

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   SERVICE GRID
========================================================= */

.legal-service-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   SERVICE CARD
========================================================= */

.legal-service-card {

    position: relative;

    min-width: 0;

    display: flex;

    flex-direction: column;

    padding: 27px;

    background: #fff;

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

    border-radius: 18px;

    text-decoration: none;

    overflow: hidden;

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.legal-service-card::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--legal-primary),
            var(--legal-secondary)
        );

    transition: width .3s ease;
}

.legal-service-card:hover {

    transform: translateY(-6px);

    border-color: #d8e3ff;

    box-shadow:
        0 20px 45px rgba(37, 99, 235, .10);
}

.legal-service-card:hover::after {
    width: 100%;
}


/* =========================================================
   SERVICE CARD ICON
========================================================= */

.legal-service-card > i {

    display: inline-grid;

    place-items: center;

    width: 48px;
    height: 48px;

    margin-bottom: 18px;

    color: var(--legal-primary);

    background: #eef4ff;

    border-radius: 13px;

    font-size: 21px;
}


/* =========================================================
   SERVICE CARD TITLE
========================================================= */

.legal-service-card h4 {

    margin: 0 0 10px;

    color: var(--legal-dark);

    font-size: 18px;

    line-height: 1.35;
}


/* =========================================================
   SERVICE CARD DESCRIPTION
========================================================= */

.legal-service-card p {

    min-height: 48px;

    margin: 0 0 18px;

    color: var(--legal-muted);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   SERVICE CARD LINK
========================================================= */

.legal-service-card span {

    margin-top: auto;

    color: var(--legal-primary);

    font-size: 13px;

    font-weight: 800;
}


/* =========================================================
   FINAL CTA
========================================================= */

.legal-final-cta {

    padding: 30px 0 100px;
}

.legal-final-cta-inner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

    padding: 55px;

    border-radius: 28px;

    color: #fff;

    background:
        linear-gradient(
            120deg,
            #2563eb,
            #7137eb
        );

    box-shadow:
        0 25px 60px rgba(37, 99, 235, .20);
}

.legal-final-cta .legal-eyebrow {
    color: #dce7ff;
}

.legal-final-cta h2 {

    margin: 12px 0;

    color: #fff;

    font-size: clamp(30px, 4vw, 45px);

    line-height: 1.1;
}

.legal-final-cta h2 span {

    color: #fff;

    -webkit-text-fill-color: #fff;
}

.legal-final-cta p {

    margin: 0;

    color: rgba(255, 255, 255, .82);

    line-height: 1.7;
}

.legal-final-cta .legal-btn-primary {

    flex: 0 0 auto;

    color: var(--legal-primary);

    background: #fff;

    box-shadow: none;
}

.legal-final-cta .legal-btn-primary:hover {

    color: var(--legal-primary);

    background: #fff;
}


/* =========================================================
   TABLET
   768px — 991px
========================================================= */

@media (max-width: 991px) {

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

    .legal-hero {
        padding: 80px 0;

    }

    .legal-hero .legal-container {

        grid-template-columns: 1fr;

        gap: 50px;
    }

    .legal-hero-content {

        max-width: 800px;

        margin: 0 auto;

        text-align: center;
    }

    .legal-hero p {

        margin-left: auto;
        margin-right: auto;
    }

    .legal-hero-actions {

        justify-content: center;
    }

    .legal-hero-visual {

        min-height: 330px;
    }


    /* -----------------------------------------------------
       TWO CARDS ON TABLET
    ----------------------------------------------------- */

    .legal-service-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    /* -----------------------------------------------------
       CTA
    ----------------------------------------------------- */

    .legal-final-cta-inner {

        align-items: flex-start;

        flex-direction: column;
    }

}


/* =========================================================
   MOBILE
   481px — 767px
========================================================= */

@media (max-width: 767px) {

    .legal-container {

        width: min(
            100% - 28px,
            1180px
        );
    }


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

    .legal-hero {

        padding: 65px 0;
        display: none;
    }

    .legal-hero h1 {

        font-size: 42px;

        letter-spacing: -1.2px;
    }

    .legal-hero p {

        font-size: 15px;

        line-height: 1.7;
    }

    .legal-hero-visual {

        min-height: 280px;
    }

    .legal-document-card {

        padding: 20px;
    }

    .legal-floating-card {

        padding: 10px 13px;
    }

    .legal-floating-card-one {

        top: 10px;

        left: -5px;
    }

    .legal-floating-card-two {

        right: -5px;

        bottom: 10px;
    }


    /* -----------------------------------------------------
       SECONDARY NAVBAR
    ----------------------------------------------------- */

    .legal-service-nav-inner {

        width: calc(100% - 20px);

        justify-content: flex-start;

        gap: 4px;
    }

    .legal-service-nav a {

        padding: 10px 13px;

        font-size: 13px;
    }


    /* -----------------------------------------------------
       SERVICES SECTION
    ----------------------------------------------------- */

    .legal-services-section {

        padding: 70px 0;
    }

    .legal-section-heading {

        margin-bottom: 45px;
    }

    .legal-section-heading h2 {

        font-size: 36px;
    }

    .legal-section-heading p {

        font-size: 14px;
    }


    /* -----------------------------------------------------
       CATEGORY
    ----------------------------------------------------- */

    .legal-service-category {

        padding: 40px 0;
    }

    .legal-category-heading {

        align-items: flex-start;

        gap: 14px;

        margin-bottom: 22px;
    }

    .legal-category-icon {

        width: 52px;
        height: 52px;

        border-radius: 14px;

        font-size: 22px;
    }

    .legal-category-heading span {

        font-size: 10px;

        letter-spacing: 1.5px;
    }

    .legal-category-heading h3 {

        font-size: 23px;
    }

    .legal-category-heading p {

        font-size: 13px;
    }


    /* =====================================================
       IMPORTANT:
       TWO CARDS PER ROW ON MOBILE
    ===================================================== */

    .legal-service-grid {

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;

        width: 100%;
    }


    /* -----------------------------------------------------
       MOBILE SERVICE CARD
    ----------------------------------------------------- */

    .legal-service-card {

        width: 100%;

        min-width: 0;

        padding: 17px 14px;

        border-radius: 15px;
    }

    .legal-service-card > i {

        width: 42px;
        height: 42px;

        margin-bottom: 13px;

        border-radius: 11px;

        font-size: 18px;
    }

    .legal-service-card h4 {

        margin-bottom: 7px;

        font-size: 15px;

        line-height: 1.35;

        overflow-wrap: anywhere;
    }

    .legal-service-card p {

        min-height: auto;

        margin-bottom: 12px;

        font-size: 12px;

        line-height: 1.55;
    }

    .legal-service-card span {

        font-size: 11px;
    }


    /* -----------------------------------------------------
       CTA
    ----------------------------------------------------- */

    .legal-final-cta {

        padding: 20px 0 70px;
    }

    .legal-final-cta-inner {

        padding: 35px 25px;

        border-radius: 22px;

        gap: 25px;
    }

}


/* =========================================================
   SMALL MOBILE
   320px — 480px

   STILL TWO CARDS PER ROW
========================================================= */

@media (max-width: 480px) {

    .legal-container {

        width: calc(100% - 24px);
    }


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

    .legal-hero {

        padding: 55px 0;
    }

    .legal-hero h1 {

        font-size: 36px;

        letter-spacing: -1px;
    }

    .legal-hero p {

        font-size: 14px;
    }

    .legal-hero-actions {

        width: 100%;

        flex-direction: column;

        gap: 10px;
    }

    .legal-btn {

        width: 100%;
    }


    /* -----------------------------------------------------
       HERO DOCUMENT
    ----------------------------------------------------- */

    .legal-document-card {

        width: 100%;

        padding: 18px;

        gap: 12px;

        border-radius: 18px;
    }

    .legal-document-icon {

        width: 50px;
        height: 50px;

        border-radius: 14px;

        font-size: 22px;
    }

    .legal-document-card strong {

        font-size: 14px;
    }

    .legal-document-card span {

        font-size: 11px;
    }

    .legal-floating-card {

        display: none;
    }


    /* -----------------------------------------------------
       SERVICE NAV
    ----------------------------------------------------- */

    .legal-service-nav-inner {

        width: calc(100% - 14px);

        padding: 8px 0;
    }

    .legal-service-nav a {

        padding: 9px 11px;

        font-size: 12px;
    }


    /* -----------------------------------------------------
       SECTION
    ----------------------------------------------------- */

    .legal-services-section {

        padding: 55px 0;
    }

    .legal-section-heading {

        margin-bottom: 35px;
    }

    .legal-section-heading h2 {

        font-size: 31px;

        letter-spacing: -1px;
    }

    .legal-section-heading p {

        font-size: 13px;

        line-height: 1.7;
    }


    /* -----------------------------------------------------
       CATEGORY
    ----------------------------------------------------- */

    .legal-service-category {

        padding: 32px 0;
    }

    .legal-category-heading {

        gap: 11px;
    }

    .legal-category-icon {

        width: 46px;
        height: 46px;

        border-radius: 12px;

        font-size: 19px;
    }

    .legal-category-heading h3 {

        font-size: 20px;
    }

    .legal-category-heading p {

        font-size: 12px;
    }


    /* =====================================================
       TWO CARDS ON SMALL PHONES
    ===================================================== */

    .legal-service-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }


    /* -----------------------------------------------------
       COMPACT MOBILE CARD
    ----------------------------------------------------- */

    .legal-service-card {

        padding: 15px 11px;

        border-radius: 14px;
    }

    .legal-service-card > i {

        width: 38px;
        height: 38px;

        margin-bottom: 10px;

        border-radius: 10px;

        font-size: 17px;
    }

    .legal-service-card h4 {

        margin-bottom: 6px;

        font-size: 14px;

        line-height: 1.3;
    }

    .legal-service-card p {

        margin-bottom: 10px;

        font-size: 11.5px;

        line-height: 1.5;
    }

    .legal-service-card span {

        font-size: 10.5px;
    }


    /* -----------------------------------------------------
       CTA
    ----------------------------------------------------- */

    .legal-final-cta {

        padding-bottom: 55px;
    }

    .legal-final-cta-inner {

        padding: 30px 20px;

        border-radius: 18px;
    }

    .legal-final-cta h2 {

        font-size: 30px;
    }

    .legal-final-cta p {

        font-size: 13px;
    }

}


/* =========================================================
   EXTRA SMALL DEVICES
   Below 360px

   Still maintains 2-column layout.
========================================================= */

@media (max-width: 359px) {

    .legal-container {

        width: calc(100% - 18px);
    }

    .legal-service-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }

    .legal-service-card {

        padding: 13px 9px;

        border-radius: 12px;
    }

    .legal-service-card > i {

        width: 34px;
        height: 34px;

        margin-bottom: 8px;

        font-size: 15px;
    }

    .legal-service-card h4 {

        font-size: 12.5px;
    }

    .legal-service-card p {

        font-size: 10.5px;
    }

    .legal-service-card span {

        font-size: 9.5px;
    }

}


/* =========================================================
   TOUCH DEVICES
========================================================= */

@media (hover: none) {

    .legal-service-card:hover {

        transform: none;

        border-color: var(--legal-border);

        box-shadow: none;
    }

    .legal-service-card:active {

        transform: scale(.98);
    }

    .legal-btn-primary:hover,
    .legal-btn-outline:hover {

        transform: none;
    }

}


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

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

    .legal-service-card,
    .legal-btn,
    .legal-floating-card,
    .legal-service-card::after {

        transition: none;
    }

    .legal-floating-card {

        animation: none;
    }

}