/* Terms Page */
.terms-page {
    width: 100vw;
    background-color: #f9fafb;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 200px); /* Adjust for header and footer */
    padding-top: 80px; /* Clears fixed header */
}

/* Terms Hero Section */
.terms-hero {
    width: 100vw;
    height: 400px;
    background: linear-gradient(rgba(30, 58, 138, 0.6), rgba(0, 119, 190, 0.4)), url("/static/img/hero_pic.jpg") no-repeat center;
    background-size: cover;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    margin-top: -80px; /* Overlap with header for seamless transition */
    padding-top: 80px; /* Ensure visibility below fixed header */
}

.terms-hero h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    animation: slideInUp 1s ease-out;
}

.terms-hero p {
    font-size: 22px;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1s ease-out 0.5s forwards;
}

/* Terms Content */
.terms-content {
    width: 100vw;
    max-width: 100%;
    padding: 80px 20px;
    background: #fff;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.terms-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.terms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.terms-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    animation: slideInUp 0.8s ease-out;
}

.terms-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 25px 0 15px;
    animation: fadeInUp 0.8s ease-out;
}

.terms-content p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.terms-content ul {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 20px;
}

.terms-content ul li {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.terms-content ul li:before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 16px;
}

.terms-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.terms-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .terms-hero {
        height: 350px;
    }

    .terms-hero h1 {
        font-size: 48px;
    }

    .terms-hero p {
        font-size: 20px;
    }

    .terms-content {
        padding: 60px 15px;
    }

    .terms-content h2 {
        font-size: 28px;
    }

    .terms-content h3 {
        font-size: 22px;
    }

    .terms-content p, .terms-content ul li {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .terms-hero {
        height: 300px;
        padding-top: 60px; /* Adjust for mobile header */
        margin-top: -60px;
    }

    .terms-hero h1 {
        font-size: 40px;
    }

    .terms-hero p {
        font-size: 18px;
    }

    .terms-content {
        padding: 40px 10px;
    }

    .terms-content h2 {
        font-size: 24px;
    }

    .terms-content h3 {
        font-size: 20px;
    }

    .terms-content p, .terms-content ul li {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .terms-hero {
        height: 250px;
        padding-top: 50px;
        margin-top: -50px;
    }

    .terms-hero h1 {
        font-size: 32px;
    }

    .terms-hero p {
        font-size: 16px;
    }

    .terms-content {
        padding: 30px 10px;
    }

    .terms-content h2 {
        font-size: 22px;
    }

    .terms-content h3 {
        font-size: 18px;
    }

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