.main .container {
    max-width: none !important;
    width: 90% !important;
    padding: 0 2rem !important;
}

.logo-link {
    color: inherit;
    text-decoration: none;
}

.nav-link.active {
    color: #ff4444;
}

.nav-link.active::after {
    width: 100%;
}

.tos-container {
    width: 100%;
    margin: 0 auto;
    padding: 2rem 0;
}

.tos-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #333;
}

.tos-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff4444, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.last-updated {
    color: #999;
    font-style: italic;
}

.tos-content {
    line-height: 1.8;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    grid-auto-flow: row;
}

.tos-section {
    margin-bottom: 1.5rem;
    padding: 2rem;
    background: rgba(30, 30, 30, 0.6);
    border-radius: 8px;
    border: 1px solid #333;
    break-inside: avoid;
    height: fit-content;
}

.tos-section.important {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.05);
}

.tos-section h2 {
    color: #ff4444;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
}

.tos-section h3 {
    color: #f5f5f5;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.tos-section p {
    margin-bottom: 1rem;
    color: #ccc;
}

.tos-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.tos-section li {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.warning-box, .info-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.warning-box {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid #ff4444;
}

.info-box {
    background: rgba(68, 136, 255, 0.1);
    border: 1px solid #4488ff;
}

.warning-icon, .info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.warning-box h3 {
    color: #ff6b6b;
    margin-bottom: 0.5rem;
}

.info-box h3 {
    color: #6bb6ff;
    margin-bottom: 0.5rem;
}

.warning-box p, .info-box p {
    margin-bottom: 0.5rem;
}

.warning-box ul, .info-box ul {
    margin-top: 0.5rem;
}

.contact-info {
    background: rgba(40, 40, 40, 0.8);
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #ff4444;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #ff6b6b;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.tos-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #333;
}

.tos-footer p {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #f5f5f5;
}

.back-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff4444, #c62828);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.3);
}

@media (max-width: 1200px) {
    .tos-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .tos-container {
        width: 95%;
        padding: 1rem;
    }

    .tos-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tos-header h1 {
        font-size: 2rem;
    }

    .tos-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .warning-box, .info-box {
        flex-direction: column;
        gap: 0.5rem;
    }

    .warning-icon, .info-icon {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .tos-header h1 {
        font-size: 1.8rem;
    }

    .tos-section {
        padding: 0.75rem;
    }

    .tos-section h2 {
        font-size: 1.2rem;
    }
}

@media print {
    .header, .footer, .back-btn {
        display: none;
    }

    .tos-container {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .tos-section {
        background: none;
        border: 1px solid #000;
        break-inside: avoid;
    }

    body {
        background: white;
        color: black;
    }
}