/* ==========================================================================
   LINKORA - TERMENI SI CONDITII
   Cinematic / Glass / Gold
   ========================================================================== */

:root {
    --gold: #ffc94b;
    --gold-light: #ffe5a0;
    --gold-deep: #d99620;

    --white: #f7f8fc;
    --muted: rgba(235, 239, 248, .72);

    --glass: rgba(8, 13, 25, .22);
    --border: rgba(235, 241, 255, .32);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;

    color: var(--white);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: #05070d;
}

button,
a {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ==========================================================================
   PAGE
   ========================================================================== */

.terms-page {
    position: relative;

    min-height: 100svh;

    overflow: visible;

    isolation: isolate;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, .34),
            rgba(0, 0, 0, .05) 35%,
            rgba(0, 0, 0, .12) 70%,
            rgba(0, 0, 0, .58)
        ),
        url("../images/fundallogin.png")
        center center / cover no-repeat fixed;
}

.terms-page::after {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -1;

    pointer-events: none;

    box-shadow:
        inset 0 0 180px rgba(0, 0, 0, .48);
}


/* ==========================================================================
   GLOW
   ========================================================================== */

.bg-glow {
    position: absolute;

    width: 320px;
    height: 320px;

    border-radius: 50%;

    filter: blur(100px);

    pointer-events: none;

    opacity: .28;
}

.bg-glow-one {
    left: -150px;
    top: 45%;

    background: rgba(255, 176, 40, .13);
}

.bg-glow-two {
    right: -160px;
    top: 30%;

    background: rgba(55, 94, 180, .16);
}


/* ==========================================================================
   HEADER
   ========================================================================== */

.terms-header {
    position: relative;

    z-index: 20;

    width: 100%;

    padding:
        38px
        5.2vw
        20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* BRAND */

.brand {
    display: flex;
    align-items: center;

    gap: 10px;

    color: #f5f5f7;

    letter-spacing: 4px;

    font-size: 17px;
    font-weight: 400;
}

.brand-crown {
    width: 43px;
    height: 43px;

    color: var(--gold);

    filter:
        drop-shadow(0 0 7px rgba(255, 205, 89, .55))
        drop-shadow(0 0 16px rgba(255, 174, 35, .22));
}

.brand-crown svg {
    width: 100%;
    height: 100%;
}


/* BACK */

.back-login {
    height: 44px;

    padding:
        0
        17px;

    display: flex;
    align-items: center;

    gap: 12px;

    border:
        1px solid
        rgba(255, 205, 100, .24);

    border-radius: 8px;

    background:
        rgba(5, 9, 18, .12);

    color:
        rgba(247, 248, 252, .78);

    font-size: 12px;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        border-color .25s ease,
        color .25s ease,
        background .25s ease;
}

.back-login:hover {
    border-color:
        rgba(255, 205, 100, .58);

    color: #fff;

    background:
        rgba(255, 190, 60, .06);
}

.back-arrow {
    color: var(--gold);

    font-size: 20px;
}


/* ==========================================================================
   STAGE
   ========================================================================== */

.terms-stage {
    width: 100%;

    display: flex;
    justify-content: center;

    padding:
        20px
        5.2vw
        115px;
}


/* ==========================================================================
   MAIN CARD
   ========================================================================== */

.terms-card {
    position: relative;

    width: min(1150px, 90vw);

    min-height: 1180px;

    display: grid;

    grid-template-columns: 280px minmax(0, 1fr);

    overflow: visible;

    border:
        1px solid
        rgba(235, 241, 255, .38);

    border-radius: 38px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.012) 40%,
            rgba(5,10,21,.10)
        );

    backdrop-filter:
        blur(5px)
        saturate(112%);

    -webkit-backdrop-filter:
        blur(5px)
        saturate(112%);

    box-shadow:
        0 40px 100px rgba(0,0,0,.48),
        inset 0 1px 0 rgba(255,255,255,.18),
        inset 1px 0 0 rgba(255,255,255,.07);

    isolation: isolate;
}

.terms-card::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: -1;

    pointer-events: none;

    border-radius: inherit;

    background:
        linear-gradient(
            125deg,
            rgba(255,255,255,.08),
            transparent 22%,
            transparent 76%,
            rgba(255,211,112,.055)
        );

    box-shadow:
        inset 0 0 55px rgba(255,255,255,.018);
}

.terms-sidebar {
    position: sticky;

    top: 30px;

    align-self: start;

    width: 280px;

    height: fit-content;

    max-height: calc(100vh - 60px);

    overflow-y: auto;

    z-index: 20;

    scrollbar-width: thin;

    border-radius: 18px;
}
.terms-layout {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.sidebar-title {
    height: 67px;

    padding: 0 18px;

    display: flex;
    align-items: center;

    gap: 10px;

    border-bottom:
        1px solid
        rgba(255,255,255,.08);

    color: #f3f4f8;

    font-size: 14px;
}

.sidebar-title-icon {
    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(255,201,75,.45);

    border-radius: 8px;

    color: var(--gold);

    box-shadow:
        0 0 12px rgba(255,201,75,.08);
}

.terms-nav {
    display: flex;
    flex-direction: column;
}

.terms-nav-item {
    position: relative;

    min-height: 67px;

    padding:
        0
        16px;

    display: flex;
    align-items: center;

    gap: 13px;

    background: transparent;

    border-bottom:
        1px solid
        rgba(255,255,255,.045);

    color:
        rgba(243,245,250,.78);

    text-align: left;

    font-size: 13px;

    cursor: pointer;

    transition:
        color .25s ease,
        background .25s ease;
}

.terms-nav-item::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;

    width: 2px;

    background: transparent;

    box-shadow: none;

    transition: .25s ease;
}

.terms-nav-item:hover {
    color: #fff;

    background:
        rgba(255,255,255,.035);
}

.terms-nav-item.active {
    color: #fff;

    background:
        linear-gradient(
            90deg,
            rgba(255,201,75,.075),
            transparent
        );
}

.terms-nav-item.active::before {
    background: var(--gold);

    box-shadow:
        0 0 14px rgba(255,201,75,.75);
}

.nav-icon {
    width: 21px;

    flex: 0 0 21px;

    color:
        rgba(245,247,252,.75);

    text-align: center;

    font-size: 17px;
}

.terms-nav-item.active .nav-icon {
    color: var(--gold);
}


/* ==========================================================================
   CONTENT
   ========================================================================== */

.terms-content {
    flex: 1;
    min-width: 0;

    padding:
        75px
        55px
        60px
        30px;
}


/* ==========================================================================
   HERO
   ========================================================================== */

.terms-hero {
    text-align: center;
}

.document-icon {
    position: relative;

    width: 125px;
    height: 130px;

    margin: 0 auto 5px;

    display: grid;
    place-items: center;

    color: var(--gold);

    filter:
        drop-shadow(0 0 12px rgba(255,201,75,.38));
}

.document-icon svg {
    position: relative;

    z-index: 2;

    width: 78px;
    height: 88px;
}

.document-orbit {
    position: absolute;

    width: 185px;
    height: 54px;

    border:
        1px solid
        rgba(255,205,89,.50);

    border-radius: 50%;

    transform:
        rotate(-15deg);

    box-shadow:
        0 0 16px rgba(255,191,52,.14);
}

.document-orbit::after {
    content: "";

    position: absolute;

    width: 5px;
    height: 5px;

    right: 15px;
    top: 4px;

    border-radius: 50%;

    background: var(--gold);

    box-shadow:
        0 0 10px rgba(255,201,75,.9);
}

.terms-hero h1 {
    margin:
        0
        0
        12px;

    color: #f8f8fa;

    font-size:
        clamp(34px, 4vw, 43px);

    line-height: 1.1;

    font-weight: 750;

    letter-spacing: -1.4px;
}

.terms-hero h1 span {
    color: var(--gold);

    text-shadow:
        0 0 25px rgba(255,194,64,.22);
}

.terms-hero p {
    max-width: 620px;

    margin:
        0
        auto;

    color:
        rgba(240,242,248,.72);

    font-size: 13px;

    line-height: 1.8;
}


/* ==========================================================================
   DIVIDER
   ========================================================================== */

.gold-divider {
    width: 100%;

    margin:
        20px
        0
        26px;

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 12px;
}

.gold-divider span {
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,201,75,.26)
        );
}

.gold-divider span:last-child {
    background:
        linear-gradient(
            90deg,
            rgba(255,201,75,.26),
            transparent
        );
}

.gold-divider b {
    color: var(--gold);

    font-size: 8px;

    text-shadow:
        0 0 14px rgba(255,201,75,.9);
}


/* ==========================================================================
   TERM SECTION
   ========================================================================== */

.term-section {
    padding:
        0
        0
        23px;

    margin-bottom: 22px;

    border-bottom:
        1px solid
        rgba(235,241,255,.13);

    scroll-margin-top: 30px;
}

.term-section h2 {
    margin:
        0
        0
        12px;

    display: flex;
    align-items: center;

    gap: 11px;

    color: #f5f6fa;

    font-size: 15px;

    font-weight: 650;
}

.section-icon {
    color: var(--gold);

    font-size: 20px;

    filter:
        drop-shadow(0 0 5px rgba(255,201,75,.25));
}

.term-section p {
    margin:
        0
        0
        7px;

    color:
        rgba(237,240,247,.70);

    font-size: 12.5px;

    line-height: 1.85;
}

.term-section p:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   INFO BOX
   ========================================================================== */

.terms-info-box {
    margin-top: 28px;

    min-height: 83px;

    padding:
        17px
        22px;

    display: flex;
    align-items: center;

    gap: 15px;

    border:
        1px solid
        rgba(235,241,255,.18);

    border-radius: 13px;

    background:
        rgba(5,10,21,.18);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.05);
}

.info-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(255,201,75,.45);

    border-radius: 8px;

    color: var(--gold);

    font-size: 20px;
}

.terms-info-box p {
    margin: 0;

    color:
        rgba(239,241,247,.74);

    font-size: 12px;

    line-height: 1.7;
}


/* ==========================================================================
   ACCEPT
   ========================================================================== */

.terms-accept {
    margin-top: 26px;

    display: flex;
    align-items: center;

    gap: 12px;

    color:
        rgba(245,246,250,.82);

    font-size: 13px;

    cursor: pointer;
}

.terms-accept input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.accept-check {
    width: 27px;
    height: 27px;

    flex: 0 0 27px;

    display: grid;
    place-items: center;

    border:
        1px solid
        rgba(255,255,255,.36);

    border-radius: 7px;

    color: #251d09;

    background:
        rgba(255,255,255,.025);

    font-size: 17px;

    transition: .25s ease;
}

.terms-accept input:checked + .accept-check {
    border-color: #ffe069;

    background: #ffe069;

    box-shadow:
        0 0 18px rgba(255,205,69,.30);
}

.terms-accept strong {
    color: var(--gold);
    font-weight: 500;
}


/* ==========================================================================
   ACTIONS
   ========================================================================== */

.terms-actions {
    margin-top: 25px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 17px;
}

.download-btn,
.accept-btn {
    height: 59px;

    border-radius: 30px;

    cursor: pointer;

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    border:
        1px solid
        rgba(255,255,255,.27);

    background:
        rgba(5,10,20,.15);

    color:
        rgba(245,247,252,.82);

    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.download-btn span {
    color: var(--gold);

    font-size: 23px;
}

.download-btn:hover {
    border-color:
        rgba(255,201,75,.50);

    color: #fff;

    transform: translateY(-2px);
}


.accept-btn {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            100deg,
            #2b210d,
            #6e4c13 48%,
            #ffc32e
        );

    border:
        1px solid
        #ffe092;

    color: #fff;

    font-size: 14px;

    font-weight: 700;

    overflow: hidden;

    box-shadow:
        0 10px 28px rgba(255,176,34,.18),
        0 0 25px rgba(255,192,60,.10);
}

.accept-btn::before {
    content: "";

    position: absolute;

    top: -40%;
    left: -35%;

    width: 28%;
    height: 180%;

    transform: rotate(25deg);

    background:
        rgba(255,255,255,.20);

    filter: blur(8px);

    transition:
        left .65s ease;
}

.accept-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 34px rgba(255,176,34,.27),
        0 0 35px rgba(255,192,60,.16);
}

.accept-btn:hover::before {
    left: 120%;
}

.accept-btn span,
.accept-btn b {
    position: relative;
    z-index: 2;
}

.accept-btn b {
    position: absolute;

    right: 25px;

    font-size: 28px;

    font-weight: 300;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.terms-footer {
    position: absolute;

    left: 5.2vw;
    right: 5.2vw;
    bottom: 27px;

    min-height: 60px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-features {
    display: flex;
    align-items: center;

    gap: 70px;
}

.footer-feature {
    display: flex;
    align-items: center;

    gap: 12px;
}

.footer-feature > span {
    color: var(--gold);

    font-size: 27px;

    text-shadow:
        0 0 12px rgba(255,201,75,.25);
}

.footer-feature div {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.footer-feature strong {
    color:
        rgba(247,248,252,.83);

    font-size: 12px;

    font-weight: 500;
}

.footer-feature small {
    color:
        rgba(235,239,248,.42);

    font-size: 10px;
}

.copyright {
    position: absolute;

    left: 50%;
    transform: translateX(-50%);

    bottom: 0;

    color:
        rgba(242,243,248,.34);

    font-size: 12px;

    white-space: nowrap;

    text-align: center;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1000px) {

    .terms-card {
        width: min(94vw, 900px);

        grid-template-columns: 230px minmax(0, 1fr);
    }

    .terms-content {
        padding:
            60px
            35px
            45px
            25px;
    }

    .terms-sidebar {
        margin-left: 16px;
    }

    .footer-features {
        gap: 25px;
    }
}


@media (max-width: 760px) {

    .terms-page {
        background-attachment: scroll;
    }

    .terms-header {
        padding:
            20px
            20px
            10px;
    }

    .brand {
        font-size: 14px;

        letter-spacing: 3px;
    }

    .brand-crown {
        width: 35px;
        height: 35px;
    }

    .back-login {
        padding: 0 12px;

        font-size: 11px;
    }

    .terms-stage {
        padding:
            10px
            12px
            130px;
    }

    .terms-card {
        width: 100%;

        min-height: 0;

        display: flex;
        flex-direction: column;

        border-radius: 28px;
    }

    .terms-sidebar {
        margin:
            18px
            18px
            0;

        order: 1;

        max-height: 180px;

        overflow-y: auto;
    }

    .terms-content {
        order: 2;

        padding:
            45px
            22px
            30px;
    }

    .terms-nav-item {
        min-height: 52px;
    }

    .sidebar-title {
        height: 55px;
    }

    .terms-hero h1 {
        font-size: 32px;
    }

    .terms-actions {
        grid-template-columns: 1fr;
    }

    .terms-footer {
        position: relative;

        left: auto;
        right: auto;
        bottom: auto;

        margin:
            0
            20px
            20px;

        padding-top: 10px;

        flex-direction: column;

        gap: 18px;
    }

    .footer-features {
        width: 100%;

        justify-content: space-between;

        gap: 10px;
    }

    .footer-feature {
        gap: 6px;
    }

    .footer-feature > span {
        font-size: 21px;
    }

    .footer-feature strong {
        font-size: 10px;
    }

    .footer-feature small {
        display: none;
    }

    .copyright {
        font-size: 10px;
    }
}


@media (max-width: 480px) {

    .back-login span:last-child {
        display: none;
    }

    .back-login {
        width: 43px;
        justify-content: center;

        padding: 0;
    }

    .terms-content {
        padding:
            35px
            17px
            25px;
    }

    .terms-hero h1 {
        font-size: 28px;
    }

    .terms-hero p {
        font-size: 12px;
    }

    .terms-info-box {
        align-items: flex-start;

        padding: 14px;
    }

    .terms-accept {
        align-items: flex-start;

        font-size: 12px;
    }
}


@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}