/* Legal Document Styling - Works for both frontend pages and backend modals */
.legal-content {
    line-height: 1.8;
}

/* For modal context, slightly tighter line height */
.modal .legal-content {
    line-height: 1.7;
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4,
.legal-content h5,
.legal-content h6 {
    color: rgb(237, 237, 237);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.legal-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid #495057;
    padding-bottom: 0.5rem;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: #e9ecef;
}

.legal-content h3 {
    font-size: 1.25rem;
    color: #dee2e6;
}

.legal-content p {
    margin-bottom: 1.5rem;
    color: #ced4da;
}

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

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

.legal-content strong,
.legal-content b {
    color: rgb(237, 237, 237);
    font-weight: 600;
}

.legal-content a {
    color: #007bff;
    text-decoration: underline;
}

.legal-content a:hover {
    color: #0056b3;
}

.legal-content blockquote {
    border-left: 4px solid #495057;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #adb5bd;
}

.legal-content table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.legal-content table th,
.legal-content table td {
    padding: 0.75rem;
    border: 1px solid #495057;
    text-align: left;
}

.legal-content table th {
    background-color: #343a40;
    color: rgb(237, 237, 237);
    font-weight: 600;
}

.legal-content table td {
    color: #ced4da;
}
