/* Corporate Legal Pages Styling */

/* Typography - Professional Corporate Fonts */
.legal-page {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #2c3e50;
    line-height: 1.8;
    font-size: 16px;
}

.legal-page h1 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.legal-page h2, .legal-page h3, .legal-page h4 {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-page h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid #003366;
    padding-bottom: 0.5rem;
}

.legal-page h3 {
    font-size: 1.35rem;
    color: #003366;
}

.legal-page h4 {
    font-size: 1.15rem;
}

/* Hero Section - Corporate Style */
.legal-hero {
    background: linear-gradient(135deg, #003366 0%, #0066cc 100%);
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.legal-hero .container {
    position: relative;
    z-index: 1;
}

.legal-hero h1 {
    color: #ffffff;
    font-size: 3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.legal-hero .lead {
    color: rgba(255,255,255,0.9);
    font-size: 1.15rem;
}

.legal-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

/* Content Cards - Professional Layout */
.legal-card {
    background: #ffffff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.legal-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.legal-card-body {
    padding: 2.5rem;
}

.legal-card h2 {
    color: #003366;
    margin-top: 0;
    font-size: 1.65rem;
}

/* List Styling - Corporate */
.legal-page ul, .legal-page ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-page ul li, .legal-page ol li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.legal-page ul li {
    list-style-type: none;
    position: relative;
    padding-left: 1.5rem;
}

.legal-page ul li::before {
    content: '▪';
    color: #003366;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.legal-page strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Table of Contents */
.toc-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #003366;
    position: sticky;
    top: 80px;
}

.toc-card h3 {
    color: #003366;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: none;
}

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

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

.toc-list a {
    color: #495057;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: block;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
}

.toc-list a:hover {
    background: #ffffff;
    color: #003366;
    padding-left: 1rem;
}

/* Info Boxes */
.legal-info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.legal-warning-box {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left: 4px solid #ff9800;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.legal-success-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid #4caf50;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Contact Section */
.legal-contact {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.legal-contact h3 {
    color: #003366;
    margin-top: 0;
}

.legal-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #ffffff;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.legal-contact-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.legal-contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #003366;
    width: 30px;
}

.legal-contact-item a {
    color: #003366;
    text-decoration: none;
    font-weight: 500;
}

.legal-contact-item a:hover {
    text-decoration: underline;
}

/* Section Dividers */
.section-divider {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #003366, transparent);
    margin: 3rem 0;
}

/* Numbered Sections */
.section-number {
    display: block;
    float: left;
    width: 40px;
    height: 40px;
    background: #003366;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    margin-right: 1rem;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-hero h1 {
        font-size: 2rem;
    }
    
    .legal-card-body {
        padding: 1.5rem;
    }
    
    .legal-page {
        font-size: 15px;
    }
    
    .toc-card {
        position: static;
        margin-bottom: 2rem;
    }
}

/* Print Styles */
@media print {
    .legal-page {
        font-size: 12pt;
        color: #000000;
    }
    
    .legal-card {
        box-shadow: none;
        border: 1px solid #cccccc;
        page-break-inside: avoid;
    }
    
    .legal-hero {
        background: #003366 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    nav, footer, .toc-card {
        display: none;
    }
}

/* Scroll to Top Button */
.legal-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #003366;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.legal-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.legal-scroll-top:hover {
    background: #0066cc;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* Highlighting for Important Terms */
.highlight-term {
    background: linear-gradient(120deg, #fff9c4 0%, #fff59d 100%);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-weight: 500;
}

/* Definition Lists */
.legal-page dl {
    margin-bottom: 2rem;
}

.legal-page dt {
    font-weight: 600;
    color: #003366;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.legal-page dd {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

/* Timestamp Badge */
.timestamp-badge {
    background: #e9ecef;
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.timestamp-badge i {
    color: #003366;
}
