/* Modal styles */
.footer-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.footer-modal.active {
    display: flex;
    pointer-events: auto;
}

.footer-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    cursor: pointer;
}

.footer-modal-container {
    position: relative;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 70%;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    cursor: default;
}

.footer-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: #FFFFFF;
    border: none;
    font-size: 24px;
    color: #6B7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    z-index: 10001;
}

.footer-modal-close:hover {
    background-color: #F3F4F6;
    color: #1F2937;
}

.footer-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.footer-modal-content {
    color: #374151;
    line-height: 1.6;
}

/* Heading styles for injected HTML content */
.footer-modal-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: #1F2937;
    line-height: 1.2;
}

.footer-modal-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem 0;
    color: #1F2937;
    line-height: 1.3;
}

.footer-modal-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.25rem 0 0.75rem 0;
    color: #374151;
    line-height: 1.4;
}

.footer-modal-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    color: #374151;
    line-height: 1.4;
}

.footer-modal-content h5,
.footer-modal-content h6 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.75rem 0 0.5rem 0;
    color: #374151;
    line-height: 1.5;
}

/* Paragraph and text content */
.footer-modal-content p {
    font-size: 0.875rem;
    margin: 0 0 16px 0;
}

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

/* Lists */
.footer-modal-content ul,
.footer-modal-content ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

.footer-modal-content ul {
    list-style: disc;
}

.footer-modal-content li {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Links */
.footer-modal-content a {
    color: #2563EB;
    text-decoration: underline;
}

.footer-modal-content a:hover {
    color: #1D4ED8;
}

/* Strong and emphasis */
.footer-modal-content strong,
.footer-modal-content b {
    font-weight: 700;
    color: #1F2937;
}

.footer-modal-content em,
.footer-modal-content i {
    font-style: italic;
}

/* Tables */
.footer-modal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.footer-modal-content th,
.footer-modal-content td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.footer-modal-content th {
    font-weight: 600;
    color: #1F2937;
    background-color: #F9FAFB;
}

/* Code blocks */
.footer-modal-content code {
    background-color: #F3F4F6;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

.footer-modal-content pre {
    background-color: #F3F4F6;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1rem 0;
}

.footer-modal-content pre code {
    background-color: transparent;
    padding: 0;
}

