/* TOS Page Specific Styles */
body {
    overflow: auto !important;
    background: #05060a;
    /* Hide scrollbar while keeping scrollability */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
}

body::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

html {
    scroll-behavior: smooth;
    /* Hide scrollbar while keeping scrollability */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
}

html::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

.tos-wrapper {
    min-height: 100vh;
    background: transparent;
    color: #e0e0e0;
    font-family: "Inter", "Segoe UI", sans-serif;
    padding: 0;
    margin: 0;
    position: relative;
}

.tos-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
}

.start-menu-bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
    pointer-events: none;
}

.start-menu-bg-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 64px 64px, 64px 64px;
    background-position: 0 0, 0 0;
    mix-blend-mode: normal;
    opacity: 0.28;
}

.tos-content-wrapper {
    position: relative;
    z-index: 2;
}

.tos-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 40px;
}

.tos-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.tos-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    font-weight: 500;
}

.tos-content {
    background: rgba(26, 26, 46, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    backdrop-filter: blur(5px);
    line-height: 1.8;
}

.tos-section {
    margin-bottom: 40px;
}

.tos-section:last-child {
    margin-bottom: 0;
}

.tos-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    margin-top: 30px;
    border-left: 4px solid rgba(255, 255, 255, 0.2);
    padding-left: 16px;
}

.tos-section-title:first-child {
    margin-top: 0;
}

.tos-paragraph {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.tos-list {
    margin-left: 24px;
    margin-bottom: 16px;
    list-style-position: outside;
}

.tos-list li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.6;
}

.tos-highlight {
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid rgba(255, 200, 0, 0.4);
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.9);
}

.tos-warning {
    background: rgba(255, 68, 68, 0.15);
    border-left: 3px solid rgba(255, 68, 68, 0.6);
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    color: rgba(255, 200, 200, 0.9);
}

@media (max-width: 768px) {
    .tos-container {
        padding: 30px 20px;
    }

    .tos-title {
        font-size: 32px;
    }

    .tos-content {
        padding: 30px 20px;
    }

    .tos-section-title {
        font-size: 18px;
    }

    .tos-paragraph,
    .tos-list li {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tos-container {
        padding: 20px 15px;
    }

    .tos-title {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .tos-subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .tos-content {
        padding: 20px 15px;
    }

    .tos-section-title {
        font-size: 16px;
        margin-top: 20px;
        margin-bottom: 12px;
    }
}

/* Smooth scroll behavior */
* {
    scroll-behavior: smooth;
}
