:root {
    --azul: #322F6A;
    --cinza: #F5F5F5;
    --borda: #EBEBEB;
    --texto: #222;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Roboto", Arial, sans-serif;
    color: var(--texto);
    background: var(--cinza);
    font-size: 16px;
    line-height: 1.5;
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* topo */
.topbar {
    background: #fff;
    border-bottom: 1px solid var(--borda);
}
.topbar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}
.logo { height: 34px; width: auto; }
.tag {
    color: var(--azul);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* hero */
.hero {
    background: var(--azul);
    color: #fff;
    padding: 52px 0 46px;
}
.hero h1 {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: .04em;
}
.hero p {
    margin: 0;
    max-width: 760px;
    font-size: 16px;
    opacity: .92;
}

/* conteúdo */
main { padding: 28px 0 40px; }

.card {
    background: #fff;
    border: 1px solid var(--borda);
    border-radius: 6px;
    padding: 24px 26px;
    margin-bottom: 20px;
}
.card h2 {
    margin: 0 0 16px;
    font-size: 19px;
    color: var(--azul);
    font-weight: 700;
}
.card .sub { margin: -6px 0 18px; color: #555; }

.doc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--borda);
    padding: 14px 0;
}
.doc:first-of-type { border-top: 0; padding-top: 0; }
.doc div { display: flex; flex-direction: column; }
.doc span { color: #777; font-size: 13px; margin-top: 2px; }

.btn {
    display: inline-block;
    background: var(--azul);
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.btn:hover { background: #26234f; }
.btn.grande { width: 100%; padding: 13px; font-size: 14px; margin-top: 6px; }

/* formulário */
form .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 14px;
}
form input[type=text], form input[type=email], form input[type=password],
form textarea, form input[type=file] {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    background: #fff;
}
form textarea { resize: vertical; }
form input:focus, form textarea:focus {
    outline: none;
    border-color: var(--azul);
    box-shadow: 0 0 0 2px rgba(50, 47, 106, .12);
}
.check {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400 !important;
    font-size: 13px !important;
    color: #555;
}
.check input { margin-top: 3px; }

.hp { position: absolute; left: -9999px; opacity: 0; }

.check-linha {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.check-linha .check { margin-bottom: 0 !important; }
.link-termos {
    background: none;
    border: 0;
    padding: 0;
    color: var(--azul);
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

/* modal de termos */
.modal {
    border: 0;
    border-radius: 8px;
    padding: 0;
    max-width: 640px;
    width: 92%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.modal::backdrop { background: rgba(0, 0, 0, .55); }
.modal h3 {
    margin: 0;
    padding: 20px 26px;
    background: var(--azul);
    color: #fff;
    font-size: 17px;
    border-radius: 8px 8px 0 0;
}
.modal-corpo {
    padding: 18px 26px;
    max-height: 60vh;
    overflow-y: auto;
    font-size: 13.5px;
    line-height: 1.55;
    color: #333;
}
.modal-corpo p { margin: 0 0 12px; }
.modal-acoes { padding: 0 26px 20px; text-align: right; }

.msg {
    padding: 14px 16px;
    border-radius: 4px;
    margin-bottom: 18px;
    font-size: 14px;
}
.msg.ok { background: #e8f5e9; border: 1px solid #b7dfb9; color: #1e5b22; }
.msg.erro { background: #fdecea; border: 1px solid #f5c2bd; color: #8a1c12; }

/* rodapé */
footer {
    background: var(--azul);
    color: #fff;
    padding: 28px 0;
    font-size: 14px;
}
footer p { margin: 4px 0; opacity: .9; }
footer a { color: #fff; }

/* tela de senha */
body.gate {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--azul);
}
.gate-box {
    background: #fff;
    border-radius: 8px;
    padding: 34px 30px;
    width: 100%;
    max-width: 380px;
    text-align: center;
}
.gate-box .logo { height: 30px; margin-bottom: 20px; }
.gate-box h2 { font-size: 18px; color: var(--azul); margin: 0 0 8px; }
.gate-box p { font-size: 13px; color: #666; margin: 0 0 18px; }
.gate-box form input { margin-bottom: 12px; text-align: center; }

@media (max-width: 700px) {
    .hero h1 { font-size: 23px; }
    .topbar .wrap { height: 64px; }
    .tag { display: none; }
    form .grid { grid-template-columns: 1fr; }
    .doc { flex-direction: column; align-items: flex-start; }
    .btn { width: 100%; text-align: center; }
}
