/* Legal Pages Specific Styles */

.page-header {
    background: var(--gradient-hero);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::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 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.header-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Legal Content */
.legal-content {
    padding: 5rem 0;
    background: var(--surface-color);
}

.content-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Table of Contents */
.toc-sidebar {
    position: sticky;
    top: 100px;
}

.toc-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.toc-card h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.75rem;
}

.toc-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.toc-list a:hover {
    color: var(--primary-color);
    background: var(--surface-color);
    border-left-color: var(--primary-color);
}

.toc-list a.active {
    color: var(--primary-color);
    background: var(--surface-color);
    border-left-color: var(--primary-color);
    font-weight: 500;
}

/* Main Content */
.legal-main {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.content-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

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

.content-section h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    scroll-margin-top: 100px;
}

.content-section h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.content-section h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.content-section ul,
.content-section ol {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

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

.content-section a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.content-section a:hover {
    border-bottom-color: var(--primary-color);
}

/* Highlight Boxes */
.highlight-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 2rem 0;
    border-left: 4px solid;
}

.highlight-box.info {
    background: #eff6ff;
    border-left-color: #3b82f6;
}

.highlight-box.warning {
    background: #fefce8;
    border-left-color: #eab308;
}

.highlight-box.error {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.highlight-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-box.info .highlight-icon {
    background: #3b82f6;
    color: white;
}

.highlight-box.warning .highlight-icon {
    background: #eab308;
    color: white;
}

.highlight-box.error .highlight-icon {
    background: #ef4444;
    color: white;
}

.highlight-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.highlight-content p {
    color: var(--text-secondary);
    margin: 0;
}

/* Professional Types Grid */
.professional-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.professional-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.professional-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.professional-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.professional-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Usage Grid */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.usage-card {
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.usage-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.usage-icon i {
    color: white;
    font-size: 1.5rem;
}

.usage-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.usage-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Security Features */
.security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.security-feature {
    text-align: center;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.security-feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.security-feature h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.security-feature p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Rights Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.right-item {
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.right-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.right-item h4 i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.right-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Quality Factors */
.quality-factors {
    margin: 2rem 0;
}

.factor-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.factor-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.factor-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.factor-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Consultation Scenarios */
.consultation-scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.scenario-card {
    padding: 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.scenario-icon {
    width: 60px;
    height: 60px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.scenario-icon.legal {
    background: #1d4ed8;
}

.scenario-icon.financial {
    background: #059669;
}

.scenario-icon.technical {
    background: #dc2626;
}

.scenario-icon i {
    color: white;
    font-size: 1.5rem;
}

.scenario-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.scenario-card ul {
    margin: 0;
    padding-left: 1.25rem;
}

.scenario-card li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* Contact Methods */
.contact-methods {
    margin: 2rem 0;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.contact-method i {
    color: var(--primary-color);
    font-size: 1.25rem;
    width: 20px;
    text-align: center;
}

.contact-method strong {
    color: var(--text-primary);
}

.contact-method a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.contact-method a:hover {
    border-bottom-color: var(--primary-color);
}

/* Navigation Active State */
.nav-logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .toc-sidebar {
        position: static;
        order: -1;
    }
    
    .toc-card {
        padding: 1.5rem;
    }
    
    .legal-main {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .header-content p {
        font-size: 1.125rem;
    }
    
    .legal-content {
        padding: 3rem 0;
    }
    
    .legal-main {
        padding: 1.5rem;
    }
    
    .content-section {
        margin-bottom: 2rem;
        padding-bottom: 2rem;
    }
    
    .content-section h2 {
        font-size: 1.75rem;
    }
    
    .usage-grid,
    .security-features,
    .rights-grid,
    .consultation-scenarios {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .professional-types {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .highlight-box {
        flex-direction: column;
        text-align: center;
    }
    
    .factor-item {
        flex-direction: column;
        text-align: center;
    }
    
    .toc-card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 5rem 0 2rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .legal-main {
        padding: 1rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .highlight-box,
    .professional-card,
    .usage-card,
    .security-feature,
    .scenario-card {
        padding: 1rem;
    }
    
    .last-updated {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .page-header {
        background: white;
        color: var(--text-primary);
    }
    
    .toc-sidebar {
        display: none;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .legal-main {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    
    .highlight-box {
        border: 1px solid var(--border-color);
        background: white !important;
    }
    
    .content-section {
        page-break-inside: avoid;
    }
    
    .content-section h2 {
        page-break-after: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .highlight-box {
        border-width: 2px;
    }
    
    .toc-list a:hover,
    .toc-list a.active {
        border-left-width: 4px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .toc-list a,
    .content-section a {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

