* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d7d7d7;
    --secondary-color: #a4a3a3;
    --text-muted: #6e7885;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --dark-card: #24292f;
    --light-card: #d7d7d7;
    --text-dark: #333436;
    --text-light: #cfdae2;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.heroic main {
    background: transparent;
    padding: 0;
}
.heroic footer {
    margin-top: 0;
}

.adaptive-help {
    background: var(--surface);
    width: 100%;
}

body {
    background: var(--surface);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

body.light-theme {
    --f-color: #d7d7d7;
    --s-color: #a4a3a3;
    --filler: linear-gradient(to right, #d7d7d7, #a4a3a3);
    --background: #ffffff;
    --text-secondary: #666666;
    --surface: linear-gradient(145deg, #e8e8e8, #f5f5f5);
    --border: #e2e8f0;

    --card-color: var(--light-card);
    --text-color: var(--text-dark);
    --border-color: #e2e8f0;

    --block-shadow:
    -2px -2px 10px rgba(0, 0, 0, 0.2),
    2px 2px 10px rgba(0, 0, 0, 0.2),
    inset 5px 5px 10px #d7d7d780,
    inset -5px -5px 10px #d7d7d780;
    --corner-background: linear-gradient(135deg, #d7d7d7, #ffffff 25%, #a4a3a3 50%, #f5f5f5 75%, #d7d7d7);
    --corner-shadow: 
    inset 3px 3px 2px #c9c9c9,
    inset -3px -3px 2px #ffffff;
    --corner-borders: 2px solid #999;
    --gray: grayscale(95%);
}

body.dark-theme {
    --f-color: #24292f;
    --s-color: #1a1e24;
    --filler: linear-gradient(to right, #24292f, #1a1e24);
    --background: #24292f;
    --text-secondary: #a3a2a2;
    --surface: linear-gradient(145deg, #2e3440, #1a1e24);
    --border: #2a2c2d;

    --card-color: var(--dark-card);
    --text-color: var(--text-light);
    --border-color: #334155;

    --block-shadow:
    -1px -1px 10px rgba(0, 0, 0, 0.2),
    1px 1px 10px rgba(0, 0, 0, 0.2),
    inset 5px 5px 10px #353b4880,
    inset -5px -5px 10px #353b4880;
    --corner-background: linear-gradient(135deg, #24292f, #2e3440 25%, #1a1e24 50%, #353b48 75%, #24292f);
    --corner-shadow: 
    inset 3px 3px 6px #15181d,
    inset -3px -3px 6px #373e4d;
    --corner-borders: 1px solid #444b5a;
    --gray: grayscale(80%);
}

body, .header, .footer, .step, .content-wrapper {
    transition: background 0.2s ease, color 0.2s ease;
}

.main {
    min-height: calc(100vh - 80px - 200px);
    padding: 60px 0;
    padding-bottom: 120px
}

        .terms-container {
            background-color: var(--card-color);
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            padding: 40px;
            margin-top: 30px;
        }

        .terms-header {
            text-align: center;
            margin-bottom: 40px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border-color);
        }

        .terms-header h1 {
            font-size: 2.5rem;
            margin-bottom: 15px;
            background: var(--text-color);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

.instruction-header {
    text-align: center;
    margin-bottom: 60px;
}

.instruction-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--text-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .terms-container {
        padding: 25px;
    }
            
    .terms-header h1 {
        font-size: 2rem;
    }
            
    .terms-section {
        scroll-margin-top: 120px;
    }
            
    .terms-nav {
        display: none !important;
    }
            
    .nav-toggle {
        display: none;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        height: auto;
        padding: 10px 0;
    }
            
    .header {
        height: auto;
        padding: 10px 0;
    }
            
    body {
        scroll-padding-top: 120px;
    }
            
    .footer-content {
        gap: 30px;
    }

    .main {
        margin-top: 20px;
    }

    .servers-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
    }
            
    .server-card {
        width: 100%;
    }

    .details-header {
        flex-direction: column;
        align-items: flex-start;
    }
            
    .time-selector {
        margin-top: 15px;
        align-self: stretch;
    }
            
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .image-placeholder {
        padding: 15px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .step-image img {
        width: 100%;
        height: auto;
    }

    .step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .step-content {
        text-align: center;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .hero-video {
        display: none;
    }
            
    .hero {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
            
    .server-header {
        flex-direction: column;
        align-items: flex-start;
    }
            
    .server-status {
        margin-top: 10px;
    }
}