/* Reset e variáveis */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

/* Tipografia */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* Container principal */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem 2rem 1.5rem;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Seletor de idioma */
.language-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.language-selector a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.language-selector a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.language-selector a.active {
    background: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

/* Conteúdo principal */
main {
    padding: 2.5rem 2rem;
}

main h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.date {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    display: block;
}

/* Seções */
section {
    margin-bottom: 2.5rem;
}

section:last-child {
    margin-bottom: 0;
}

h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

p {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1rem;
}

/* Listas */
ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

ul li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

ul ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Strong/Bold */
strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer p {
    margin: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-color);
    margin: 0 0.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 8px;
    }

    header {
        padding: 1.5rem 1rem 1rem;
    }

    header h1 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    .language-selector {
        flex-direction: column;
        gap: 0.5rem;
    }

    .language-selector a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    main {
        padding: 1.5rem 1rem;
    }

    main h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    p, ul li {
        font-size: 0.95rem;
    }

    footer {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.3rem;
    }

    main h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    p, ul li {
        font-size: 0.9rem;
    }
}

/* Melhorias de acessibilidade */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Animações suaves */
* {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
        border-radius: 0;
    }

    header {
        background: white;
        color: black;
        border-bottom: 2px solid black;
    }

    .language-selector {
        display: none;
    }

    footer {
        border-top: 1px solid black;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}
