/* Enhanced Critical CSS with Specific Classes - Prevents Theme Conflicts */
/* Reset and base styles with high specificity */
.terms-of-service-page *,
.terms-of-service-page *::before,
.terms-of-service-page *::after {
    box-sizing: border-box !important;
}

.terms-of-service-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif !important;
    line-height: 1.6 !important;
    scroll-behavior: smooth !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    font-size: 16px !important;
    min-height: 100vh !important;
}

.terms-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.terms-main {
    padding: 3rem 0 4rem !important;
    background: #ffffff !important;
}

.terms-content {
    max-width: 1000px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.08) !important;
    padding: 3.5rem !important;
    border: 1px solid #e5e7eb !important;
    position: relative !important;
    overflow: hidden !important;
}

.terms-content::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 6px !important;
    background: linear-gradient(90deg, #8b5cf6, #a855f7, #c084fc, #d8b4fe) !important;
}

.terms-of-service-page h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem) !important;
    color: #1f2937 !important;
    margin: 0 0 2rem 0 !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    text-align: center !important;
    background: linear-gradient(135deg, #8b5cf6, #a855f7) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.terms-of-service-page h2 {
    font-size: 2rem !important;
    color: #8b5cf6 !important;
    margin: 3.5rem 0 1.5rem 0 !important;
    font-weight: 800 !important;
    position: relative !important;
    padding-left: 2rem !important;
}

.terms-of-service-page h2::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 6px !important;
    height: 100% !important;
    background: linear-gradient(135deg, #8b5cf6, #a855f7) !important;
    border-radius: 3px !important;
}

.terms-of-service-page h3 {
    font-size: 1.5rem !important;
    color: #374151 !important;
    margin: 2.5rem 0 1rem 0 !important;
    font-weight: 700 !important;
}

.terms-of-service-page h4 {
    font-size: 1.25rem !important;
    color: #8b5cf6 !important;
    margin: 2rem 0 0.75rem 0 !important;
    font-weight: 600 !important;
}

.terms-of-service-page p {
    margin: 0 0 1.5rem 0 !important;
    line-height: 1.8 !important;
    color: #374151 !important;
    font-size: 1.125rem !important;
}

.terms-of-service-page ul, 
.terms-of-service-page ol {
    margin: 1.5rem 0 !important;
    padding-left: 2rem !important;
    color: #374151 !important;
}

.terms-of-service-page li {
    margin-bottom: 0.75rem !important;
    line-height: 1.7 !important;
    font-size: 1.0625rem !important;
}

.terms-of-service-page strong {
    font-weight: 700 !important;
    color: #1f2937 !important;
}

.terms-hero {
    text-align: center !important;
    margin-bottom: 4rem !important;
    padding: 2.5rem !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03), rgba(168, 85, 247, 0.05)) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(139, 92, 246, 0.1) !important;
    position: relative !important;
}

.terms-hero::before {
    content: '📋' !important;
    position: absolute !important;
    top: 1.5rem !important;
    left: 1.5rem !important;
    font-size: 2rem !important;
    opacity: 0.6 !important;
}

.terms-tagline {
    font-size: 1.375rem !important;
    color: #4b5563 !important;
    margin: 1.5rem 0 !important;
    font-weight: 500 !important;
    font-style: italic !important;
    line-height: 1.6 !important;
}

.terms-section {
    margin-bottom: 4rem !important;
    position: relative !important;
}

.terms-highlight-card {
    background: linear-gradient(135deg, #faf5ff, #f3e8ff) !important;
    border: 2px solid #c084fc !important;
    border-radius: 16px !important;
    padding: 2.5rem !important;
    margin: 2rem 0 !important;
    position: relative !important;
    box-shadow: 0 8px 24px rgba(192, 132, 252, 0.15) !important;
    transition: all 0.3s ease !important;
}

.terms-highlight-card::before {
    content: '⚖️' !important;
    position: absolute !important;
    top: 1.5rem !important;
    right: 1.5rem !important;
    font-size: 2rem !important;
}

.terms-highlight-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(192, 132, 252, 0.2) !important;
}

.terms-highlight-card h4 {
    color: #7c3aed !important;
    margin: 0 0 1rem 0 !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
}

.terms-highlight-card p {
    color: #374151 !important;
    margin: 0 !important;
}

.terms-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
    margin: 3rem 0 !important;
}

.terms-service-card {
    background: #ffffff !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.05) !important;
}

.terms-service-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #8b5cf6, #a855f7) !important;
    transform: scaleX(0) !important;
    transition: transform 0.3s ease !important;
}

.terms-service-card:hover::before {
    transform: scaleX(1) !important;
}

.terms-service-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.15) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

.terms-service-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #8b5cf6 !important;
    margin: 0 0 1rem 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.terms-service-description {
    color: #6b7280 !important;
    line-height: 1.6 !important;
    font-size: 0.9375rem !important;
    margin: 0 !important;
}

.terms-warning-box {
    background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
    border: 2px solid #f59e0b !important;
    border-radius: 16px !important;
    padding: 2.5rem !important;
    margin: 3rem 0 !important;
    position: relative !important;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15) !important;
}

.terms-warning-box::before {
    content: '⚠️' !important;
    position: absolute !important;
    top: 1.5rem !important;
    right: 1.5rem !important;
    font-size: 2rem !important;
}

.terms-warning-box h4 {
    color: #92400e !important;
    margin: 0 0 1rem 0 !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
}

.terms-legal-box {
    background: linear-gradient(135deg, #fef2f2, #fee2e2) !important;
    border: 2px solid #ef4444 !important;
    border-radius: 16px !important;
    padding: 2.5rem !important;
    margin: 3rem 0 !important;
    position: relative !important;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.15) !important;
}

.terms-legal-box::before {
    content: '⚖️' !important;
    position: absolute !important;
    top: 1.5rem !important;
    right: 1.5rem !important;
    font-size: 2rem !important;
}

.terms-legal-box h4 {
    color: #dc2626 !important;
    margin: 0 0 1rem 0 !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
}

.terms-contact-cta {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed, #6d28d9) !important;
    color: white !important;
    padding: 3rem !important;
    border-radius: 24px !important;
    margin: 4rem 0 !important;
    text-align: center !important;
    box-shadow: 0 24px 64px rgba(124, 58, 237, 0.25) !important;
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.terms-contact-cta::before {
    content: '' !important;
    position: absolute !important;
    top: -50% !important;
    right: -50% !important;
    width: 200% !important;
    height: 200% !important;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%) !important;
    pointer-events: none !important;
    animation: termsFloat 8s ease-in-out infinite !important;
}

@keyframes termsFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

.terms-contact-cta h3 {
    color: white !important;
    margin: 0 0 1.5rem 0 !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    position: relative !important;
    z-index: 2 !important;
}

.terms-contact-cta p {
    margin: 0 0 2rem 0 !important;
    font-size: 1.125rem !important;
    position: relative !important;
    z-index: 2 !important;
    opacity: 0.95 !important;
    color: white !important;
}

.terms-contact-buttons {
    display: flex !important;
    gap: 1.5rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    position: relative !important;
    z-index: 2 !important;
}

.terms-contact-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    padding: 1rem 2rem !important;
    border-radius: 16px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
}

.terms-contact-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.terms-breadcrumb {
    margin-bottom: 2rem !important;
    font-size: 0.9375rem !important;
    color: #6b7280 !important;
    padding: 1rem 0 !important;
}

.terms-breadcrumb a {
    color: #8b5cf6 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.terms-breadcrumb a:hover {
    color: #7c3aed !important;
    text-decoration: underline !important;
}

.terms-footer {
    background: #f9fafb !important;
    padding: 3rem 0 !important;
    border-top: 2px solid #e5e7eb !important;
    margin-top: 4rem !important;
}

.terms-footer-content {
    text-align: center !important;
    color: #6b7280 !important;
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
}

.terms-footer a {
    color: #8b5cf6 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.terms-footer a:hover {
    color: #7c3aed !important;
    text-decoration: underline !important;
}

.terms-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 2rem 0 !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1) !important;
}

.terms-table th {
    background: linear-gradient(135deg, #8b5cf6, #a855f7) !important;
    color: white !important;
    padding: 1rem !important;
    font-weight: 700 !important;
    text-align: left !important;
    border: none !important;
}

.terms-table td {
    padding: 1rem !important;
    border-bottom: 1px solid #e5e7eb !important;
    color: #374151 !important;
    vertical-align: top !important;
}

.terms-table tr:last-child td {
    border-bottom: none !important;
}

.terms-table tr:nth-child(even) {
    background: #f8fafc !important;
}

/* Enhanced Mobile Optimizations */
@media (max-width: 768px) {
    .terms-container {
        padding: 0 15px !important;
    }
    
    .terms-main {
        padding: 2rem 0 3rem !important;
    }
    
    .terms-content {
        padding: 2.5rem !important;
        border-radius: 16px !important;
        margin: 0 5px !important;
    }
    
    .terms-of-service-page h1 {
        font-size: 2.25rem !important;
    }
    
    .terms-of-service-page h2 {
        font-size: 1.75rem !important;
        padding-left: 1.5rem !important;
    }
    
    .terms-hero {
        padding: 2rem !important;
    }
    
    .terms-tagline {
        font-size: 1.25rem !important;
    }
    
    .terms-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .terms-contact-cta {
        padding: 2.5rem !important;
        margin: 3rem 0 !important;
    }
    
    .terms-contact-buttons {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .terms-contact-btn {
        width: 100% !important;
        max-width: 280px !important;
        justify-content: center !important;
    }
    
    .terms-table {
        font-size: 0.875rem !important;
    }
    
    .terms-table th,
    .terms-table td {
        padding: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .terms-content {
        padding: 2rem !important;
        margin: 0 !important;
        border-radius: 12px !important;
    }
    
    .terms-of-service-page h1 {
        font-size: 2rem !important;
    }
    
    .terms-of-service-page h2 {
        font-size: 1.5rem !important;
    }
    
    .terms-hero {
        padding: 1.5rem !important;
    }
    
    .terms-highlight-card {
        padding: 2rem !important;
    }
    
    .terms-service-card {
        padding: 1.5rem !important;
    }
    
    .terms-contact-cta {
        padding: 2rem !important;
    }
    
    .terms-table {
        font-size: 0.8125rem !important;
    }
    
    .terms-table th,
    .terms-table td {
        padding: 0.5rem !important;
    }
}

/* Enhanced Accessibility */
.terms-skip-link {
    position: absolute !important;
    top: -40px !important;
    left: 6px !important;
    background: #8b5cf6 !important;
    color: white !important;
    padding: 8px 16px !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    z-index: 10000 !important;
    transition: top 0.3s ease !important;
    font-weight: 600 !important;
}

.terms-skip-link:focus {
    top: 6px !important;
}

/* Focus states for better accessibility */
.terms-breadcrumb a:focus,
.terms-footer a:focus,
.terms-contact-btn:focus {
    outline: 3px solid #8b5cf6 !important;
    outline-offset: 2px !important;
    border-radius: 4px !important;
}

/* Print Optimizations */
@media print {
    .terms-main {
        padding: 0 !important;
    }
    
    .terms-of-service-page {
        font-size: 12pt !important;
        line-height: 1.4 !important;
    }
    
    .terms-of-service-page h1,
    .terms-of-service-page h2,
    .terms-of-service-page h3 {
        page-break-after: avoid !important;
    }
    
    .terms-section {
        page-break-inside: avoid !important;
    }
    
    .terms-content {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }
    
    .terms-contact-cta {
        display: none !important;
    }
    
    .terms-table {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .terms-table th {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
}

/* Performance optimizations */
.terms-of-service-page * {
    will-change: auto !important;
}

.terms-of-service-page img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

