* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    width: 100%;
    background-color: #080808;
    -webkit-font-smoothing: antialiased;
    font-family: 'Inter', sans-serif;
    color: #f0f0f0;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 6px;
    background-color: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.page-wrapper {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: none;
    text-decoration: none;
    width: fit-content;
    transition: background 0.15s, color 0.15s;
    z-index: 200;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #f0f0f0;
}

.back-btn svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.back-btn-right {
    position: fixed;
    top: 20px;
    right: 20px;
    left: auto;
}

.switch {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 0;
    background-color: #080808;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.link {
    position: relative;
    padding: 18px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
}

.link:hover {
    color: rgba(255, 255, 255, 0.85);
}

.link.active {
    color: #f0f0f0;
}

.link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #f0f0f0;
}

.line {
    display: none;
}

section {
    display: none;
    min-height: 100vh;
    padding: 160px 24px 60px;
    max-width: 800px;
    margin: 0 auto;
}

section.active {
    display: block;
}

section h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

section h2 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    scroll-margin-top: 5vh;
    font-weight: 500;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

section p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

section ul,
section ol {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

section ul li,
section ol li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.4rem;
}

section a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
}

section a:hover {
    color: #f0f0f0;
}

.meta {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 2rem;
}

.divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    margin: 2.5rem 0;
}

strong {
    color: rgba(255, 255, 255, 1);
}

section p.updated {
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    margin-left: 1.5rem;
    position: relative;
}

section p.updated::before {
    content: '';
    position: absolute;
    left: -1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.8rem;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.25);
}

.email {
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.email:hover {
    color: #1A8FFF;
}

.green {
    color: #4ADE80;
}

.red {
    color: #F87171;
}

.orange {
    color: #FBBF24;
}

.toc {
    position: fixed;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 100;
}

.toc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: none;
}

.toc-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}

.toc-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.04em;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s, transform 0.2s, color 0.2s;
}

.toc:hover .toc-label {
    opacity: 1;
    transform: translateX(0);
}

.toc-item.active .toc-dot {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.4);
}

.toc-item.active .toc-label {
    color: rgba(255, 255, 255, 0.85);
}

.toc-item:hover .toc-label {
    color: rgba(255, 255, 255, 0.65);
}

.toc-item:hover .toc-dot {
    background: rgba(255, 255, 255, 0.5);
}

.redirect {
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.redirect:hover {
    color: rgba(255, 255, 255, 0.6);
}

@media (hover: none) {
    .email {
        text-decoration: underline;
        text-underline-offset: 2px;
        color: #1A8FFF;
        cursor: pointer;
    }
}

@media (max-width: 995px) {
    .toc {
        display: none;
    }

    .back-btn {
        position: relative;
        top: auto;
        left: auto;
        background: rgba(255, 255, 255, 1);
        font-weight: 600;
        color: black;
        border-radius: 10px;
        display: inline-flex;
        margin: 16px 0 0 0;
    }

    .back-btn:hover {
        background: rgba(255, 255, 255, 1);
        color: black;
    }

    .back-btn svg {
        display: none;
    }

    .back-btn-right {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        background: rgba(255, 255, 255, 1);
        font-weight: 600;
        color: black;
        border-radius: 10px;
        display: inline-flex;
        margin: 16px 0 0 0;
    }

    .back-btn-right:hover {
        background: rgba(255, 255, 255, 1);
        color: black;
    }

    .back-btn-right svg {
        display: none;
    }

    .page-wrapper {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding-top: 16px;
    }

    .switch {
        top: 60px;
        margin-top: 20px;
    }

    .link {
        padding: 16px 20px;
        font-size: 0.88rem;
    }

    section {
        padding: 100px 20px 60px;
    }

    section h1 {
        text-align: center;
    }

    section p.updated {
        margin-top: -1.5rem;
        margin-bottom: 2rem;
        margin-left: 0;
        text-align: center;
        position: relative;
    }

    section p.updated::before {
        display: none;
    }
}

.terms-actions {
    display: flex;
    gap: 12px;
    margin-top: 2rem;
}

.accept,
.reject {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.accept {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.9);
    color: #080808;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.accept:hover {
    background: rgba(255, 255, 255, 1);
}

.reject {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

.reject:hover {
    background: rgba(255, 0, 0, 0.18);
}

.accept:active,
.reject:active {
    transform: scale(0.98);
}