/* Legal Documents CSS
 * This file contains styles for legal documents to ensure
 * proper spacing and formatting for privacy policies and terms
 */

/* Main legal content container */
.legal-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.8;
    color: #334155;
    white-space: pre-wrap; /* This preserves line breaks AND spaces in text content */
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Legal document headers */
.legal-content h1 {
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: #1e293b;
}

.legal-content h3 {
    font-size: 1.25rem;
    margin: 1.25rem 0 0.75rem;
    color: #1e293b;
}

.legal-content h4 {
    font-size: 1.1rem;
    margin: 1rem 0 0.75rem;
    color: #334155;
}

/* Legal document paragraphs and lists */
.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

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

/* Legal document sections */
.legal-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

/* Preserve whitespace in code and pre blocks */
.legal-content pre,
.legal-content code {
    white-space: pre-wrap;
    background-color: #f8fafc;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    display: block;
    margin: 1rem 0;
}

/* Table styling for legal documents */
.legal-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.legal-content th {
    background-color: #f1f5f9;
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #e2e8f0;
}

.legal-content td {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
}

/* For modal display */
.legal-content-container {
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-line; /* This preserves line breaks in text */
}

/* Spacing for entries in legal documents */
.legal-entry {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

/* Special text emphasis */
.legal-content .emphasis {
    font-weight: 600;
    color: #000;
}

/* Date and version info */
.legal-meta {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* Special formatting for notices */
.legal-notice {
    background-color: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.25rem;
}

/* Print styling for legal documents */
@media print {
    .legal-content {
        font-size: 12pt;
        color: #000;
    }
    
    .legal-content h1,
    .legal-content h2,
    .legal-content h3,
    .legal-content h4 {
        page-break-after: avoid;
    }
    
    .legal-content p,
    .legal-content li {
        page-break-inside: avoid;
    }
}