html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body {
    font-family: Arial, sans-serif;
    background: #f0f4f8;
    color: #333;
}

header {
    text-align: center;
    padding: 2rem 1rem 1rem;
}

.logo {
    width: 120px;
    margin-bottom: -1rem;
}

h1 {
    color: #0072bc;
    font-size: 2rem;
}

.subtitle {
    color: #666;
    margin-top: 0rem;
}

main {
    flex: 1;
}

.container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 1rem auto;
    padding: 0 1rem;
    max-width: 1200px;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    flex: 1 1 300px;
    max-width: 400px;
    text-align: center;
}

.card img {
    width: 60px;
    margin-bottom: 1rem;
}

.btn {
    display: block;
    margin: 1rem auto;
    padding: 0.75rem 1.5rem;
    background-color: #0072bc;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    width: 100%;
    max-width: 320px;
    transition: background 0.3s;
    white-space: nowrap;
    text-align: center;
    box-sizing: border-box;
}

.btn:hover {
    background-color: #005a96;
}

.btn.outline {
    background: transparent;
    color: #0072bc;
    border: 2px solid #0072bc;
}

.btn.outline:hover {
    background-color: #e6f0fa;
}

.legal-info {
    width: 100%;
    margin: 2rem 0 1rem 0;
    padding-left: 1rem;
    font-size: 0.7rem;
    color: #444;
    line-height: 0.8;
    text-align: left;
}

.legal-info p {
    margin: 0.5rem 0;
}

.legal-title {
    color: #0072bc;
}

footer {
    padding: 1rem 2rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #555;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
}

.footer-content .sponsor {
    position: absolute;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-content .badge {
    background-color: #ccc;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.footer-content p {
    margin: 0 auto;
    text-align: center;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        flex: none; 
        width: 90%;
        max-width: 500px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-content .sponsor {
        position: static;
        margin-top: 0.5rem;
        justify-content: center;
    }
}
