:root {
    --primary-color: #004d99; /* Deep Blue, professional */
    --secondary-color: #f0f0f0;
    --text-color: #333;
    --link-color: #007bff;
    --border-radius: 4px;
    --max-width: 1100px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 0;
}

/* Header & Navigation */
header {
    background-color: #fff;
    border-bottom: 1px solid var(--secondary-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo a {
    text-decoration: none;
    font-size: 1.8em;
    font-weight: 900;
    color: var(--primary-color);
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    margin-left: 20px;
    padding: 5px 10px;
    transition: background-color 0.3s;
    font-weight: 600;
}

.nav-links a:hover {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
}

/* Menu Toggle Button (Mobile Only) */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.8em;
    color: var(--primary-color);
    cursor: pointer;
    padding: 10px;
}

/* Main Content Layout */
main {
    flex-grow: 1;
    padding-top: 20px;
}

section {
    padding: 40px 0;
}

h1, h2, h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

h1 {
    font-size: 2.2em;
}

h2 {
    font-size: 1.8em;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
}

p {
    margin-bottom: 15px;
}

/* CTA Button */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #003366;
}

/* Forms */
form {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    max-width: 600px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1em;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px 0;
    margin-top: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-section {
    padding: 10px;
    min-width: 200px;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 5px;
}

.footer-section a {
    color: #a0c3e7;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
}

.social-icons a {
    margin-right: 15px;
    font-size: 1.5em;
    color: #fff;
}

/* Compliance Banner (Cookie/LGPD) */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 1000;
    display: none; /* Hidden by default, JS handles display */
    font-size: 0.9em;
}

#cookie-banner a {
    color: #a0c3e7;
    text-decoration: underline;
}

#cookie-banner button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: var(--border-radius);
    min-width: 100px; /* Touch friendly size */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show on mobile */
    }

    .nav-links {
        display: none; /* Hidden by default on mobile */
        position: absolute;
        top: 60px; /* Adjust based on header height */
        left: 0;
        right: 0;
        background-color: #fff;
        border-top: 1px solid var(--secondary-color);
        box-shadow: 0 5px 5px rgba(0,0,0,0.1);
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
    }
    
    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links a {
        margin: 10px 20px;
        padding: 10px 0;
        text-align: center;
        border-bottom: 1px solid var(--secondary-color);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

    nav {
        flex-direction: row; /* Keep logo and toggle on one line */
        justify-content: space-between;
    }
    .logo {
        margin-bottom: 0;
    }

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

    .footer-section {
        margin-bottom: 15px;
        min-width: 100%;
    }
    
    .contact-grid {
        flex-direction: column;
    }

    /* Force button to be large on mobile */
    .btn-primary {
        width: 100%;
        text-align: center;
    }
}

/* Home Page specific styles */
.hero-banner {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 20px;
}

.hero-banner h1 {
    color: white;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero-banner p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.service-item {
    flex: 1 1 280px;
    padding: 20px;
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Icons via Unicode/Simple CSS for speed/performance */
.icon-legal::before { content: "⚖️"; }
.icon-book::before { content: "📚"; }
.icon-tax::before { content: "💰"; }
.icon-team::before { content: "👥"; }
.icon-digital::before { content: "💻"; }

/* Address/Legal Info block */
.legal-info-block {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 30px 0;
    font-size: 0.95em;
}

.legal-info-block strong {
    color: var(--primary-color);
}