:root {
    --ff-sans: 'Roboto', system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial;
    --ff-tit: 'Montserrat', var(--ff-sans);
    --fw-light: 300;
    --fw-regular: 400;
    --fw-semibold: 600;
    --title-color: #0d3d2e;
    --text-color: #333;
}

/* Tipos globais */
body {
    font-family: var(--ff-sans);
    font-weight: var(--fw-regular);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Títulos usam Montserrat */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--ff-tit);
    color: var(--title-color);
    margin: 0 0 .6rem 0;
}

/* pesos sugeridos */
h1 {
    font-weight: var(--fw-semibold);
    font-size: 2rem;
    line-height: 1.1;
}

h2 {
    font-weight: var(--fw-semibold);
    font-size: 1.5rem;
}

h3 {
    font-weight: var(--fw-regular);
    font-size: 1.15rem;
}

/* Texto / labels com Roboto */
p,
label,
.small-text {
    font-family: var(--ff-sans);
    font-weight: var(--fw-light);
    /* Roboto Light para labels, se quiseres */
    font-size: 1rem;
}

/* Exemplo de classes prontas */
.title {
    font-family: var(--ff-tit);
    font-weight: var(--fw-semibold);
}

.lead {
    font-family: var(--ff-sans);
    font-weight: var(--fw-regular);
    font-size: 1.05rem;
}

/* para a Legislação */
/* --- Legislação card --- */
.legislacoes {
    max-width: 980px;
    margin: 24px auto;
    padding: 0 16px;
}

.legislacao {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    line-height: 1.5;
}

.legislacao h2 {
    margin-top: 0;
    color: #0b4f6c;
}

.legislacao h3 {
    margin-bottom: .25rem;
    color: #0b6f4c;
}

.legislacao ul {
    margin: .5rem 0 1rem 1.1rem;
}

.legislacao .legis-actions {
    margin-top: 12px;
}

/* botão */
.btn-view-docs {
    background: #0d6efd;
    color: #fff;
    border: 0;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn-view-docs:hover {
    opacity: .95;
}

/* --- Modal básico e acessível --- */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    /* oculto por padrão */
    align-items: center;
    justify-content: center;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.45);
    padding: 20px;
}

.modal[aria-hidden="false"] {
    display: flex;
}

.modal-dialog {
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.modal-header,
.modal-footer {
    padding: 12px 18px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
}

.modal-body {
    padding: 16px 18px;
    max-height: 55vh;
    overflow: auto;
}

.modal-close,
.modal-close-btn {
    background: transparent;
    border: 0;
    font-size: 18px;
    cursor: pointer;
    color: #333;
}

.docs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    flex-direction: column;
}

.docs-list li:last-child {
    border-bottom: none;
}

.doc-actions {
    margin-top: 6px;
}

.doc-view,
.doc-download {
    display: inline-block;
    margin-right: 8px;
    padding: 6px 10px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #fff;
}

.doc-view {
    background: #198754;
}

.doc-download {
    background: #0d6efd;
}

/* responsivo */
@media (max-width: 520px) {
    .modal-dialog {
        max-width: 95%;
    }

    .docs-list li {
        padding: 8px 0;
    }

    .doc-view,
    .doc-download {
        padding: 6px 8px;
        font-size: .9rem;
    }
}