/* Terms of Service Enhanced Styling */
.terms-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.terms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" fill-opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.terms-hero .container {
    position: relative;
    z-index: 2;
}

.terms-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.terms-hero .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.terms-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 3rem;
    margin-top: -2rem;
    position: relative;
    z-index: 3;
}

.terms-nav {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #667eea;
}

.terms-nav h3 {
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.terms-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.terms-nav li {
    margin-bottom: 0.5rem;
}

.terms-nav a {
    color: #495057;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: block;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.terms-nav a:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

.terms-nav a.active {
    background: #667eea;
    color: white;
    transform: translateX(5px);
    font-weight: 600;
}

.terms-section {
    margin-bottom: 3rem;
    scroll-margin-top: 100px;
}

.terms-section h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    position: relative;
}

.terms-section h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #667eea;
}

.terms-section p {
    line-height: 1.8;
    color: #495057;
    margin-bottom: 1.5rem;
}

.terms-section ul {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.terms-section li {
    margin-bottom: 0.8rem;
    color: #495057;
    line-height: 1.7;
}

.terms-highlight {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.terms-highlight::before {
    content: '⚠️';
    font-size: 1.5rem;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.terms-highlight .content {
    margin-left: 2.5rem;
}

.terms-highlight h4 {
    color: #856404;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.terms-highlight p {
    color: #856404;
    margin: 0;
}

.contact-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.contact-card p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.last-updated {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #1565c0;
}

.terms-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.terms-link:hover {
    color: #5a6fd8;
    border-bottom-color: #5a6fd8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terms-hero {
        padding: 3rem 0;
    }

    .terms-hero h1 {
        font-size: 2.2rem;
    }

    .terms-content {
        padding: 2rem 1.5rem;
        margin-top: -1rem;
    }

    .terms-nav {
        padding: 1rem;
    }

    .contact-card {
        padding: 1.5rem;
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .terms-hero h1 {
        font-size: 1.8rem;
    }

    .terms-content {
        padding: 1.5rem 1rem;
    }

    .terms-section h2 {
        font-size: 1.3rem;
    }

    .terms-highlight {
        padding: 1rem;
    }

    .terms-highlight .content {
        margin-left: 2rem;
    }
}

/* Animation for smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
.terms-content {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Print styles */
@media print {
    .terms-hero {
        background: none !important;
        color: black !important;
    }

    .terms-nav,
    .contact-card {
        display: none !important;
    }

    .terms-content {
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}
