/* De Olho Aberto - Web Styles */
/* Accessible design for elderly users */

:root {
    --primary-color: #B33F00;
    --primary-dark: #8A3000;
    --accent-bg: #FF6A00;
    --on-accent: #1A1204;
    --brand-color: #0A0B0D;
    --secondary-color: #43A047;
    --danger-color: #E53935;
    --text-color: #212121;
    --text-light: #6B6B6B; /* 5,11:1 sobre #FAFAFA (AA); #757575 dava 4,41 */
    --bg-color: #FAFAFA;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
}

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

html {
    font-size: 18px; /* Larger base font for elderly users */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: var(--brand-color);
    color: var(--white);
    padding: 48px 0;
    text-align: center;
}

header h1,
header .brand {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Nas paginas internas a marca do cabecalho e <p>: o <h1> e o titulo do artigo. */
header .brand {
    opacity: 1;
}

header p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* A marca e um link para a inicial, sem cara de link. */
header .brand a,
header .brand a:hover {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
    display: inline-flex;
    align-items: center;
    gap: inherit;
}

/* Navegacao: alvos de toque grandes (pelo menos 48 px), para idoso. */
header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 8px 20px;
    border-radius: 8px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

header nav a:hover,
header nav a[aria-current="page"] {
    background: var(--white);
    color: var(--brand-color);
    text-decoration: none;
}

/* Botoes (inicial, excluir conta, 404) */
.btn {
    display: inline-block;
    min-height: 48px;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.btn-primary,
.btn-primary:hover {
    background-color: var(--accent-bg);
    color: var(--on-accent);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* Selo "Em breve": parece botao, mas nao e link nem reage ao mouse. */
.btn-static,
.btn-static:hover {
    transform: none;
    box-shadow: none;
    cursor: default;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* Caixa da regra principal ("Desconfiou? Desligue e ligue...") */
.regra {
    background: #FFF3E8;
    border-left: 6px solid var(--primary-color);
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
    font-size: 1.15rem;
}

.regra p:last-child {
    margin-bottom: 0;
}

/* Pagina inicial */
.hero {
    text-align: center;
    padding: 24px 0 16px;
}

.hero h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.hero-lead {
    font-size: 1.35rem;
    font-weight: 600;
}

.hero .regra {
    text-align: left;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin: 32px 0;
}

.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin: 0 0 12px;
    color: var(--primary-dark);
}

.em-breve {
    text-align: center;
}

.em-breve h2 {
    border-bottom: none;
}

/* Main Content */
main {
    padding: 48px 0;
}

article {
    background: var(--white);
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

article > h1 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.meta {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

section {
    margin-bottom: 40px;
}

/* privacy.html e gerado do markdown e nao tem <section>: o espaco entre blocos vem do h2 */
article h2 {
    margin-top: 40px;
}

section h2,
article h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

section h3,
article h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 24px 0 12px 0;
}

p {
    margin-bottom: 16px;
}

/* Lists */
ul, ol {
    margin: 16px 0;
    padding-left: 32px;
}

li {
    margin-bottom: 12px;
}

li strong {
    color: var(--primary-dark);
}

/* Tables - Accessible with good contrast */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}

th, td {
    padding: 16px;
    text-align: left;
    border: 1px solid var(--border-color);
}

th {
    background-color: var(--accent-bg);
    color: var(--on-accent);
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #F5F5F5;
}

tr:hover {
    background-color: #FFF3E8;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

/* Footer */
footer {
    background-color: #263238;
    color: var(--white);
    padding: 32px 0;
    text-align: center;
}

footer p {
    margin-bottom: 8px;
}

footer a {
    color: #FFB074;
}

footer a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    article {
        padding: 24px;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    header {
        padding: 32px 0;
    }

    header h1,
    header .brand {
        font-size: 2rem;
        gap: 8px;
    }

    header h1 img,
    header .brand img {
        width: 40px;
        height: 40px;
    }

    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 12px 8px;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --text-color: #000000;
        --bg-color: #FFFFFF;
        --border-color: #000000;
    }

    th {
        background-color: #000000;
        color: #FFFFFF;
    }

    a {
        text-decoration: underline;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}
