/* Page-specific styles for Persona Juridica - Mobile first */
main {
    padding-top: 16px;
    padding-bottom: 16px;
}

article {
    background: #fff;
    border: 1px solid #e6eef2;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 16px;
}

h2 {
    margin: 0 0 12px 0;
    color: #06233a;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    margin: 16px 0 8px 0;
    color: #06233a;
    font-size: 16px;
    font-weight: 700;
}

p {
    margin: 0 0 12px 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

ul {
    margin: 0 0 12px 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

/* Hero article with image */
.hero-article {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
}

.hero-article img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #e6eef2;
    background-color: #f8fafc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* TOC Styles (matching persona-natural) */
.toc {
    background: #f8fafc;
    border: 1px solid #e6eef2;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.toc strong {
    display: block;
    margin-bottom: 8px;
    color: #06233a;
}

.toc ol {
    margin: 0;
    padding-left: 20px;
}

.toc li {
    margin-bottom: 6px;
}

.toc a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.toc a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (min-width: 700px) {
    main {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    article {
        padding: 20px;
        margin-bottom: 20px;
    }

    h2 {
        font-size: 26px;
    }

    .hero-article {
        flex-direction: row;
        gap: 24px;
        align-items: flex-start;
    }

    .hero-article img {
        width: 280px;
        height: 350px;
        flex-shrink: 0;
    }
}

@media (min-width: 1000px) {
    main {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    article {
        padding: 24px;
        margin-bottom: 24px;
    }

    h2 {
        font-size: 32px;
    }

    .hero-article {
        gap: 32px;
    }

    .hero-article img {
        width: 320px;
        height: auto;
        min-height: 400px;
    }
}