/* ===================================
   SLYD Legal Pages - Comprehensive CSS
   =================================== */

/* ===================================
   1. LEGAL.RAZOR COMPONENT STYLES
   =================================== */

/* Legal Landing Page - Terms Navigation */
.terms-navigation {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.terms-navigation h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-color-start);
    margin-bottom: 16px;
}

.terms-navigation > p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.terms-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.terms-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.terms-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(99, 102, 241, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.terms-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color-start);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

.terms-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 28px;
    color: white;
}

.terms-card h3 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.terms-card p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.card-arrow {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card-arrow i {
    font-size: 14px;
    color: var(--primary-color-start);
    transition: transform 0.3s ease;
}

.terms-card:hover .card-arrow {
    background-color: var(--primary-color-start);
}

.terms-card:hover .card-arrow i {
    color: white;
    transform: translateX(4px);
}

/* ===================================
   2. SHARED LEGAL PAGE STYLES
   =================================== */

/* Container and Layout */
.privacy-policy-container {
    padding: 80px 0;
    background-color: var(--bg-secondary);
    min-height: 100vh;
}

.privacy-header {
    text-align: center;
    margin-bottom: 60px;
}

.privacy-header h1 {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.last-updated {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 500;
}

.privacy-content {
    max-width: 1000px;
    margin: 0 auto;
}

/* Breadcrumb Navigation */
.terms-breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    justify-content: center;
}

.terms-breadcrumb a {
    color: var(--primary-color-start);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.terms-breadcrumb a:hover {
    opacity: 0.8;
}

.terms-breadcrumb .separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.terms-breadcrumb .current {
    color: var(--text-muted);
    font-weight: 500;
}

/* Table of Contents */
.table-of-contents {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.table-of-contents h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color-start);
    margin-bottom: 24px;
}

.table-of-contents ol {
    list-style: none;
    counter-reset: toc-counter;
    padding: 0;
    margin: 0;
}

.table-of-contents ol li {
    counter-increment: toc-counter;
    margin-bottom: 12px;
    position: relative;
    padding-left: 40px;
}

.table-of-contents ol li::before {
    content: counter(toc-counter) ".";
    position: absolute;
    left: 0;
    color: var(--primary-color-start);
    font-weight: 600;
    font-size: 16px;
}

.table-of-contents a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.6;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.table-of-contents a:hover {
    color: #fff;
    transform: translateX(4px);
}

/* Terms Section Styling */
.terms-section {
    background-color: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.terms-section h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-color-start);
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

/* Section Content */
.section-content {
    margin-bottom: 40px;
}

.section-content:last-child {
    margin-bottom: 0;
}

.section-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.section-content h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color-start), var(--primary-color-end));
    margin-right: 12px;
    border-radius: 2px;
}

.section-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 24px 0 16px;
}

.section-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-align: justify;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.section-content strong {
    color: #fff;
    font-weight: 600;
}

/* List Styling */
.section-content ul {
    margin: 16px 0;
    padding-left: 24px;
    list-style: none;
}

.section-content ul li {
    position: relative;
    margin-bottom: 12px;
    line-height: 1.8;
    color: var(--text-muted);
    padding-left: 20px;
}

.section-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color-start);
    font-weight: bold;
}

.section-content ul li strong {
    color: #fff;
    font-weight: 600;
}

/* Nested Lists */
.section-content ul ul {
    margin-top: 8px;
    margin-bottom: 8px;
}

.section-content ul ul li::before {
    content: '◦';
    font-size: 12px;
}

/* Interactive Elements */
.section-content h3:hover {
    color: var(--primary-color-start);
    transition: color 0.3s ease;
}

/* Highlight Important Text */
.section-content p:has(strong:first-child) {
    background-color: rgba(99, 102, 241, 0.05);
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color-start);
    margin: 20px 0;
}

/* Text Readability */
.section-content p,
.section-content li {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Visual Separation */
.terms-section + .terms-section {
    margin-top: 40px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ===================================
   3. RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1200px) {
    .privacy-content {
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    /* Legal Landing Page Responsive */
    .terms-navigation {
        padding: 24px;
    }
    
    .terms-navigation h2 {
        font-size: 28px;
    }
    
    .terms-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .terms-card {
        padding: 24px;
    }
    
    /* Shared Legal Pages Responsive */
    .privacy-policy-container {
        padding: 60px 0;
    }
    
    .privacy-header h1 {
        font-size: 36px;
    }
    
    .terms-section {
        padding: 24px;
        margin-bottom: 24px;
    }
    
    .terms-section h2 {
        font-size: 28px;
        margin-bottom: 24px;
    }
    
    .section-content h3 {
        font-size: 20px;
    }
    
    .section-content p {
        font-size: 15px;
        text-align: left;
    }
    
    .terms-breadcrumb {
        font-size: 12px;
        gap: 8px;
    }
    
    .table-of-contents {
        padding: 24px;
    }
    
    .table-of-contents h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .table-of-contents ol li {
        padding-left: 32px;
        margin-bottom: 8px;
    }
    
    .table-of-contents a {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* Legal Landing Page Mobile */
    .terms-navigation h2 {
        font-size: 24px;
    }
    
    .terms-navigation > p {
        font-size: 16px;
    }
    
    .card-icon {
        width: 48px;
        height: 48px;
    }
    
    .card-icon i {
        font-size: 24px;
    }
    
    .terms-card h3 {
        font-size: 20px;
    }
    
    .terms-card p {
        font-size: 14px;
    }
    
    /* Shared Legal Pages Mobile */
    .privacy-header h1 {
        font-size: 28px;
    }
    
    .last-updated {
        font-size: 16px;
    }
    
    .terms-section {
        padding: 20px;
        border-radius: 12px;
    }
    
    .terms-section h2 {
        font-size: 24px;
    }
    
    .section-content h3 {
        font-size: 18px;
    }
    
    .section-content h3::before {
        width: 3px;
        height: 20px;
        margin-right: 8px;
    }
    
    .table-of-contents {
        padding: 20px;
    }
    
    .table-of-contents h2 {
        font-size: 18px;
    }
    
    .table-of-contents ol li {
        padding-left: 28px;
    }
    
    .table-of-contents ol li::before {
        font-size: 14px;
    }
}

/* ===================================
   Component Reference:
   - Legal.razor.css: Legal landing page with terms navigation cards
   - HardwareSalesTerms.razor.css: Hardware sales terms page
   - DisputeResolution.razor.css: Dispute resolution page
   - CloudMarketplaceTerms.razor.css: Cloud marketplace terms page
   - AcceptableUsePolicy.razor.css: Acceptable use policy page
   - PrivacyPolicy.razor.css: Privacy policy page
   - MarketplaceParticipationAgreement.razor.css: Marketplace participation agreement page
   
   Note: All individual legal pages share the same base styles defined in section 2.
   =================================== */