:root {
    --bg: #05090e;
    --bg-soft: #081018;

    --panel: rgba(10, 22, 30, 0.94);
    --panel-strong: rgba(11, 25, 34, 0.98);

    --border: rgba(110, 143, 161, 0.18);
    --border-hover: rgba(65, 230, 170, 0.32);

    --text: #f2f6f8;
    --text-soft: #a2b1ba;
    --text-muted: #71838d;

    --green: #41e6aa;
    --green-hover: #68f0bf;
    --green-soft: rgba(65, 230, 170, 0.08);

    --danger: #ff6969;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    min-height: 100vh;

    color: var(--text);

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(29, 113, 111, 0.09),
            transparent 36%
        ),
        var(--bg);

    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.6;
}

a {
    color: inherit;
}

button {
    font: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;

    background:
        rgba(5, 11, 16, 0.92);

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.06);

    backdrop-filter:
        blur(18px);
}

.topbar-container {
    width: min(
        1280px,
        calc(100% - 40px)
    );

    min-height: 72px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo {
    color: #ffffff;

    text-decoration: none;

    font-size: 21px;
    font-weight: 900;

    letter-spacing: -0.7px;
}

.logo span {
    color: var(--green);
}

.navigation {
    display: flex;
    align-items: center;

    gap: 6px;
}

.navigation a {
    padding: 9px 11px;

    color: #99abb5;

    border-radius: 7px;

    text-decoration: none;

    font-size: 12px;
    font-weight: 800;

    transition:
        color 0.15s ease,
        background 0.15s ease;
}

.navigation a:hover,
.navigation a.active {
    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.055);
}

.navigation .account-button {
    margin-left: 5px;

    color: #06100b;

    background:
        var(--green);
}

.navigation .account-button:hover {
    color: #06100b;

    background:
        var(--green-hover);
}

.mobile-menu-button {
    display: none;

    padding: 9px 12px;

    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.05);

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 7px;

    cursor: pointer;

    font-size: 12px;
    font-weight: 800;
}

.tos-hero {
    position: relative;

    min-height: 350px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(4, 10, 15, 0.95),
            rgba(4, 10, 15, 0.68),
            rgba(4, 10, 15, 0.88)
        ),
        url("/images/MainMenu_Star.png")
        center center / cover
        no-repeat;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.05);
}

.tos-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 25% 40%,
            rgba(65, 230, 170, 0.10),
            transparent 40%
        );

    pointer-events: none;
}

.tos-hero-content {
    position: relative;
    z-index: 2;

    width: min(
        1180px,
        calc(100% - 40px)
    );

    margin: 0 auto;

    padding: 70px 0;
}

.hero-label,
.section-label,
.sidebar-label {
    display: block;

    color: var(--green);

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.5px;

    text-transform: uppercase;
}

.tos-hero h1 {
    max-width: 760px;

    margin-top: 9px;

    color: #ffffff;

    font-size: clamp(
        38px,
        6vw,
        64px
    );

    line-height: 1;

    letter-spacing: -2.5px;
}

.tos-hero p {
    max-width: 660px;

    margin-top: 18px;

    color: #b1c0c8;

    font-size: 16px;
    line-height: 1.7;
}

.tos-version {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 24px;
}

.tos-version span {
    padding: 7px 10px;

    color: #a8bac3;

    background:
        rgba(0, 0, 0, 0.30);

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

    border-radius: 7px;

    font-size: 11px;
    font-weight: 800;
}

.tos-section {
    padding: 55px 0 80px;
}

.tos-container {
    width: min(
        1180px,
        calc(100% - 40px)
    );

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        245px
        minmax(0, 1fr);

    gap: 28px;
}

.tos-sidebar {
    min-width: 0;
}

.sidebar-card {
    position: sticky;
    top: 95px;

    padding: 18px;

    background:
        rgba(10, 21, 29, 0.86);

    border:
        1px solid
        var(--border);

    border-radius: 11px;
}

.sidebar-label {
    margin-bottom: 12px;
}

.tos-navigation {
    display: grid;

    gap: 3px;
}

.tos-navigation a {
    display: block;

    padding: 8px 9px;

    color: #8699a3;

    border-left:
        2px solid
        transparent;

    border-radius: 4px;

    text-decoration: none;

    font-size: 11px;
    font-weight: 700;

    transition:
        color 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;
}

.tos-navigation a:hover {
    color: #e4edf1;

    background:
        rgba(255, 255, 255, 0.035);
}

.tos-navigation a.active {
    color: var(--green);

    background:
        rgba(65, 230, 170, 0.055);

    border-left-color:
        var(--green);
}

.tos-content {
    min-width: 0;

    display: grid;

    gap: 14px;
}

.tos-intro-card,
.tos-card,
.tos-agreement {
    background:
        linear-gradient(
            145deg,
            rgba(11, 25, 34, 0.94),
            rgba(8, 17, 24, 0.96)
        );

    border:
        1px solid
        var(--border);

    border-radius: 12px;

    box-shadow:
        0 18px 55px
        rgba(0, 0, 0, 0.17);
}

.tos-intro-card {
    padding: 26px;

    border-color:
        rgba(65, 230, 170, 0.20);
}

.tos-intro-card p {
    margin-top: 10px;

    color: var(--text-soft);

    font-size: 14px;
    line-height: 1.75;
}

.tos-intro-card strong {
    color: #ffffff;
}

.tos-card {
    position: relative;

    display: grid;

    grid-template-columns:
        58px
        minmax(0, 1fr);

    overflow: hidden;

    scroll-margin-top: 100px;

    transition:
        border-color 0.15s ease,
        transform 0.15s ease;
}

.tos-card:hover {
    border-color:
        var(--border-hover);
}

.tos-number {
    padding-top: 25px;

    color:
        rgba(65, 230, 170, 0.62);

    border-right:
        1px solid
        rgba(255, 255, 255, 0.055);

    text-align: center;

    font-size: 11px;
    font-weight: 900;

    letter-spacing: 0.7px;
}

.tos-card-content {
    padding: 25px 27px 27px;
}

.tos-card h2 {
    margin-bottom: 14px;

    color: #ffffff;

    font-size: 21px;

    letter-spacing: -0.5px;
}

.tos-card p {
    margin-top: 11px;

    color: var(--text-soft);

    font-size: 13px;
    line-height: 1.75;
}

.tos-card p:first-of-type {
    margin-top: 0;
}

.tos-card strong {
    color: #edf5f7;
}

.tos-card .list-title {
    margin-top: 18px;

    color: #d4e0e5;

    font-weight: 800;
}

.tos-card ul {
    margin-top: 10px;

    display: grid;

    gap: 8px;

    list-style: none;
}

.tos-card li {
    position: relative;

    padding-left: 21px;

    color: #9babb4;

    font-size: 13px;
    line-height: 1.65;
}

.tos-card li::before {
    content: "";

    position: absolute;

    left: 2px;
    top: 9px;

    width: 6px;
    height: 6px;

    background:
        var(--green);

    border-radius: 50%;

    box-shadow:
        0 0 0 3px
        rgba(65, 230, 170, 0.08);
}

.tos-agreement {
    margin-top: 8px;

    padding: 26px;

    display: flex;
    align-items: flex-start;

    gap: 17px;

    border-color:
        rgba(65, 230, 170, 0.28);

    background:
        linear-gradient(
            135deg,
            rgba(20, 69, 56, 0.28),
            rgba(8, 20, 26, 0.97)
        );
}

.agreement-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #04110a;

    background:
        var(--green);

    border-radius: 50%;

    font-size: 18px;
    font-weight: 900;
}

.tos-agreement h2 {
    margin-top: 5px;

    color: #ffffff;

    font-size: 21px;
}

.tos-agreement p {
    margin-top: 8px;

    max-width: 720px;

    color: #abc0c8;

    font-size: 13px;
    line-height: 1.7;
}

.footer {
    border-top:
        1px solid
        rgba(255, 255, 255, 0.055);

    background:
        #04080c;
}

.footer-container {
    width: min(
        1180px,
        calc(100% - 40px)
    );

    margin: 0 auto;

    padding: 45px 0 38px;

    display: grid;

    grid-template-columns:
        1fr
        2fr;

    gap: 45px;
}

.footer-brand p {
    margin-top: 8px;

    color: #657982;

    font-size: 12px;
}

.footer-links {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 25px;
}

.footer-links h4 {
    margin-bottom: 10px;

    color: #e7eff2;

    font-size: 11px;
}

.footer-links a {
    display: block;

    width: fit-content;

    margin-top: 7px;

    color: #748791;

    text-decoration: none;

    font-size: 11px;
}

.footer-links a:hover {
    color: var(--green);
}

.footer-bottom {
    padding: 18px 20px;

    color: #566973;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.04);

    text-align: center;

    font-size: 10px;
}

@media (max-width: 900px) {

    .tos-container {
        grid-template-columns: 1fr;
    }

    .tos-sidebar {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {

    .topbar-container {
        width:
            min(
                100% - 28px,
                1180px
            );
    }

    .mobile-menu-button {
        display: block;
    }

    .navigation {
        position: absolute;

        top: 72px;
        left: 14px;
        right: 14px;

        display: none;

        padding: 10px;

        flex-direction: column;
        align-items: stretch;

        background:
            rgba(6, 14, 20, 0.98);

        border:
            1px solid
            rgba(255, 255, 255, 0.07);

        border-radius: 10px;

        box-shadow:
            0 25px 60px
            rgba(0, 0, 0, 0.42);
    }

    .navigation.open {
        display: flex;
    }

    .navigation a {
        width: 100%;
    }

    .navigation .account-button {
        margin-left: 0;
        margin-top: 4px;
    }

    .tos-hero {
        min-height: 310px;
    }

    .tos-hero-content {
        width:
            calc(100% - 30px);

        padding:
            55px
            0;
    }

    .tos-hero h1 {
        font-size:
            clamp(
                36px,
                11vw,
                52px
            );
    }

    .tos-section {
        padding:
            30px
            0
            55px;
    }

    .tos-container {
        width:
            calc(100% - 28px);
    }

    .tos-card {
        grid-template-columns: 1fr;
    }

    .tos-number {
        padding:
            13px
            20px
            0;

        border-right: 0;

        text-align: left;
    }

    .tos-card-content {
        padding:
            12px
            20px
            22px;
    }

    .footer-container {
        width:
            calc(100% - 30px);
    }

    .footer-links {
        grid-template-columns:
            repeat(2, 1fr);
    }
}

@media (max-width: 480px) {

    .tos-hero-content {
        width:
            calc(100% - 24px);
    }

    .tos-container {
        width:
            calc(100% - 20px);
    }

    .tos-intro-card,
    .tos-agreement {
        padding: 20px;
    }

    .tos-card-content {
        padding:
            10px
            17px
            20px;
    }

    .tos-number {
        padding-left: 17px;
    }

    .tos-agreement {
        flex-direction: column;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}