.legal-content {
    color: #1f2937 !important;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    line-height: 1.8;
}

.legal-content h1 {
    display: none !important;
}

.legal-content h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem) !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #111827 !important;
    margin-top: 2.5rem !important;
    margin-bottom: 1.25rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 5px solid #3d155b !important;
    display: inline-block !important;
    line-height: 1.2 !important;
}

.legal-content h2:first-of-type {
    margin-top: 0 !important;
}

.legal-content h3 {
    font-size: clamp(1.15rem, 2.2vw, 1.5rem) !important;
    font-weight: 900 !important;
    color: #111827 !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.35rem !important;
    border-bottom: 3px solid #3d155b !important;
    display: block !important;
    width: fit-content !important;
    max-width: 100% !important;
    clear: both !important;
    line-height: 1.25 !important;
    letter-spacing: 0.02em !important;
}

.legal-content h2 + h3 {
    margin-top: 1.75rem !important;
}

.legal-content p {
    margin-bottom: 1rem !important;
    font-size: 1.1rem !important;
    color: #374151 !important;
}

.legal-content strong {
    font-weight: 1000 !important;
    color: #000000 !important;
}

.legal-content ul {
    margin-bottom: 1.5rem !important;
    list-style: none !important;
    padding-left: 0.5rem !important;
}

.legal-content li {
    position: relative !important;
    padding-left: 2rem !important;
    margin-bottom: 0.75rem !important;
    font-size: 1.05rem !important;
    color: #374151 !important;
}

.legal-content a {
    color: #3d155b !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    text-decoration-color: rgba(61, 21, 91, 0.35) !important;
}

.legal-content a:hover {
    text-decoration-color: #3d155b !important;
}

.legal-content li::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0.65rem !important;
    width: 10px !important;
    height: 10px !important;
    background: #3d155b !important;
    border-radius: 50% !important;
}

.legal-content hr {
    border: none !important;
    border-top: 2px dashed #e5e7eb !important;
    margin: 2.5rem 0 !important;
    opacity: 0.5 !important;
}

.legal-content .table-wrapper {
    overflow-x: auto !important;
    margin: 2.5rem 0 !important;
    border-radius: 1.5rem !important;
    border: 2px solid #f3f4f6 !important;
}

.legal-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #ffffff !important;
}

.legal-content th {
    background: #111827 !important;
    color: #ffffff !important;
    padding: 1.25rem 1.5rem !important;
    text-align: left !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.1em !important;
}

.legal-content td {
    padding: 1.25rem 1.5rem !important;
    border-bottom: 1px solid #f3f4f6 !important;
    vertical-align: top !important;
    font-size: 0.95rem !important;
}

.legal-content tr:nth-child(even) {
    background: #f9fafb !important;
}

.legal-content tr:last-child td {
    border-bottom: none !important;
}

.legal-content blockquote {
    margin: 2.5rem 0 !important;
    padding: 1.5rem 2rem !important;
    background: var(--portal-brand-dark-soft, #f3eff5) !important;
    border-left: 6px solid #3d155b !important;
    border-radius: 0 1rem 1rem 0 !important;
    font-style: italic !important;
    color: #3d155b !important;
}

@media (prefers-color-scheme: dark) {
    .legal-bunker {
        background-color: #030712 !important;
        border-color: #1f2937 !important;
        box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.4) !important;
    }

    .legal-content {
        color: #d1d5db !important;
    }

    .legal-content p,
    .legal-content li {
        color: #9ca3af !important;
    }

    .legal-content h2 {
        color: #ffffff !important;
        border-bottom-color: #3d155b !important;
    }

    .legal-content h3 {
        color: #ffffff !important;
        border-bottom-color: #3d155b !important;
    }

    .legal-content a {
        color: #c8a7ea !important;
        text-decoration-color: rgba(200, 167, 234, 0.45) !important;
    }

    .legal-content a:hover {
        color: #e9d5ff !important;
        text-decoration-color: #e9d5ff !important;
    }

    .legal-content li::before {
        background: #3d155b !important;
    }

    .legal-content strong {
        color: #ffffff !important;
    }

    .legal-content table {
        background: #111827 !important;
    }

    .legal-content th {
        background: #1f2937 !important;
    }

    .legal-content td {
        border-color: #374151 !important;
        color: #d1d5db !important;
    }

    .legal-content tr:nth-child(even) {
        background: #0f172a !important;
    }

    .legal-content blockquote {
        background: rgba(61, 21, 91, 0.15) !important;
        border-left-color: #3d155b !important;
        color: #e9d5ff !important;
    }
}
