/* static/css/terms.css */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Header and Navigation Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.nav-brand h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Mobile menu button (hidden by default) */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 5px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Terms & Conditions Container */
.terms-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1rem 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.terms-container h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.terms-intro {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eaeaea;
}

.terms-section {
    margin-bottom: 2.5rem;
}

.terms-section h2 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.terms-content p {
    margin-bottom: 1rem;
    color: #566573;
}

.terms-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.terms-content li {
    margin-bottom: 0.5rem;
    color: #566573;
}

address {
    font-style: normal;
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1.5rem;
    text-align: center;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #ffdd40;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ffdd40;
}

.footer-section p {
    color: #ecf0f1;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffdd40;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #3a506b;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        padding: 1rem;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
        padding: 1rem;
        z-index: 100;
        gap: 0.5rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .terms-container {
        padding: 1rem;
        margin: 1rem;
    }
    
    .terms-container h1 {
        font-size: 1.8rem;
    }
    
    .terms-section h2 {
        font-size: 1.4rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .footer-section {
        flex: 1;
        padding: 0 1rem;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .nav-brand h2 {
        font-size: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 0.8rem;
        padding: 0.3rem 0.4rem;
    }
    
    .terms-container h1 {
        font-size: 1.6rem;
    }
    
    .terms-section h2 {
        font-size: 1.3rem;
    }
}