/* =========================================================
   MERA SHATHI
   PRIVACY POLICY — PREMIUM BASE CSS
   File: privacy-policy.css
   ========================================================= */


/* =========================================================
   01. ROOT / PAGE FOUNDATION
   ========================================================= */

:root {
    --policy-blue: #0F4C81;
    --policy-blue-dark: #0B3B63;
    --policy-green: #16A34A;
    --policy-green-dark: #12813B;

    --policy-dark: #0F172A;
    --policy-text: #334155;
    --policy-muted: #64748B;

    --policy-white: #FFFFFF;
    --policy-soft: #F8FAFC;
    --policy-soft-green: #F6FBF8;

    --policy-border: #E2E8F0;
    --policy-border-green: rgba(22, 163, 74, 0.16);

    --policy-shadow:
        0 18px 50px rgba(15, 76, 129, 0.08);

    --policy-shadow-hover:
        0 24px 60px rgba(15, 76, 129, 0.13);

    --policy-radius: 22px;
}


html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}


body {
    background: var(--policy-soft);
    color: var(--policy-text);
}


/* =========================================================
   02. GLOBAL LINKS
   ========================================================= */

.legal-document a {
    color: var(--policy-blue);
    font-weight: 600;
    text-decoration: none;
    transition:
        color 0.3s ease,
        text-decoration-color 0.3s ease;
}


.legal-document a:hover {
    color: var(--policy-green);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================================
   03. PRIVACY HERO
   ========================================================= */

.legal-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding: 72px 0 78px;

    background:
        radial-gradient(
            circle at 12% 20%,
            rgba(22, 163, 74, 0.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 88% 15%,
            rgba(15, 76, 129, 0.12),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #F8FBFF 0%,
            #FFFFFF 48%,
            #F6FBF8 100%
        );
}


.legal-hero::before {
    content: "";

    position: absolute;
    top: -150px;
    right: -120px;

    width: 360px;
    height: 360px;

    border: 1px solid rgba(15, 76, 129, 0.10);
    border-radius: 50%;

    box-shadow:
        0 0 0 45px rgba(15, 76, 129, 0.025),
        0 0 0 90px rgba(22, 163, 74, 0.018);

    pointer-events: none;
    z-index: -1;
}


.legal-hero::after {
    content: "";

    position: absolute;
    bottom: -180px;
    left: -130px;

    width: 360px;
    height: 360px;

    border: 1px dashed rgba(22, 163, 74, 0.16);
    border-radius: 50%;

    pointer-events: none;
    z-index: -1;
}


.legal-hero-content {
    position: relative;

    max-width: 850px;
    margin: 0 auto;

    text-align: center;
}


.legal-badge {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 9px 18px;

    margin-bottom: 18px;

    border: 1px solid rgba(22, 163, 74, 0.18);
    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            rgba(22, 163, 74, 0.10),
            rgba(15, 76, 129, 0.07)
        );

    color: var(--policy-green);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.25px;

    box-shadow:
        0 8px 25px rgba(22, 163, 74, 0.08);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


.legal-badge:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgba(22, 163, 74, 0.13);
}


.legal-badge i {
    font-size: 14px;
}


.legal-hero-content h1 {
    margin: 0 0 18px;

    color: var(--policy-blue);

    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.2px;
}


.legal-hero-content h1 span {
    display: inline;

    background:
        linear-gradient(
            90deg,
            var(--policy-green),
            #22C55E
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
    color: transparent;
}


.legal-hero-content > p {
    max-width: 720px;
    margin: 0 auto;

    color: var(--policy-muted);

    font-size: 15px;
    line-height: 1.85;
}


.legal-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 24px;

    color: var(--policy-muted);

    font-size: 13px;
    font-weight: 500;
}


.legal-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 14px;

    border: 1px solid var(--policy-border);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.78);

    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.045);
}


.legal-meta i {
    color: var(--policy-green);
}


.legal-meta strong {
    color: var(--policy-dark);
    font-weight: 700;
}


/* =========================================================
   04. MAIN LEGAL CONTENT SECTION
   ========================================================= */

.legal-content-section {
    position: relative;

    padding: 78px 0 90px;

    background:
        radial-gradient(
            circle at 95% 10%,
            rgba(22, 163, 74, 0.045),
            transparent 24%
        ),
        linear-gradient(
            180deg,
            #FFFFFF 0%,
            #F8FAFC 100%
        );
}


.legal-layout {
    display: grid;

    grid-template-columns:
        minmax(240px, 280px)
        minmax(0, 1fr);

    align-items: start;

    gap: 38px;
}


/* =========================================================
   05. SIDEBAR
   ========================================================= */

.legal-sidebar {
    position: sticky;
    top: 105px;

    align-self: start;
}


.legal-sidebar-card {
    position: relative;

    overflow: hidden;

    padding: 25px 20px 20px;

    border: 1px solid var(--policy-border);
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            #FFFFFF 0%,
            #F9FCFB 100%
        );

    box-shadow: var(--policy-shadow);
}


.legal-sidebar-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--policy-blue),
            var(--policy-green)
        );
}


.legal-sidebar-card h2 {
    display: flex;
    align-items: center;
    gap: 9px;

    margin: 0 0 18px;
    padding: 0 4px;

    color: var(--policy-blue);

    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}


.legal-sidebar-card h2::before {
    content: "";

    width: 5px;
    height: 22px;

    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            var(--policy-blue),
            var(--policy-green)
        );
}


.legal-sidebar-card nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}


.legal-sidebar-card nav a {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 38px;

    padding: 8px 11px 8px 15px;

    border-radius: 10px;

    color: var(--policy-muted);

    font-size: 12.5px;
    line-height: 1.4;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease;
}


.legal-sidebar-card nav a::before {
    content: "";

    position: absolute;

    left: 0;
    top: 50%;

    width: 3px;
    height: 0;

    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            var(--policy-blue),
            var(--policy-green)
        );

    transform:
        translateY(-50%);

    transition:
        height 0.3s ease;
}


.legal-sidebar-card nav a:hover {
    color: var(--policy-blue);

    background:
        linear-gradient(
            90deg,
            rgba(15, 76, 129, 0.055),
            rgba(22, 163, 74, 0.045)
        );

    transform: translateX(3px);
}


.legal-sidebar-card nav a:hover::before {
    height: 20px;
}


/* =========================================================
   06. LEGAL DOCUMENT
   ========================================================= */

.legal-document {
    position: relative;

    min-width: 0;

    padding: 5px 0;
}


.legal-section {
    position: relative;

    overflow: hidden;

    margin-bottom: 22px;
    padding: 34px 36px 35px;

    border: 1px solid var(--policy-border);
    border-radius: var(--policy-radius);

    background:
        linear-gradient(
            145deg,
            #FFFFFF 0%,
            #FFFFFF 72%,
            #F8FCFA 100%
        );

    box-shadow:
        0 12px 38px rgba(15, 76, 129, 0.055);

    scroll-margin-top: 105px;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


.legal-section::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--policy-blue),
            var(--policy-green)
        );

    transform:
        scaleX(0);

    transform-origin: left;

    transition:
        transform 0.45s cubic-bezier(.22, 1, .36, 1);
}


.legal-section:hover {
    transform: translateY(-3px);

    border-color:
        rgba(15, 76, 129, 0.13);

    box-shadow: var(--policy-shadow-hover);
}


.legal-section:hover::before {
    transform: scaleX(1);
}


/* =========================================================
   07. SECTION NUMBER
   ========================================================= */

.legal-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 27px;

    margin-bottom: 13px;
    padding: 0 10px;

    border: 1px solid rgba(15, 76, 129, 0.10);
    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            rgba(15, 76, 129, 0.075),
            rgba(22, 163, 74, 0.075)
        );

    color: var(--policy-blue);

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
}


/* =========================================================
   08. SECTION HEADINGS
   ========================================================= */

.legal-section h2 {
    margin: 0 0 16px;

    color: var(--policy-blue);

    font-size: clamp(23px, 2.4vw, 30px);
    line-height: 1.25;
    font-weight: 750;
    letter-spacing: -0.45px;
}


.legal-section h3 {
    position: relative;

    margin: 27px 0 10px;
    padding-left: 13px;

    color: var(--policy-dark);

    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
}


.legal-section h3::before {
    content: "";

    position: absolute;

    left: 0;
    top: 4px;

    width: 4px;
    height: 18px;

    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            var(--policy-blue),
            var(--policy-green)
        );
}


/* =========================================================
   09. PARAGRAPHS
   ========================================================= */

.legal-section p {
    margin: 0 0 14px;

    color: var(--policy-text);

    font-size: 14px;
    line-height: 1.85;
}


.legal-section p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   10. LISTS
   ========================================================= */

.legal-section > ul,
.legal-subsection > ul {
    display: flex;
    flex-direction: column;
    gap: 9px;

    margin: 17px 0 4px;
    padding: 0;

    list-style: none;
}


.legal-section > ul li,
.legal-subsection > ul li {
    position: relative;

    padding: 11px 14px 11px 38px;

    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;

    background:
        linear-gradient(
            90deg,
            rgba(248, 250, 252, 0.92),
            rgba(246, 251, 248, 0.78)
        );

    color: var(--policy-text);

    font-size: 13.5px;
    line-height: 1.7;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.legal-section > ul li::before,
.legal-subsection > ul li::before {
    content: "\f058";

    position: absolute;

    left: 14px;
    top: 50%;

    color: var(--policy-green);

    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;

    transform: translateY(-50%);
}


.legal-section > ul li:hover,
.legal-subsection > ul li:hover {
    transform: translateX(4px);

    border-color:
        var(--policy-border-green);

    box-shadow:
        0 8px 22px rgba(22, 163, 74, 0.07);
}


/* =========================================================
   11. SUBSECTIONS
   ========================================================= */

.legal-subsection {
    position: relative;

    margin-top: 22px;
    padding: 19px 20px;

    border: 1px solid rgba(226, 232, 240, 0.82);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #FFFFFF,
            #F9FCFA
        );
}


.legal-subsection h3 {
    margin-top: 0;
}


.legal-subsection > ul {
    margin-bottom: 0;
}


/* =========================================================
   12. CONTACT SECTION
   ========================================================= */

.legal-contact-section {
    padding-bottom: 30px;
    position: relative;
    overflow: hidden;
}


.legal-contact-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    margin-top: 30px;
}

.legal-contact-card {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 132px;

    padding: 24px 26px;

    overflow: hidden;

    border: 1px solid #DDE7EF;
    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #FFFFFF 0%,
            #FCFEFD 55%,
            #F7FBF9 100%
        );

    box-shadow:
        0 10px 30px rgba(15, 76, 129, 0.055);

    transition:
        transform 0.4s cubic-bezier(.22, 1, .36, 1),
        border-color 0.35s ease,
        box-shadow 0.4s ease,
        background 0.4s ease;
}

/* -----------------------------------------
   TOP COLOR ACCENT
----------------------------------------- */

.legal-contact-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--policy-blue),
            var(--policy-green)
        );

    transform:
        scaleX(0);

    transform-origin: left;

    transition:
        transform 0.45s cubic-bezier(.22, 1, .36, 1);
}

/* -----------------------------------------
   SOFT BACKGROUND GLOW
----------------------------------------- */

.legal-contact-card::after {
    content: "";

    position: absolute;

    right: -70px;
    bottom: -80px;

    width: 170px;
    height: 170px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(22, 163, 74, 0.075),
            transparent 68%
        );

    opacity: 0;

    transform: scale(.75);

    transition:
        opacity 0.4s ease,
        transform 0.5s ease;

    pointer-events: none;
}

/* -----------------------------------------
   HOVER
----------------------------------------- */

.legal-contact-card:hover {
    transform: translateY(-6px);

    border-color:
        rgba(22, 163, 74, 0.24);

    background:
        linear-gradient(
            135deg,
            #FFFFFF 0%,
            #FBFEFC 55%,
            #F4FBF7 100%
        );

    box-shadow:
        0 18px 42px rgba(15, 76, 129, 0.105);
}


.legal-contact-card:hover::before {
    transform: scaleX(1);
}


.legal-contact-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* -----------------------------------------
   CONTACT ICON
----------------------------------------- */

.legal-contact-icon {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    flex: 0 0 64px;

    margin-right: 18px;

    border: 1px solid rgba(22, 163, 74, 0.13);
    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            rgba(15, 76, 129, 0.075),
            rgba(22, 163, 74, 0.105)
        );

    color: var(--policy-blue);

    font-size: 22px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 8px 20px rgba(15, 76, 129, 0.055);

    transition:
        transform 0.4s cubic-bezier(.22, 1, .36, 1),
        color 0.3s ease,
        background 0.35s ease,
        box-shadow 0.35s ease;
}

/* Icon inner ring */

.legal-contact-icon::before {
    content: "";

    position: absolute;

    inset: -5px;

    border: 1px dashed rgba(15, 76, 129, 0.10);
    border-radius: 21px;

    opacity: 0;

    transform: scale(.9);

    transition:
        opacity 0.35s ease,
        transform 0.4s ease;
}

/* -----------------------------------------
   ICON HOVER
----------------------------------------- */

.legal-contact-card:hover .legal-contact-icon {
    transform:
        translateY(-2px)
        scale(1.05)
        rotate(-4deg);

    background:
        linear-gradient(
            135deg,
            var(--policy-blue),
            var(--policy-green)
        );

    color: #FFFFFF;

    box-shadow:
        0 12px 28px rgba(15, 76, 129, 0.16);
}

.legal-contact-card:hover .legal-contact-icon::before {
    opacity: 1;
    transform: scale(1);
}

/* -----------------------------------------
   CONTENT
----------------------------------------- */

.legal-contact-card > div {
    position: relative;

    z-index: 2;

    min-width: 0;
}

.legal-contact-card h3 {
    margin: 0 0 6px;
    padding: 0;

    color: var(--policy-dark);

    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}

.legal-contact-card h3::before {
    display: none;
}


.legal-contact-card p {
    margin: 0;

    color: #64748B;

    font-size: 14px;
    line-height: 1.65;
    font-weight: 500;
}

.legal-contact-card p a {
    color: var(--policy-blue);

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition:
        color 0.3s ease;
}

.legal-contact-card p a:hover {
    color: var(--policy-green);

    text-decoration: none;
}



/* =========================================================
   13. FOOTER PAGE TRANSITION
   ========================================================= */

.legal-content-section + .footer {
    position: relative;
}


/* =========================================================
   14. FOCUS ACCESSIBILITY
   ========================================================= */

.legal-sidebar-card nav a:focus-visible,
.legal-document a:focus-visible,
.legal-contact-card a:focus-visible {
    outline: 3px solid rgba(15, 76, 129, 0.20);
    outline-offset: 3px;
    border-radius: 6px;
}


/* =========================================================
   15. SELECTION
   ========================================================= */

.legal-document ::selection {
    background: rgba(22, 163, 74, 0.16);
    color: var(--policy-dark);
}


/* =========================================================
   16. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .legal-badge,
    .legal-sidebar-card nav a,
    .legal-section,
    .legal-section::before,
    .legal-section > ul li,
    .legal-subsection > ul li,
    .legal-contact-card,
    .legal-contact-icon {
        transition: none !important;
    }

    .legal-section:hover,
    .legal-contact-card:hover,
    .legal-sidebar-card nav a:hover,
    .legal-section > ul li:hover,
    .legal-subsection > ul li:hover {
        transform: none !important;
    }

}