/* Terms & Conditions Page Styles */

/* Main Content */
.terms-main {
    padding-top: 100px; /* Account for fixed navbar */
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Hero Section */
.terms-hero {
    background: linear-gradient(135deg, #E62A38 0%, #dc3545 100%);
    padding: 80px 0 60px;
    color: white;
    text-align: center;
    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="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.terms-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.terms-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

/* Terms Content */
.terms-content {
    padding: 80px 0;
}

.terms-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.terms-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E62A38, #dc3545);
}

/* Terms Sections */
.terms-section {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
}

.terms-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    color: #E62A38;
    font-size: 2rem;
    background: linear-gradient(135deg, #E62A38, #dc3545);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 30px;
}

/* Terms List */
.terms-list {
    display: grid;
    gap: 25px;
}

.term-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #E62A38;
    transition: all 0.3s ease;
}

.term-item:hover {
    background: #f0f2f5;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 42, 56, 0.1);
}

.term-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.term-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Privacy Subsections */
.privacy-subsections {
    display: grid;
    gap: 30px;
}

.privacy-subsection {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #dc3545;
}

.subsection-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.subsection-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #dc3545;
    border-radius: 50%;
}

.privacy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.privacy-list li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.privacy-list li::before {
    content: '•';
    color: #E62A38;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.privacy-list li:last-child {
    margin-bottom: 0;
}

/* Disclaimer Content */
.disclaimer-content {
    display: grid;
    gap: 25px;
}

.disclaimer-item {
    background: #fff5f5;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #ff6b6b;
}

.disclaimer-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.disclaimer-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Contact Info */
.contact-info {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.contact-item i {
    color: #E62A38;
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.contact-item span {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

/* Legal Note */
.legal-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 30px;
}

.legal-note i {
    color: #f39c12;
    font-size: 1.25rem;
    margin-top: 3px;
}

.legal-note p {
    color: #856404;
    margin: 0;
    line-height: 1.6;
}

.legal-note strong {
    color: #856404;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .terms-card {
        padding: 50px 40px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .terms-main {
        padding-top: 80px;
    }
    
    .terms-hero {
        padding: 60px 0 40px;
    }
    
    .terms-title {
        font-size: 2.5rem;
    }
    
    .terms-subtitle {
        font-size: 1.1rem;
    }
    
    .terms-content {
        padding: 60px 0;
    }
    
    .terms-card {
        padding: 40px 25px;
        margin: 0 15px;
        border-radius: 15px;
    }
    
    .section-title {
        font-size: 1.75rem;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .section-title i {
        font-size: 1.75rem;
    }
    
    .term-item,
    .privacy-subsection,
    .disclaimer-item {
        padding: 20px;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .legal-note {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .terms-hero {
        padding: 50px 0 30px;
    }
    
    .terms-title {
        font-size: 2rem;
    }
    
    .terms-subtitle {
        font-size: 1rem;
    }
    
    .terms-card {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .term-item,
    .privacy-subsection,
    .disclaimer-item {
        padding: 15px;
    }
    
    .contact-item {
        padding: 12px;
    }
    
    .legal-note {
        padding: 15px;
    }
}

/* Animation Classes */
.terms-section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.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; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects */
.term-item:hover,
.privacy-subsection:hover,
.disclaimer-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(230, 42, 56, 0.15);
}

.contact-item:hover {
    transform: translateX(8px);
}

/* Focus States for Accessibility */
.terms-card:focus-within {
    outline: 2px solid #E62A38;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .terms-main {
        padding-top: 0;
        background: white;
    }
    
    .terms-hero {
        background: white !important;
        color: black;
        padding: 20px 0;
    }
    
    .terms-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .terms-section {
        break-inside: avoid;
    }
}
