/* Legal Pages Premium Typography
   Designed for "Apple-approved" minimalist, high-legibility aesthetic.
   Overrides/Replaces default Tailwind prose classes.
*/

.legal-content {
    /* Base Typography - Refined & Legible */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    /* Slightly smaller than prose-lg (18px) for a sharper, more professional look */
    line-height: 1.6;
    /* Comfortable reading measure */
    color: #374151;
    /* gray-700 - Soft contrast, not harsh black */
    max-width: 680px;
    /* Optimal line length for reading */
    margin-left: auto;
    margin-right: auto;
}

/* Dark Mode Base */
[data-theme="dark"] .legal-content {
    color: #cbd5e1;
    /* slate-300 - Clear but not blinding white */
}

/* Headings - Crisp & Understated */
.legal-content h3 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #111827;
    /* gray-900 */
    margin-top: 2.5rem;
    margin-bottom: 0.875rem;
    line-height: 1.35;
}

.legal-content h2 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: #1f2937;
    /* gray-800 */
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Dark Mode Headings */
[data-theme="dark"] .legal-content h3 {
    color: #f8fafc;
    /* slate-50 */
}

[data-theme="dark"] .legal-content h2 {
    color: #e2e8f0;
    /* slate-200 */
}

/* Paragraphs & Spacing */
.legal-content p {
    margin-bottom: 1.25rem;
}

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

/* Lists - Clean & Aligned */
.legal-content ul,
.legal-content ol {
    margin-top: 0.75rem;
    margin-bottom: 1.25rem;
    padding-left: 1.25rem;
    /* Tighter indentation */
}

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

.legal-content ul {
    list-style-type: disc;
}

.legal-content ol {
    list-style-type: decimal;
}

/* Nested Lists */
.legal-content ol ol,
.legal-content ul ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Links - Subtle but interactive */
.legal-content a {
    color: #4f46e5;
    /* indigo-600 */
    text-decoration: none;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.legal-content a:hover {
    color: #4338ca;
    /* indigo-700 */
    border-bottom-color: currentColor;
}

[data-theme="dark"] .legal-content a {
    color: #818cf8;
    /* indigo-400 */
}

[data-theme="dark"] .legal-content a:hover {
    color: #a5b4fc;
    /* indigo-300 */
}

/* Strong/Bold Text */
.legal-content strong,
.legal-content b {
    font-weight: 600;
    color: #111827;
    /* gray-900 */
}

[data-theme="dark"] .legal-content strong,
[data-theme="dark"] .legal-content b {
    color: #f1f5f9;
    /* slate-100 */
}

/* Footer/Meta text within legal content */
.legal-content .meta-text {
    font-size: 13px;
    color: #6b7280;
    /* gray-500 */
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
    /* gray-200 */
}

[data-theme="dark"] .legal-content .meta-text {
    color: #94a3b8;
    /* slate-400 */
    border-top-color: #334155;
    /* slate-700 */
}