* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #0c1a2b, #1f2d42);
    background-size: cover;
    background-repeat: no-repeat;
    color: #ffffff;
}

.container {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 1000px;
    background-color: #1a2837;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    padding: 40px;
    margin: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 32px;
    color: #f7b42c;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.header .nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #f7b42c;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.tos-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
    background-color: #2a3a5a;
    border-radius: 12px;
    color: #c5d5e4;
    line-height: 1.6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tos-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #f7b42c;
}

.tos-content p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #c5d5e4;
}

.tos-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

.tos-content ul li {
    margin-bottom: 10px;
    color: #c5d5e4;
}

.back-to-top {
    margin-top: 20px;
    display: block;
    text-align: center;
}

.back-to-top a {
    color: #1f2d42;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #f7b42c, #d89b20);
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.back-to-top a:hover {
    background: linear-gradient(135deg, #d89b20, #f7b42c);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

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

    .header h1 {
        font-size: 24px;
    }

    .tos-content h2 {
        font-size: 20px;
    }
}

@media (max-width: 500px) {
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }

    .header h1 {
        font-size: 20px;
    }

    .tos-content p, .tos-content ul li {
        font-size: 14px;
    }
}
