﻿/* ==========================================
   BABUSPACE LEGAL PAGES
========================================== */

html {
    scroll-behavior: smooth;
}

.legal-container {
    width: min(1180px, 90%);
    margin: 0 auto;
}


/* ==========================================
   HERO
========================================== */

.legal-hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0 90px;
    background: linear-gradient( 135deg, #f3fffc 0%, #ffffff 55%, #ebfaf7 100% );
}

    .legal-hero .legal-container {
        position: relative;
        z-index: 2;
    }

.legal-eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    color: #009688;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}

.legal-hero h1 {
    max-width: 850px;
    margin: 0;
    color: #17252a;
    font-size: clamp(46px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
}

    .legal-hero h1 span {
        display: block;
        color: #009688;
    }

.legal-hero p {
    max-width: 700px;
    margin-top: 25px;
    color: #5f6d70;
    font-size: 18px;
    line-height: 1.8;
}

.legal-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

    .legal-meta span {
        padding: 8px 14px;
        border-radius: 30px;
        background: rgba(0, 150, 136, 0.08);
        color: #08766d;
        font-size: 13px;
        font-weight: 600;
    }

.legal-shape {
    position: absolute;
    border-radius: 50%;
}

.legal-shape-one {
    width: 420px;
    height: 420px;
    right: -120px;
    top: -130px;
    background: rgba(0, 150, 136, 0.07);
    animation: legalFloatOne 11s ease-in-out infinite;
}

.legal-shape-two {
    width: 210px;
    height: 210px;
    right: 270px;
    bottom: -100px;
    background: rgba(0, 150, 136, 0.06);
    animation: legalFloatTwo 14s ease-in-out infinite;
}

@keyframes legalFloatOne {

    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-8px, 10px);
    }
}

@keyframes legalFloatTwo {

    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(7px, -9px);
    }
}


/* ==========================================
   SECTIONS
========================================== */

.legal-section {
    padding: 100px 0;
    background: white;
}

.legal-section-alt {
    background: #f7faf9;
}

.legal-heading {
    max-width: 760px;
    margin-bottom: 50px;
}

    .legal-heading > span {
        display: block;
        margin-bottom: 12px;
        color: #009688;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 2.5px;
    }

    .legal-heading h2 {
        margin: 0;
        color: #17252a;
        font-size: clamp(34px, 4vw, 50px);
        font-weight: 700;
        line-height: 1.15;
    }

    .legal-heading p {
        margin-top: 18px;
        color: #687579;
        font-size: 17px;
        line-height: 1.8;
    }


/* ==========================================
   MAIN POLICY CARD
========================================== */

.legal-main-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 35px;
    border: 1px solid #dceeea;
    border-radius: 24px;
    background: linear-gradient( 135deg, #effbf9, #f9fdfc );
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .legal-main-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 45px rgba(20, 70, 65, 0.09);
    }

.legal-main-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #009688;
    color: white;
    font-size: 28px;
}

.legal-document-code {
    display: block;
    margin-bottom: 8px;
    color: #009688;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.legal-main-content h3 {
    margin: 0 0 8px;
    color: #17252a;
    font-size: 25px;
}

.legal-main-content p {
    max-width: 680px;
    margin: 0;
    color: #687579;
    line-height: 1.7;
}

.legal-main-arrow {
    color: #009688;
    font-size: 28px;
}


/* ==========================================
   CARDS
========================================== */

.legal-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.legal-card {
    padding: 32px;
    border: 1px solid #e1ebea;
    border-radius: 20px;
    background: white;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    .legal-card:hover {
        transform: translateY(-5px);
        border-color: #bae0db;
        box-shadow: 0 17px 40px rgba(20, 70, 65, 0.08);
    }

.legal-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    border-radius: 15px;
    background: #e8f7f4;
    color: #00897b;
    font-size: 23px;
}

.legal-card h3 {
    margin: 0 0 12px;
    color: #17252a;
    font-size: 20px;
}

.legal-card p {
    margin: 0;
    color: #687579;
    line-height: 1.7;
}


/* ==========================================
   POLICY
========================================== */

.legal-policy {
    padding: 105px 0;
    background: #ffffff;
    border-top: 1px solid #edf1f0;
}

.legal-policy-header {
    margin-bottom: 55px;
}

    .legal-policy-header h2 {
        margin: 5px 0 10px;
        color: #17252a;
        font-size: clamp(38px, 5vw, 56px);
    }

    .legal-policy-header p {
        color: #748083;
    }

.legal-policy-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 65px;
    align-items: start;
}


/* ==========================================
   SIDEBAR
========================================== */

.legal-sidebar {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: 18px;
    background: #f6faf9;
}

.legal-sidebar-title {
    margin-bottom: 15px;
    color: #17252a;
    font-weight: 700;
}

.legal-sidebar a {
    padding: 8px 0;
    color: #687579;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .legal-sidebar a:hover {
        color: #009688;
    }


/* ==========================================
   POLICY CONTENT
========================================== */

.legal-policy-content {
    max-width: 800px;
}

.legal-policy-block {
    scroll-margin-top: 120px;
    padding-bottom: 45px;
    margin-bottom: 45px;
    border-bottom: 1px solid #e8eded;
}

    .legal-policy-block:last-child {
        border-bottom: none;
    }

    .legal-policy-block h3 {
        margin-bottom: 18px;
        color: #17252a;
        font-size: 27px;
    }

    .legal-policy-block p,
    .legal-policy-block li {
        color: #5f6d70;
        font-size: 16px;
        line-height: 1.85;
    }

    .legal-policy-block a {
        color: #008f82;
        font-weight: 600;
    }

    .legal-policy-block li {
        margin-bottom: 9px;
    }

.legal-note {
    margin-top: 20px;
    padding: 18px 20px;
    border-left: 4px solid #009688;
    border-radius: 0 12px 12px 0;
    background: #eff9f7;
    color: #48605d;
    line-height: 1.7;
}

/* Clickable legal policy cards */
a.legal-card {
    color: inherit;
    text-decoration: none;
}

a.legal-card:hover {
     color: inherit;
     text-decoration: none;
}

/* ==========================================
   CONTACT
========================================== */

.legal-contact {
    padding: 30px 0 110px;
}

.legal-contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 55px 60px;
    border-radius: 28px;
    background: linear-gradient( 135deg, #063c37, #08796f );
    color: white;
}

    .legal-contact-card span {
        display: block;
        margin-bottom: 12px;
        color: #70e3d7;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 2.3px;
    }

    .legal-contact-card h2 {
        margin: 0 0 13px;
        font-size: 36px;
    }

    .legal-contact-card p {
        max-width: 580px;
        margin: 0;
        color: rgba(255,255,255,0.78);
        line-height: 1.7;
    }

.legal-contact-button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 23px;
    border-radius: 50px;
    background: white;
    color: #08796f;
    font-weight: 700;
    text-decoration: none;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 950px) {

    .legal-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .legal-policy-layout {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: static;
    }

    .legal-contact-card {
        flex-direction: column;
        align-items: flex-start;
    }
}


@media (max-width: 650px) {

    .legal-hero {
        padding: 75px 0;
    }

        .legal-hero h1 {
            font-size: 43px;
        }

    .legal-section,
    .legal-policy {
        padding: 75px 0;
    }

    .legal-card-grid {
        grid-template-columns: 1fr;
    }

    .legal-main-card {
        grid-template-columns: 1fr;
    }

    .legal-main-arrow {
        display: none;
    }

    .legal-contact-card {
        padding: 40px 28px;
    }
}
