/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styles */
body {
    font-family: 'Montserrat', sans-serif;
    background-image: url('../images/login-background-banner.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

/* Terms Container */
.terms-container {
    position: relative; /* For positioning the back button inside the container */
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    padding: 2em;
    margin-top: 20px;
    width: 90%;
    max-width: 690px;
    text-align: center;
    color: white;
    border: 2px solid;
    border-image: linear-gradient(45deg, #6C63FF, #3B82F6) 1;
    animation: fadeAtBeginning 0.8s ease-out;
}

@keyframes fadeAtBeginning {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Back Button */
.back-button {
    position: absolute; /* Position the back button inside the terms container */
    top: 10px;
    left: 10px;
}

.back-button a {
    display: flex;
    align-items: center;
    font-size: 1em;
    text-decoration: none;
    font-weight: bold;
    color: #6C63FF;
    transition: color 0.3s ease-in-out, transform 0.2s ease;
}

.back-button a:hover {
    color: #4A42CC;
    transform: scale(1.1);
}

/* Back Icon */
.back-icon {
    font-size: 1.2em;
    margin-right: 5px;
    color: #6C63FF;
    transition: transform 0.3s ease-in-out;
}

.back-button a:hover .back-icon {
    transform: translateX(-3px);
}

/* Header */
header {
    text-align: center;
    margin-bottom: 1.5em;
}

header .logo {
    max-width: 200px;
}

.logo:hover {
    animation: spin 1s ease;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

header h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

header p {
    font-size: 1em;
    opacity: 0.9;
}

/* Terms Content */
.terms-content {
    text-align: left;
    line-height: 1.6;
    margin-top: 20px;
}

.terms-content h2 {
    font-size: 1.5em;
    margin-top: 1.5em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.terms-content p {
    font-size: 1em;
    margin-top: 1em;
}

/* List Styling */
.terms-content ul {
    list-style: none;
    margin-top: 1em;
    padding-left: 0;
}

.terms-content ul li {
    background: rgba(108, 99, 255, 0.85);
    margin: 0.5rem 0;
    padding: 0.8rem;
    border-left: 5px solid #4A42CC;
    border-radius: 5px;
}

/* Footer */
footer {
    text-align: center;
    padding: 1em 0;
    font-size: 0.9em;
    color: white;
    opacity: 0.7;
    margin-top: 2em;
}

/* Responsive Design */
@media (max-width: 600px) {
    .terms-container {
        padding: 1.5em;
    }

    header h1 {
        font-size: 1.8em;
    }

    .terms-content h2 {
        font-size: 1.3em;
    }

    .terms-content p {
        font-size: 0.9em;
    }

    .back-button a {
        font-size: 0.9em;
    }
}