﻿* {
    box-sizing: border-box;
}

:root {
    --text: #edf1f5;
    --text-soft: #b5bcc6;
    --text-muted: #8d949d;
    --border: rgba(255, 255, 255, 0.08);
    --panel-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top center, rgba(255,255,255,0.035), transparent 26%), linear-gradient(180deg, #1b1e22 0%, #14171b 42%, #0b0d10 100%);
}

html {
    overflow-y: scroll;
}

body {
    overflow-x: hidden;
    overflow-y: visible;
}

a {
    color: inherit;
    text-decoration: none;
}

.page-shell {
    min-height: 100vh;
    overflow: visible;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 20px 0;
    background: linear-gradient(180deg, rgba(11, 13, 16, 0.96), rgba(11, 13, 16, 0.78) 78%, rgba(11, 13, 16, 0));
    backdrop-filter: blur(8px);
}

.header-card {
    max-width: 1120px;
    margin: 0 auto;
}

.brand-block {
    margin-bottom: 6px;
    padding: 9px 20px 10px;
    background: linear-gradient(180deg, rgba(34, 38, 43, 0.76), rgba(18, 21, 25, 0.88));
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(8px);
}

.single-brand {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-center-wrap {
    text-align: center;
    width: 100%;
}

.brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 32px;
    margin-bottom: 3px;
}

    .brand-logo img {
        max-width: 100%;
        max-height: 46px;
        object-fit: contain;
    }

.brand-title {
    font-size: 1.72rem;
    font-weight: 800;
    letter-spacing: 0.20rem;
    color: #f3f6fa;
    text-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

.brand-subtitle {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.84rem;
    letter-spacing: 0.08rem;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-card {
    background: linear-gradient(180deg, rgba(31, 35, 40, 0.86), rgba(17, 20, 24, 0.94));
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(8px);
    padding: 0 10px;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 39px;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: stretch;
    gap: 3px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-label {
    display: flex;
    align-items: center;
    min-height: 39px;
    padding: 0 14px;
    border-radius: 9px;
    color: #d9e0e8;
    font-size: 13px;
    font-weight: 600;
    cursor: default;
    user-select: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.nav-item:hover > .nav-label,
.nav-item:focus-within > .nav-label {
    background: rgba(255,255,255,0.05);
    color: #ffffff;
}

.nav-item.has-submenu > .nav-label::after {
    content: "▾";
    margin-left: 8px;
    font-size: 10px;
    opacity: 0.72;
}

.submenu {
    list-style: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 230px;
    margin: 0;
    padding: 10px;
    background: linear-gradient(180deg, rgba(29, 33, 38, 0.97), rgba(17, 20, 24, 0.98));
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.40);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    backdrop-filter: blur(10px);
    z-index: 1300;
}

    .submenu li {
        margin: 0;
    }

    .submenu a {
        display: block;
        padding: 11px 12px;
        border-radius: 10px;
        color: #dce3eb;
        font-size: 14px;
        transition: background 0.18s ease, color 0.18s ease;
    }

        .submenu a:hover {
            background: rgba(255,255,255,0.06);
            color: #ffffff;
        }

        .submenu a.active {
            background: linear-gradient(180deg, rgba(125, 142, 158, 0.18), rgba(88, 101, 114, 0.14));
            border: 1px solid rgba(255,255,255,0.07);
            color: #ffffff;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
        }

.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-body {
    padding: 6px 24px 84px;
    overflow: visible;
}

.main-content-card {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(28, 31, 36, 0.80), rgba(16, 19, 23, 0.90));
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    box-shadow: var(--panel-shadow);
    padding: 32px 28px 28px;
    backdrop-filter: blur(8px);
    overflow: visible;
}

.content-panel {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 0;
    max-width: none;
}

    .content-panel h1 {
        margin-top: 0;
        margin-bottom: 16px;
        font-size: 1.9rem;
        color: #f1f5f8;
    }

    .content-panel p {
        color: #c3ccd5;
        line-height: 1.75;
        font-size: 15px;
    }

.privacy-page h2 {
    margin-top: 28px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #f1f5f8;
}

.privacy-page p,
.privacy-page li {
    color: #c3ccd5;
    line-height: 1.8;
    font-size: 15px;
}

.privacy-page ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    padding: 10px 18px;
    background: rgba(10, 12, 15, 0.74);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 900px) {
    .main-nav {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0;
    }

    .nav-list {
        flex-wrap: wrap;
        padding: 0 8px;
    }

    .site-body {
        padding: 6px 14px 84px;
    }

    .main-content-card {
        padding: 24px 18px 22px;
    }
}

@media (max-width: 700px) {
    .site-header {
        padding: 10px 14px 0;
    }

    .brand-logo img {
        max-height: 44px;
    }

    .brand-title {
        font-size: 1.38rem;
        letter-spacing: 0.14rem;
    }

    .brand-subtitle {
        font-size: 0.80rem;
    }
}
