/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(109.6deg, rgba(223,234,247,1) 11.2%, rgba(244,248,252,1) 91.1%);
}

/* Navigation */
.navbar {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #517fa4;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
}

.nav-icons a {
    color: #333;
    text-decoration: none;
}

/* Hero Section */
.terms-hero {
    height: 50vh;
    background: linear-gradient(135deg, #4A3428 0%, #8B593E 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 60px;
    overflow: hidden;
}

.terms-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}


.terms-hero-content {
    position: relative;
    z-index: 1;
    color: #FDF5E6;
    padding: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.terms-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.terms-hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
.terms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.terms-section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.terms-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.terms-section h2 {
    color: #243949;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.terms-content {
    color: #666;
}

.terms-list {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.terms-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    transition: transform 0.2s ease;
}

.terms-list li:before {
    content: "•";
    color: #517fa4;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.terms-list li:hover {
    transform: translateX(5px);
}

.contact-info {
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info i {
    color: #517fa4;
    margin-right: 0.5rem;
    width: 20px;
}

/* Footer */
.footer {
    background: #243949;
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #517fa4;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in {
    animation: slideIn 0.6s ease-out forwards;
    opacity: 0;
}

.terms-section:nth-child(1) { animation-delay: 0.1s; }
.terms-section:nth-child(2) { animation-delay: 0.2s; }
.terms-section:nth-child(3) { animation-delay: 0.3s; }
.terms-section:nth-child(4) { animation-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .terms-hero h1 {
        font-size: 2.5rem;
    }

    .terms-section {
        padding: 1.5rem;
    }

    .terms-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .terms-hero h1 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}