/* terms.css - Styles for terms of service page */

/* Terms Header */
.terms-header {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
}

.terms-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.terms-header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.terms-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.meta-item i {
    font-size: 1.1rem;
}

.terms-warning {
    background: rgba(255, 193, 7, 0.2);
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.terms-warning i {
    color: #ffc107;
    font-size: 1.5rem;
    margin-top: 2px;
}

.terms-warning p {
    margin: 0;
    font-weight: 500;
}

/* Terms Content */
.terms-content {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.terms-section {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.terms-section:last-child {
    border-bottom: none;
}

.terms-section.expanded .section-header {
    background: #f5f3ff;
}

.terms-section.expanded .section-header h2 {
    color: #7c3aed;
}

.section-header {
    background: #f8fafc;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-header:hover {
    background: #f5f3ff;
}

.section-header h2 {
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #374151;
}

.section-header h2 i {
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
}

.section-header::after {
    content: "▼";
    font-size: 0.8rem;
    color: #6b7280;
    transition: transform 0.3s;
}

.terms-section.expanded .section-header::after {
    transform: rotate(180deg);
}

.section-content {
    padding: 2rem;
    line-height: 1.8;
    color: #4b5563;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.terms-section.expanded .section-content {
    max-height: 5000px;
    padding: 2rem;
}

.section-content h3 {
    color: #7c3aed;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.section-content h3:first-child {
    margin-top: 0;
}

.section-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.section-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.section-content li strong {
    color: #1f2937;
}

.section-content a {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 500;
}

.section-content a:hover {
    text-decoration: underline;
    color: #6d28d9;
}

/* Acceptance Section */
.terms-acceptance {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 0 0 15px 15px;
    border-top: 1px solid #e5e7eb;
}

.terms-acceptance h3 {
    color: #7c3aed;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.terms-acceptance p {
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    color: #4b5563;
}

.acceptance-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 2rem;
}

.btn-accept, .btn-privacy, .btn-print {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-accept {
    background: #7c3aed;
    color: white;
    border-color: #7c3aed;
}

.btn-accept:hover {
    background: #6d28d9;
    border-color: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-privacy {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-privacy:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-print {
    background: #6b7280;
    color: white;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.btn-print:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.acceptance-checkbox {
    margin: 1.5rem 0;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.acceptance-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: #374151;
    font-weight: 500;
}

.acceptance-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .terms-header h1 {
        font-size: 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .terms-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .terms-warning {
        flex-direction: column;
        text-align: center;
    }
    
    .section-header {
        padding: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .section-content {
        padding: 1.5rem;
    }
    
    .terms-section.expanded .section-content {
        padding: 1.5rem;
    }
    
    .breadcrumb {
        font-size: 0.9rem;
    }
    
    .terms-acceptance {
        padding: 2rem 1rem;
    }
    
    .acceptance-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-accept, .btn-privacy, .btn-print {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .main-footer,
    .footer-nav,
    .search-container,
    .breadcrumb-nav,
    .terms-acceptance,
    .section-header::after {
        display: none !important;
    }
    
    .terms-header {
        background: white !important;
        color: black !important;
        padding: 1rem !important;
        border: 2px solid #7c3aed !important;
    }
    
    .terms-meta {
        background: white !important;
        border: 1px solid #ddd !important;
    }
    
    .terms-warning {
        border: 1px solid #ffc107 !important;
    }
    
    .terms-content {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .section-header {
        break-inside: avoid;
        background: white !important;
        border-bottom: 2px solid #7c3aed !important;
        cursor: default !important;
    }
    
    .section-content {
        max-height: none !important;
        overflow: visible !important;
    }
    
    body {
        font-size: 12pt !important;
        line-height: 1.5 !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    a {
        color: black !important;
        text-decoration: none !important;
    }
    
    .section-header h2::after {
        content: "" !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terms-section {
    animation: fadeIn 0.5s ease forwards;
}

.terms-section:nth-child(odd) {
    animation-delay: 0.1s;
}

.terms-section:nth-child(even) {
    animation-delay: 0.2s;
}