/* =========================================================
   YADYO AI
   FOOTER + LEGAL MODALS
   Modern Light Theme
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');


/* =========================================================
   VARIABLES
   ========================================================= */

:root {

    --footer-ink: #08151c;
    --footer-ink-soft: #304651;

    --footer-muted: #73858e;
    --footer-muted-light: #a8b6bd;

    --footer-primary: #0794a3;
    --footer-primary-dark: #056b78;
    --footer-primary-light: #22c9d3;
    --footer-primary-bright: #57e2e7;

    --footer-primary-wash: #e9fbfc;

    --footer-accent: #f2a04a;
    --footer-accent-dark: #d77c20;
    --footer-accent-wash: #fff5e8;

    --footer-success: #17b47e;
    --footer-danger: #e45b5b;

    --footer-surface: rgba(255,255,255,.88);
    --footer-surface-solid: #ffffff;

    --footer-border: rgba(63,103,113,.14);
    --footer-border-strong: rgba(63,103,113,.22);

    --footer-shadow-sm:
        0 8px 25px rgba(7,21,29,.055);

    --footer-shadow-md:
        0 18px 50px rgba(7,21,29,.10);

    --footer-shadow-lg:
        0 30px 90px rgba(7,21,29,.16);

    --footer-shadow-primary:
        0 12px 30px rgba(7,148,163,.20);

    --footer-radius-sm: 12px;
    --footer-radius-md: 18px;
    --footer-radius-lg: 24px;
    --footer-radius-xl: 30px;

    --footer-ease:
        cubic-bezier(.22,1,.36,1);

    --footer-spring:
        cubic-bezier(.34,1.56,.64,1);
}


/* =========================================================
   SIDEBAR FOOTER
   ========================================================= */

.sidebar-footer-note {

    position: relative;

    width: calc(100% - 28px);

    margin: auto 14px 14px;

    padding: 15px 16px 14px;

    border: 1px solid var(--footer-border);

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.94),
            rgba(247,252,252,.86)
        );

    box-shadow:
        0 8px 28px rgba(7,21,29,.055);

    overflow: hidden;

    isolation: isolate;

    flex-shrink: 0;
}


/* üst dekoratif ışık */

.sidebar-footer-note::before {

    content: "";

    position: absolute;

    top: -55px;
    right: -35px;

    width: 120px;
    height: 120px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(34,201,211,.14),
            transparent 68%
        );

    pointer-events: none;

    z-index: -1;
}


/* alt çizgi */

.sidebar-footer-note::after {

    content: "";

    position: absolute;

    left: 16px;
    right: 16px;
    bottom: 0;

    height: 2px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(7,148,163,.35),
            transparent
        );

    opacity: .7;
}


/* =========================================================
   FOOTER BRAND
   ========================================================= */

.footer-note-brand {

    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 9px;

    font-family:
        "Manrope",
        "DM Sans",
        sans-serif;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .12em;

    text-transform: uppercase;

    color: var(--footer-muted);
}


.footer-note-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--footer-primary-light),
            var(--footer-primary)
        );

    box-shadow:
        0 0 0 4px rgba(7,148,163,.08),
        0 0 15px rgba(7,148,163,.25);
}


/* =========================================================
   FOOTER LINKS
   ========================================================= */

.footer-note-links {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    line-height: 1.4;
}


.footer-note-link {

    position: relative;

    padding: 0;

    color: var(--footer-ink-soft);

    font-family:
        "DM Sans",
        sans-serif;

    font-size: 11px;

    font-weight: 600;

    transition:
        color .2s ease,
        transform .2s var(--footer-ease);
}


.footer-note-link::after {

    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -2px;

    height: 1px;

    border-radius: 999px;

    background: currentColor;

    transform:
        scaleX(0);

    transform-origin: right;

    transition:
        transform .25s var(--footer-ease);
}


.footer-note-link:hover {

    color: var(--footer-primary);

    transform: translateY(-1px);
}


.footer-note-link:hover::after {

    transform:
        scaleX(1);

    transform-origin: left;
}


.footer-note-separator {

    color: #c0cdd1;

    font-size: 10px;

    user-select: none;
}


/* =========================================================
   COPYRIGHT
   ========================================================= */

.footer-note-copy {

    margin-top: 8px;

    color: var(--footer-muted-light);

    font-size: 9px;

    line-height: 1.5;

    font-weight: 500;
}


/* =========================================================
   MODAL OVERLAY
   ========================================================= */

.legal-modal-overlay {

    position: fixed;

    inset: 0;

    z-index: 999999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        rgba(5,20,25,.34);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .28s ease,
        visibility .28s ease;
}


/* açık */

.legal-modal-overlay.active {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


/* =========================================================
   MODAL
   ========================================================= */

.legal-modal {

    position: relative;

    width: min(680px, 100%);

    max-height: min(780px, calc(100vh - 48px));

    display: flex;

    flex-direction: column;

    overflow: hidden;

    border:
        1px solid rgba(63,103,113,.16);

    border-radius:
        28px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fbfefe 55%,
            #f7fcfc 100%
        );

    box-shadow:
        0 35px 100px rgba(7,21,29,.22),
        0 8px 30px rgba(7,21,29,.08);

    transform:
        translateY(22px)
        scale(.97);

    opacity: 0;

    transition:
        transform .38s var(--footer-ease),
        opacity .28s ease;
}


/* modal açılınca */

.legal-modal-overlay.active .legal-modal {

    transform:
        translateY(0)
        scale(1);

    opacity: 1;
}


/* =========================================================
   MODAL HEADER
   ========================================================= */

.legal-modal-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding:
        22px 24px 20px;

    border-bottom:
        1px solid rgba(63,103,113,.10);

    background:
        rgba(255,255,255,.76);

    flex-shrink: 0;
}


.legal-modal-heading {

    display: flex;

    align-items: center;

    gap: 14px;

    min-width: 0;
}


/* =========================================================
   MODAL ICON
   ========================================================= */

.legal-modal-icon {

    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: grid;

    place-items: center;

    border-radius: 15px;

    border:
        1px solid rgba(7,148,163,.12);

    background:
        linear-gradient(
            145deg,
            #effcfd,
            #e5f9fa
        );

    color: var(--footer-primary);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.9);
}


.legal-modal-icon svg {

    width: 23px;
    height: 23px;

    stroke-width: 1.8;
}


.terms-icon {

    color: var(--footer-accent-dark);

    border-color:
        rgba(242,160,74,.15);

    background:
        linear-gradient(
            145deg,
            #fff8ed,
            #fff1dc
        );
}


/* =========================================================
   MODAL TITLE
   ========================================================= */

.legal-modal-eyebrow {

    display: block;

    margin-bottom: 3px;

    color:
        var(--footer-primary);

    font-size: 9px;

    line-height: 1;

    font-weight: 800;

    letter-spacing: .13em;

    text-transform: uppercase;
}


.legal-modal-heading h2 {

    color:
        var(--footer-ink);

    font-family:
        "Manrope",
        "DM Sans",
        sans-serif;

    font-size: 20px;

    line-height: 1.2;

    font-weight: 800;

    letter-spacing: -.025em;
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.legal-modal-close {

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: grid;

    place-items: center;

    border:
        1px solid rgba(63,103,113,.11);

    border-radius: 12px;

    background:
        #f7fafb;

    color:
        var(--footer-muted);

    transition:
        all .22s var(--footer-ease);
}


.legal-modal-close svg {

    width: 17px;
    height: 17px;

    stroke-width: 2;
}


.legal-modal-close:hover {

    color:
        var(--footer-danger);

    border-color:
        rgba(228,91,91,.18);

    background:
        #fff4f4;

    transform:
        rotate(4deg);
}


/* =========================================================
   MODAL BODY
   ========================================================= */

.legal-modal-body {

    padding:
        24px;

    overflow-y: auto;

    overscroll-behavior: contain;

    scrollbar-width: thin;

    scrollbar-color:
        rgba(7,148,163,.22)
        transparent;
}


.legal-modal-body::-webkit-scrollbar {

    width: 6px;
}


.legal-modal-body::-webkit-scrollbar-track {

    background: transparent;
}


.legal-modal-body::-webkit-scrollbar-thumb {

    border-radius: 999px;

    background:
        rgba(7,148,163,.20);
}


.legal-modal-body::-webkit-scrollbar-thumb:hover {

    background:
        rgba(7,148,163,.34);
}


/* =========================================================
   INTRO
   ========================================================= */

.legal-intro {

    position: relative;

    margin-bottom: 22px;

    padding:
        17px 18px;

    border:
        1px solid rgba(7,148,163,.10);

    border-radius:
        16px;

    background:
        linear-gradient(
            135deg,
            rgba(233,251,252,.86),
            rgba(255,255,255,.9)
        );
}


.legal-intro::before {

    content: "";

    position: absolute;

    left: 0;
    top: 15px;
    bottom: 15px;

    width: 3px;

    border-radius: 999px;

    background:
        linear-gradient(
            180deg,
            var(--footer-primary-light),
            var(--footer-primary)
        );
}


.legal-intro strong {

    display: block;

    margin-bottom: 6px;

    padding-left: 4px;

    color:
        var(--footer-ink);

    font-size: 13px;

    font-weight: 800;
}


.legal-intro p {

    padding-left: 4px;

    color:
        var(--footer-muted);

    font-size: 12px;

    line-height: 1.7;
}


/* =========================================================
   LEGAL SECTIONS
   ========================================================= */

.legal-section {

    padding:
        16px 0;

    border-bottom:
        1px solid rgba(63,103,113,.08);
}


.legal-section:last-child {

    border-bottom: 0;

    padding-bottom: 2px;
}


.legal-section h3 {

    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 7px;

    color:
        var(--footer-ink-soft);

    font-family:
        "Manrope",
        "DM Sans",
        sans-serif;

    font-size: 13px;

    font-weight: 800;
}


.legal-section h3::before {

    content: "";

    width: 6px;
    height: 6px;

    flex: 0 0 6px;

    border-radius: 50%;

    background:
        var(--footer-primary);

    box-shadow:
        0 0 0 4px rgba(7,148,163,.07);
}


.legal-section p {

    color:
        var(--footer-muted);

    font-size: 12px;

    line-height: 1.75;
}


/* =========================================================
   MODAL FOOTER
   ========================================================= */

.legal-modal-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding:
        16px 24px;

    border-top:
        1px solid rgba(63,103,113,.10);

    background:
        rgba(248,252,252,.82);

    flex-shrink: 0;
}


.legal-modal-footer > span {

    color:
        var(--footer-muted-light);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .08em;

    text-transform: uppercase;
}


/* =========================================================
   OK BUTTON
   ========================================================= */

.legal-modal-ok {

    min-width: 92px;

    height: 38px;

    padding:
        0 18px;

    border-radius: 12px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            var(--footer-primary-light),
            var(--footer-primary)
        );

    box-shadow:
        0 8px 20px rgba(7,148,163,.20);

    font-size: 11px;

    font-weight: 700;

    transition:
        transform .22s var(--footer-spring),
        box-shadow .22s ease;
}


.legal-modal-ok:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 26px rgba(7,148,163,.28);
}


.legal-modal-ok:active {

    transform:
        translateY(0)
        scale(.97);
}


/* =========================================================
   BODY MODAL AÇIKKEN SCROLL
   ========================================================= */

body.legal-modal-open {

    overflow: hidden;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .sidebar-footer-note {

        width: calc(100% - 24px);

        margin-left: 12px;
        margin-right: 12px;
        margin-bottom: 12px;

        padding: 14px;
    }

    .legal-modal {

        width: min(640px, 100%);
    }

}


/* =========================================================
   MOBİL
   ========================================================= */

@media (max-width: 650px) {

    .legal-modal-overlay {

        align-items: flex-end;

        padding:
            0;
    }


    .legal-modal {

        width: 100%;

        max-height:
            calc(100vh - 20px);

        border-radius:
            25px 25px 0 0;

        transform:
            translateY(35px)
            scale(1);

        border-bottom:
            0;
    }


    .legal-modal-overlay.active .legal-modal {

        transform:
            translateY(0)
            scale(1);
    }


    .legal-modal-header {

        padding:
            18px 18px 16px;
    }


    .legal-modal-icon {

        width: 43px;
        height: 43px;

        flex-basis: 43px;

        border-radius: 13px;
    }


    .legal-modal-heading h2 {

        font-size: 17px;
    }


    .legal-modal-body {

        padding:
            18px;
    }


    .legal-modal-footer {

        padding:
            14px 18px;

        padding-bottom:
            max(14px, env(safe-area-inset-bottom));
    }


    .legal-modal-ok {

        height: 36px;

        min-width: 84px;
    }

}


/* =========================================================
   KÜÇÜK TELEFON
   ========================================================= */

@media (max-width: 420px) {

    .sidebar-footer-note {

        padding:
            13px;
    }


    .footer-note-links {

        gap: 5px;
    }


    .footer-note-link {

        font-size: 10px;
    }


    .footer-note-copy {

        font-size: 8px;
    }


    .legal-modal-body {

        padding:
            16px;
    }


    .legal-intro {

        padding:
            15px;
    }


    .legal-section p {

        font-size: 11.5px;

        line-height: 1.7;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .legal-modal-overlay,
    .legal-modal,
    .legal-modal-close,
    .legal-modal-ok,
    .footer-note-link {

        transition: none !important;
    }

}