:root {
    --primary-color: #4299e1;
    --primary-dark: #2b6cb0;
    --text-dark: #2d3748;
    --text-light: #4a5568;
    --bg-light: #f7fafc;
}

.terms-hero {
    background: linear-gradient(rgba(66, 153, 225, 0.1), rgba(66, 153, 225, 0.2));
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.terms-hero h1 {
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.terms-hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

.last-updated {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
}

.terms-content {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.terms-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.terms-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.terms-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.terms-section:hover::before {
    transform: scaleY(1);
}

.terms-section h2 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.terms-section ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.terms-section li {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 10px;
    position: relative;
}

.terms-section li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.agreement-box {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    text-align: center;
    border: 2px solid var(--primary-color);
    animation: fadeInUp 1.2s ease;
}

.agreement-box h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
}

.agreement-box p {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.agree-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.agree-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.emergency-notice {
    background: #feb2b2;
    color: #c53030;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: bold;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .terms-hero h1 {
        font-size: 32px;
    }

    .terms-hero p {
        font-size: 16px;
        padding: 0 20px;
    }

    .terms-section {
        padding: 20px;
    }
}