/* ================================
   LEGAL PAGE COMPLETE STYLES
   ================================ */

/* CSS Variables */
:root {
    --xw-blue: #003366;
    --xw-accent: #FF6B00;
    --xw-dark: #001a33;
    --xw-light: #f8f9fa;
}

/* Legal Navigation */
.legal-nav-section {
    background: var(--xw-light);
    padding: 2rem 0;
}

.legal-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.legal-nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: var(--xw-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

.legal-nav-item:hover {
    background: var(--xw-accent);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
    border-color: var(--xw-accent);
}

.legal-nav-item i {
    color: var(--xw-accent);
    transition: color 0.3s ease;
}

.legal-nav-item:hover i {
    color: white;
}

/* Legal Document Structure */
.legal-section {
    padding: 4rem 0;
}

.legal-document {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.document-header {
    background: linear-gradient(135deg, var(--xw-blue), var(--xw-accent));
    color: white;
    padding: 2rem;
}

.document-header h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.document-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.document-meta span {
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.document-content {
    padding: 2rem;
}

/* Legal Notice */
.legal-notice h3 {
    color: var(--xw-blue);
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--xw-light);
}

/* Acceptance Notice */
.acceptance-notice {
    background: #e8f4fd;
    border-left: 4px solid var(--xw-blue);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 8px 8px 0;
}

.acceptance-notice h4 {
    color: var(--xw-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Section Styles */
.terms-section, .privacy-section, .license-section, .copyright-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.terms-section:last-child, .privacy-section:last-child, 
.license-section:last-child, .copyright-section:last-child {
    border-bottom: none;
}

.terms-section h4, .privacy-section h4, .license-section h4, .copyright-section h4 {
    color: var(--xw-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Subsections */
.subsection p {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

.subsection p strong {
    color: var(--xw-blue);
}

/* Warning and Restriction Boxes */
.warning-box, .restrictions-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.warning-box p, .restrictions-box h5 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.disclaimer-section .warning-box {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.disclaimer-section .warning-box p {
    color: #721c24;
}

.restrictions-box ul {
    margin-bottom: 0;
    padding-left: 2rem;
}

.restrictions-box li {
    margin-bottom: 0.5rem;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.contact-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--xw-accent);
}

.contact-item h5 {
    color: var(--xw-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-item p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-item strong {
    color: var(--xw-dark);
}

/* Privacy Intro */
.privacy-intro {
    background: #e8f5e8;
    border-left: 4px solid #28a745;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 8px 8px 0;
}

.privacy-intro h4 {
    color: #155724;
    margin-bottom: 1rem;
}

/* Information Types */
.info-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.info-type {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-top: 4px solid var(--xw-accent);
}

.info-type h5 {
    color: var(--xw-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.info-type h5 i {
    color: var(--xw-accent);
    margin-right: 0.5rem;
}

.info-type ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.info-type li {
    margin-bottom: 0.5rem;
}

.info-type li strong {
    color: var(--xw-blue);
}

/* Security Measures */
.security-measures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.security-item {
    text-align: center;
    background: #f8f9fa;
    padding: 2rem 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.security-item i {
    font-size: 2.5rem;
    color: var(--xw-accent);
    margin-bottom: 1rem;
}

.security-item h5 {
    color: var(--xw-blue);
    margin-bottom: 1rem;
}

.security-item p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

/* License Agreement */
.license-intro .alert {
    border-radius: 8px;
    border: none;
}

.license-intro .alert h4 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.license-intro .alert h4 i {
    color: #856404;
}

/* License Types Grid */
.license-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.license-type {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--xw-accent);
}

.license-type h5 {
    color: var(--xw-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.license-type h5 i {
    color: var(--xw-accent);
    margin-right: 0.5rem;
}

.license-type p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Support Levels */
.support-levels {
    margin-top: 1.5rem;
}

.support-level {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.level-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 100px;
    text-align: center;
}

.level-badge.trial {
    background: #e9ecef;
    color: #495057;
}

.level-badge.standard {
    background: #d1ecf1;
    color: #0c5460;
}

.level-badge.professional {
    background: #d4edda;
    color: #155724;
}

.level-badge.enterprise {
    background: #fff3cd;
    color: #856404;
}

.level-badge.lifetime {
    background: #f8d7da;
    color: #721c24;
}

/* Copyright Section */
.copyright-intro {
    background: #e8f4fd;
    border-left: 4px solid var(--xw-blue);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0 8px 8px 0;
}

.copyright-intro h4 {
    color: var(--xw-blue);
    margin-bottom: 1rem;
}

/* Ownership Grid */
.ownership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.ownership-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.ownership-item i {
    color: var(--xw-accent);
    font-size: 1.2rem;
}

.ownership-item span {
    font-weight: 500;
    color: var(--xw-dark);
}

/* Enforcement Section */
.enforcement-section .alert {
    border-radius: 8px;
    border: none;
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.enforcement-section .alert p {
    margin-bottom: 1rem;
}

.enforcement-section .alert ul {
    margin-bottom: 0;
    padding-left: 2rem;
}

.enforcement-section .alert li {
    margin-bottom: 0.5rem;
}

/* Reporting Section */
.reporting-section .contact-box {
    background: #e8f4fd;
    border: 1px solid #b8daff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.reporting-section .contact-box p {
    margin-bottom: 0.5rem;
}

.reporting-section .contact-box strong {
    color: var(--xw-blue);
}

/* License Comparison Table */
.license-comparison-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.license-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
}

.license-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.license-card.recommended {
    border-color: var(--xw-accent);
    transform: scale(1.05);
}

.license-card.recommended:hover {
    transform: scale(1.05) translateY(-5px);
}

.recommended-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--xw-accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.license-header {
    padding: 2rem 1.5rem 1rem;
    text-align: center;
}

.license-card.trial .license-header {
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
}

.license-card.standard .license-header {
    background: linear-gradient(135deg, #d1ecf1, #e8f4fd);
}

.license-card.professional .license-header {
    background: linear-gradient(135deg, #fff3cd, #ffe8a1);
}

.license-card.enterprise .license-header {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
}

.license-card.academic .license-header {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
}

.license-header h3 {
    margin-bottom: 0.5rem;
    color: var(--xw-blue);
    font-size: 1.3rem;
}

.license-purpose {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.license-features {
    padding: 1.5rem;
}

.license-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.license-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.9rem;
}

.license-features li:last-child {
    border-bottom: none;
}

.license-features li i {
    font-size: 0.8rem;
}

.license-action {
    padding: 1.5rem;
    border-top: 1px solid #f8f9fa;
    text-align: center;
}

.license-action .btn {
    width: 100%;
    font-weight: 600;
}

/* License Info Section */
.license-info-section {
    margin-top: 4rem;
}

.info-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    height: 100%;
}

.info-card h4 {
    color: var(--xw-blue);
    margin-bottom: 1rem;
}

.info-card p {
    color: #666;
    margin-bottom: 0;
}

/* Contact Modal Enhancements */
.modal-header.bg-gradient-primary {
    background: linear-gradient(135deg, var(--xw-blue), var(--xw-accent)) !important;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.contact-method i {
    font-size: 1.5rem;
}

.contact-method div strong {
    display: block;
    color: var(--xw-blue);
    margin-bottom: 0.25rem;
}

.contact-method div p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Legal Footer */
.legal-footer {
    background: var(--xw-dark);
    color: white;
    padding: 3rem 0;
}

.legal-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.legal-footer h4 {
    color: var(--xw-accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.legal-footer p {
    color: #ccc;
    line-height: 1.6;
}

.quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 0.5rem;
}

.quick-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: var(--xw-accent);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info strong {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .legal-nav-item {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .document-content {
        padding: 1.5rem;
    }
    
    .document-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-grid,
    .info-types,
    .security-measures,
    .license-types-grid,
    .ownership-grid {
        grid-template-columns: 1fr;
    }
    
    .license-comparison-table {
        grid-template-columns: 1fr;
    }
    
    .license-card.recommended {
        transform: none;
    }
    
    .license-card.recommended:hover {
        transform: translateY(-5px);
    }
    
    .legal-footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .legal-section {
        padding: 2rem 0;
    }
    
    .document-header {
        padding: 1.5rem;
    }
    
    .document-header h2 {
        font-size: 1.5rem;
    }
    
    .document-content {
        padding: 1rem;
    }
    
    .acceptance-notice,
    .privacy-intro,
    .copyright-intro,
    .warning-box,
    .restrictions-box {
        padding: 1rem;
    }
    
    .contact-item,
    .info-type,
    .security-item,
    .license-type {
        padding: 1rem;
    }
    
    .license-header {
        padding: 1.5rem 1rem 0.5rem;
    }
    
    .license-features,
    .license-action {
        padding: 1rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .legal-footer {
        padding: 2rem 0;
    }
}

/* Print Styles */
@media print {
    .legal-nav-section,
    .license-action,
    .legal-footer {
        display: none;
    }
    
    .legal-section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .document-header {
        background: var(--xw-blue) !important;
        -webkit-print-color-adjust: exact;
    }
    
    .legal-document {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .license-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}