/* Terms of Service Page Styles */

/* Use CSS variables from main theme */
.terms-main {
    background-color: var(--background);
    color: var(--foreground);
    min-height: 100vh;
    padding: 2rem 0;
}

.terms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.terms-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 2px solid var(--border);
}

.terms-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.terms-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.terms-subtitle {
    font-size: 1.2rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

.terms-content {
    line-height: 1.8;
    font-size: 1rem;
}

.terms-intro {
    background-color: var(--card);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
}

.terms-intro p {
    margin-bottom: 1.5rem;
}

.terms-intro p:last-child {
    margin-bottom: 0;
}

.terms-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--card);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
}

.terms-section h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.terms-subsection {
    margin-bottom: 2rem;
}

.terms-subsection:last-child {
    margin-bottom: 0;
}

.terms-subsection h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.terms-subsection h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.75rem;
}

.terms-subsection p {
    margin-bottom: 1rem;
    text-align: justify;
}

.terms-subsection p:last-child {
    margin-bottom: 0;
}

.terms-subitem {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--border);
}

.terms-subitem:last-child {
    margin-bottom: 0;
}

.terms-voiceshield {
    background-color: var(--card);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 3rem;
}

.terms-voiceshield h3 {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Additional styling for lists */
.terms-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.terms-section li {
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

/* Responsive Design */
@media (max-width: 768px) {
    .terms-container {
        padding: 0 0.5rem;
    }
    
    .terms-header h1 {
        font-size: 2rem;
    }
    
    .terms-header h2 {
        font-size: 1.5rem;
    }
    
    .terms-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .terms-section h3 {
        font-size: 1.5rem;
    }
    
    .terms-subsection h4 {
        font-size: 1.2rem;
    }
    
    .terms-subitem {
        margin-left: 1rem;
        padding-left: 0.75rem;
    }
}

@media (max-width: 480px) {
    .terms-main {
        padding: 1rem 0;
    }
    
    .terms-header {
        padding: 1rem 0;
        margin-bottom: 2rem;
    }
    
    .terms-header h1 {
        font-size: 1.75rem;
    }
    
    .terms-header h2 {
        font-size: 1.25rem;
    }
    
    .terms-intro {
        padding: 1.5rem;
    }
    
    .terms-section {
        padding: 1rem;
    }
    
    .terms-content {
        font-size: 0.95rem;
    }
}

/* Print Styles */
@media print {
    .terms-main {
        background-color: white !important;
        color: black !important;
    }
    
    .terms-section {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
    
    .terms-header {
        border-bottom: 2px solid #000 !important;
    }
}

/* Accessibility Improvements */
.terms-section:focus-within {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .terms-section {
        border-width: 2px;
    }
    
    .terms-section h3 {
        border-bottom-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}
