/* =========================================================
   MTAAHELP — MODERN POLICY PAGES
   Privacy • Terms • Cookies
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* =========================================================
   ROOT
   ========================================================= */

:root {
    --green: #16a34a;
    --green-light: #22c55e;
    --green-bright: #4ade80;
    --green-dark: #15803d;
    --green-deep: #0f7a39;

    --bg: #f4faf6;
    --surface: #ffffff;
    --surface-soft: #f0f8f2;

    --text: #17251c;
    --text-dark: #102118;
    --muted: #647067;

    --border: #dfe9e2;
    --border-light: #eaf1ec;

    --shadow-sm: 0 4px 15px rgba(20, 55, 32, 0.06);
    --shadow-md: 0 12px 35px rgba(20, 55, 32, 0.09);
    --shadow-lg: 0 22px 55px rgba(20, 55, 32, 0.13);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition: 0.25s ease;
}


/* =========================================================
   BODY
   ========================================================= */

body {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(34, 197, 94, 0.07),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 30%,
            rgba(22, 163, 74, 0.05),
            transparent 25%
        ),
        var(--bg);

    color: var(--text);

    line-height: 1.75;

    min-height: 100vh;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/* =========================================================
   LINKS
   ========================================================= */

a {
    color: var(--green-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    position: sticky;
    top: 0;

    z-index: 100;

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

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(223, 233, 226, 0.85);

    box-shadow:
        0 4px 18px rgba(20, 55, 32, 0.04);
}


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

.nav {
    width: min(1120px, calc(100% - 40px));

    margin: auto;

    min-height: 72px;

    padding: 12px 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}


/* =========================================================
   BRAND
   ========================================================= */

.brand {
    display: inline-flex;

    align-items: center;

    gap: 11px;

    color: var(--green-dark);

    font-size: 22px;

    font-weight: 850;

    letter-spacing: -0.6px;

    white-space: nowrap;

    transition:
        transform var(--transition),
        opacity var(--transition);
}

.brand:hover {
    text-decoration: none;

    transform: translateY(-1px);

    opacity: 0.96;
}


/* =========================================================
   MODERN MTAAHELP BADGE
   ========================================================= */

.brand-mark {
    width: 43px;
    height: 43px;

    border-radius: 14px;

    display: grid;

    place-items: center;

    position: relative;

    overflow: hidden;

    color: #ffffff;

    font-size: 20px;

    font-weight: 900;

    letter-spacing: -1px;

    background:
        linear-gradient(
            135deg,
            var(--green-deep) 0%,
            var(--green) 48%,
            var(--green-light) 100%
        );

    box-shadow:
        0 8px 20px rgba(22, 163, 74, 0.26),
        inset 0 1px 1px rgba(255, 255, 255, 0.35);

    transition:
        transform var(--transition),
        box-shadow var(--transition);
}


/* Shine */

.brand-mark::before {
    content: "";

    position: absolute;

    width: 75px;
    height: 75px;

    top: -44px;
    left: -28px;

    border-radius: 50%;

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

    pointer-events: none;
}


/* Inner border */

.brand-mark::after {
    content: "";

    position: absolute;

    inset: 2px;

    border-radius: 12px;

    border: 1px solid rgba(255, 255, 255, 0.22);

    pointer-events: none;
}


.brand:hover .brand-mark {
    transform:
        translateY(-2px)
        rotate(-2deg)
        scale(1.04);

    box-shadow:
        0 13px 28px rgba(22, 163, 74, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.45);
}


/* =========================================================
   NAV LINKS
   ========================================================= */

.nav-links {
    display: flex;

    align-items: center;

    gap: 5px;

    flex-wrap: wrap;
}

.nav-links a {
    position: relative;

    padding: 9px 13px;

    border-radius: 10px;

    color: #435047;

    font-size: 14px;

    font-weight: 650;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.nav-links a:hover {
    background: #edf8f0;

    color: var(--green-dark);

    transform: translateY(-1px);
}


/* Active-looking state based on current page */

.nav-links a[href*="privacy-policy"] {
    transition: all var(--transition);
}

.nav-links a[href*="terms-and-conditions"] {
    transition: all var(--transition);
}

.nav-links a[href*="cookie-policy"] {
    transition: all var(--transition);
}


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

.hero {
    position: relative;

    overflow: hidden;

    color: #ffffff;

    padding:
        78px 22px
        82px;

    background:
        linear-gradient(
            135deg,
            #0b6831 0%,
            #0f7a39 28%,
            #16a34a 62%,
            #22c55e 100%
        );

    isolation: isolate;
}


/* Decorative circles */

.hero::before {
    content: "";

    position: absolute;

    width: 330px;
    height: 330px;

    top: -180px;
    right: -90px;

    border-radius: 50%;

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

    z-index: -1;
}

.hero::after {
    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

    bottom: -140px;
    left: 8%;

    border-radius: 50%;

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

    z-index: -1;
}


.hero-inner {
    width: min(900px, 100%);

    margin: auto;

    position: relative;

    z-index: 2;
}


/* =========================================================
   EYEBROW
   ========================================================= */

.eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    text-transform: uppercase;

    letter-spacing: 0.14em;

    font-size: 11px;

    font-weight: 850;

    opacity: 0.92;

    margin-bottom: 8px;
}

.eyebrow::before {
    content: "";

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #bbf7d0;

    box-shadow:
        0 0 0 5px rgba(187, 247, 208, 0.13);
}


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

.hero h1 {
    font-size: clamp(34px, 5vw, 52px);

    line-height: 1.08;

    letter-spacing: -1.5px;

    margin: 10px 0 15px;

    font-weight: 850;
}

.hero p {
    max-width: 760px;

    font-size: 16px;

    line-height: 1.7;

    color: rgba(255, 255, 255, 0.91);
}

.updated {
    display: inline-flex;

    margin-top: 20px;

    padding: 7px 12px;

    border-radius: 999px;

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

    border:
        1px solid rgba(255, 255, 255, 0.15);

    font-size: 12px;

    color: rgba(255, 255, 255, 0.86);
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.layout {
    width: min(920px, calc(100% - 40px));

    margin: 42px auto 0;

    padding-bottom: 80px;
}


/* =========================================================
   POLICY CARD
   ========================================================= */

.policy-card {
    position: relative;

    background: var(--surface);

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

    border-radius: var(--radius-lg);

    padding: 38px;

    box-shadow: var(--shadow-md);

    overflow: hidden;
}


/* subtle top highlight */

.policy-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--green-dark),
            var(--green),
            var(--green-light)
        );
}


/* =========================================================
   TABLE OF CONTENTS
   ========================================================= */

.toc {
    background:
        linear-gradient(
            135deg,
            #f0f8f2,
            #f8fcf9
        );

    border:
        1px solid #dcecdf;

    border-radius: 17px;

    padding: 22px;

    margin-bottom: 38px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.toc strong {
    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 13px;

    color: var(--text-dark);

    font-size: 15px;
}

.toc strong::before {
    content: "";

    width: 7px;
    height: 22px;

    border-radius: 5px;

    background:
        linear-gradient(
            180deg,
            var(--green),
            var(--green-light)
        );
}

.toc a {
    display: block;

    padding: 6px 10px;

    margin: 2px 0;

    border-radius: 8px;

    color: #496052;

    font-size: 14px;

    transition:
        background var(--transition),
        color var(--transition),
        padding var(--transition);
}

.toc a:hover {
    background: rgba(22, 163, 74, 0.08);

    color: var(--green-dark);

    padding-left: 14px;
}


/* =========================================================
   SECTIONS
   ========================================================= */

section {
    scroll-margin-top: 100px;

    margin-top: 42px;

    animation:
        policyFade 0.5s ease both;
}

section:first-of-type {
    margin-top: 0;
}


@keyframes policyFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   HEADINGS
   ========================================================= */

h2 {
    position: relative;

    font-size: 25px;

    line-height: 1.3;

    letter-spacing: -0.4px;

    margin-bottom: 13px;

    padding-left: 15px;

    color: #183522;
}

h2::before {
    content: "";

    position: absolute;

    left: 0;
    top: 4px;

    width: 4px;
    height: calc(100% - 8px);

    border-radius: 5px;

    background:
        linear-gradient(
            180deg,
            var(--green),
            var(--green-light)
        );
}


h3 {
    font-size: 18px;

    line-height: 1.4;

    margin:
        24px 0
        8px;

    color: #21432c;
}


/* =========================================================
   TEXT
   ========================================================= */

p {
    margin-bottom: 14px;

    color: #46534b;

    font-size: 15px;
}

ul {
    margin:
        0
        0
        18px
        22px;
}

li {
    margin: 7px 0;

    color: #46534b;

    font-size: 15px;
}

li::marker {
    color: var(--green);
}


/* =========================================================
   NOTE / IMPORTANT BOX
   ========================================================= */

.note {
    position: relative;

    margin-top: 38px;

    padding:
        17px
        18px
        17px
        20px;

    border:
        1px solid #cfe8d5;

    border-left:
        5px solid var(--green);

    border-radius:
        0
        14px
        14px
        0;

    background:
        linear-gradient(
            135deg,
            #eff9f1,
            #f8fcf9
        );

    color: #3d5143;

    box-shadow: var(--shadow-sm);

    font-size: 14px;
}

.note strong {
    color: var(--green-dark);
}


/* =========================================================
   SMALL TEXT
   ========================================================= */

.small {
    font-size: 13px;

    color: var(--muted);
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #0c1911,
            #102118 55%,
            #12291b
        );

    color: #cbd7cf;

    padding:
        42px
        22px;
}


/* footer glow */

.footer::before {
    content: "";

    position: absolute;

    width: 240px;
    height: 240px;

    right: -100px;
    top: -150px;

    border-radius: 50%;

    background:
        rgba(34, 197, 94, 0.08);
}


.footer-inner {
    width: min(1120px, 100%);

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    flex-wrap: wrap;

    position: relative;

    z-index: 2;
}


.footer strong {
    color: #ffffff;

    font-size: 18px;

    font-weight: 800;
}


.footer a {
    display: inline-block;

    color: #b9e8c6;

    margin-right: 18px;

    font-size: 13px;

    font-weight: 600;

    transition:
        color var(--transition),
        transform var(--transition);
}

.footer a:hover {
    color: #ffffff;

    transform: translateY(-1px);
}


/* =========================================================
   KEYBOARD ACCESSIBILITY
   ========================================================= */

a:focus-visible {
    outline:
        3px solid rgba(34, 197, 94, 0.35);

    outline-offset: 3px;

    border-radius: 6px;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 850px) {

    .nav {
        width: min(100% - 30px, 1120px);
    }

    .policy-card {
        padding: 30px;
    }

    .hero {
        padding:
            65px 22px
            70px;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .header {
        position: relative;
    }

    .nav {
        width: calc(100% - 28px);

        padding:
            13px 0
            16px;

        align-items: flex-start;

        flex-direction: column;

        gap: 12px;
    }

    .brand {
        font-size: 21px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .nav-links {
        width: 100%;

        gap: 5px;
    }

    .nav-links a {
        padding:
            8px
            10px;

        font-size: 13px;
    }

    .hero {
        padding:
            52px
            18px
            58px;
    }

    .hero h1 {
        font-size: 35px;

        letter-spacing: -1px;
    }

    .hero p {
        font-size: 15px;
    }

    .layout {
        width: calc(100% - 24px);

        margin-top: 25px;

        padding-bottom: 55px;
    }

    .policy-card {
        padding:
            25px
            19px;

        border-radius: 19px;
    }

    .toc {
        padding: 17px;

        margin-bottom: 30px;
    }

    section {
        margin-top: 34px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 17px;
    }

    p,
    li {
        font-size: 14.5px;
    }

    .footer {
        padding:
            35px
            18px;
    }

    .footer-inner {
        align-items: flex-start;

        flex-direction: column;

        gap: 20px;
    }

    .footer a {
        margin:
            0
            12px
            8px
            0;
    }
}


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

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   MTAAHELP — DARK MODE
   Privacy • Terms • Cookies
   Shared theme key: mtaahelp_theme
   ========================================================= */

html.dark-mode {
    color-scheme: dark;

    --green: #22c55e;
    --green-light: #4ade80;
    --green-bright: #86efac;
    --green-dark: #22c55e;
    --green-deep: #16a34a;

    --bg: #0b1510;
    --surface: #122019;
    --surface-soft: #17281e;

    --text: #e5eee8;
    --text-dark: #f1f8f3;
    --muted: #9eafa4;

    --border: #294034;
    --border-light: #22362a;

    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 12px 35px rgba(0, 0, 0, 0.30);
    --shadow-lg: 0 22px 55px rgba(0, 0, 0, 0.38);
}


/* =========================================================
   BODY
   ========================================================= */

html.dark-mode body {
    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(34, 197, 94, 0.07),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 30%,
            rgba(34, 197, 94, 0.05),
            transparent 25%
        ),
        var(--bg);

    color: var(--text);
}


/* =========================================================
   LINKS
   ========================================================= */

html.dark-mode a {
    color: #4ade80;
}


/* =========================================================
   HEADER
   ========================================================= */

html.dark-mode .header {
    background: rgba(12, 24, 17, 0.90);

    border-bottom-color: rgba(55, 78, 63, 0.85);

    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.24);
}


/* =========================================================
   BRAND
   ========================================================= */

html.dark-mode .brand {
    color: #4ade80;
}

html.dark-mode .brand-mark {
    box-shadow:
        0 8px 20px rgba(34, 197, 94, 0.22),
        inset 0 1px 1px rgba(255, 255, 255, 0.20);
}

html.dark-mode .brand:hover .brand-mark {
    box-shadow:
        0 13px 28px rgba(34, 197, 94, 0.30),
        inset 0 1px 1px rgba(255, 255, 255, 0.28);
}


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

html.dark-mode .nav-links a {
    color: #b8c8be;
}

html.dark-mode .nav-links a:hover {
    background: rgba(34, 197, 94, 0.12);

    color: #4ade80;
}


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

html.dark-mode .hero {
    background:
        linear-gradient(
            135deg,
            #074621 0%,
            #0a5d2c 28%,
            #11803b 62%,
            #16a34a 100%
        );
}

html.dark-mode .hero p {
    color: rgba(255, 255, 255, 0.90);
}

html.dark-mode .updated {
    background: rgba(255, 255, 255, 0.10);

    border-color: rgba(255, 255, 255, 0.16);

    color: rgba(255, 255, 255, 0.84);
}


/* =========================================================
   POLICY CARD
   ========================================================= */

html.dark-mode .policy-card {
    background: var(--surface);

    border-color: var(--border);

    box-shadow: var(--shadow-md);
}


/* =========================================================
   TABLE OF CONTENTS
   ========================================================= */

html.dark-mode .toc {
    background:
        linear-gradient(
            135deg,
            #16271d,
            #13231a
        );

    border-color: #2b4635;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

html.dark-mode .toc strong {
    color: #edf7f0;
}

html.dark-mode .toc a {
    color: #b0c1b6;
}

html.dark-mode .toc a:hover {
    background: rgba(34, 197, 94, 0.12);

    color: #4ade80;
}


/* =========================================================
   HEADINGS
   ========================================================= */

html.dark-mode h2 {
    color: #e8f3eb;
}

html.dark-mode h3 {
    color: #cde2d3;
}


/* =========================================================
   TEXT
   ========================================================= */

html.dark-mode p,
html.dark-mode li {
    color: #b5c3ba;
}

html.dark-mode li::marker {
    color: #4ade80;
}


/* =========================================================
   NOTE / IMPORTANT BOX
   ========================================================= */

html.dark-mode .note {
    border-color: #31563e;

    background:
        linear-gradient(
            135deg,
            #162a1d,
            #13231a
        );

    color: #b9cabe;

    box-shadow: var(--shadow-sm);
}

html.dark-mode .note strong {
    color: #4ade80;
}


/* =========================================================
   SMALL TEXT
   ========================================================= */

html.dark-mode .small {
    color: #93a59a;
}


/* =========================================================
   FOOTER
   ========================================================= */

html.dark-mode .footer {
    background:
        linear-gradient(
            135deg,
            #060d09,
            #0b1710 55%,
            #0d2014
        );

    color: #aebdb4;
}

html.dark-mode .footer strong {
    color: #f2f8f4;
}

html.dark-mode .footer a {
    color: #9fe0ad;
}

html.dark-mode .footer a:hover {
    color: #ffffff;
}


/* =========================================================
   KEYBOARD ACCESSIBILITY
   ========================================================= */

html.dark-mode a:focus-visible {
    outline-color: rgba(74, 222, 128, 0.55);
}


/* =========================================================
   SELECTION
   ========================================================= */

html.dark-mode ::selection {
    background: rgba(34, 197, 94, 0.28);

    color: #ffffff;
}


/* =========================================================
   MOBILE DARK MODE
   ========================================================= */

@media (max-width: 700px) {

    html.dark-mode .header {
        background: rgba(12, 24, 17, 0.94);
    }

    html.dark-mode .policy-card {
        background: #122019;
    }

    html.dark-mode .toc {
        background:
            linear-gradient(
                135deg,
                #16271d,
                #13231a
            );
    }
}


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

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

    html.dark-mode *,
    html.dark-mode *::before,
    html.dark-mode *::after {
        transition-duration: 0.01ms !important;
    }
}