/* Estilos compartilhados — todas as páginas (AdSense, legal, layout) */

:root {
    --bg-color: #0b1120;
    --bg-gradient: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.18), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(139, 92, 246, 0.12), transparent),
        #0b1120;
    --card-bg: #1e293b;
    --card-border: rgba(148, 163, 184, 0.12);
    --header-bg: rgba(15, 23, 42, 0.85);
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #10b981;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    --header-h: 64px;
    --ad-spacing: 24px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-gradient);
    background-color: var(--bg-color);
    color: var(--text);
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.5;
}

.page-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding-top: var(--safe-top);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.brand-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-text strong {
    font-size: clamp(0.95rem, 2.5vw, 1.15rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-text small {
    font-size: clamp(0.65rem, 2vw, 0.75rem);
    color: var(--text-muted);
    font-weight: 500;
}

.header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.header-badge {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.header-badge--watermark {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.35);
}

.site-main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    padding-bottom: calc(1rem + var(--safe-bottom));
}

.site-footer {
    margin-top: auto;
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid var(--card-border);
    padding: 1.25rem 1rem calc(1.25rem + var(--safe-bottom));
    text-align: center;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
    color: var(--primary);
}

.site-footer p {
    margin: 0;
    font-size: clamp(0.8rem, 2vw, 0.875rem);
    color: var(--text-muted);
}

.footer-brand {
    color: var(--text);
    font-weight: 600;
}

.footer-note {
    margin-top: 0.35rem !important;
    font-size: 0.75rem !important;
    opacity: 0.85;
}

/* Espaçamento mínimo para áreas de anúncio (AdSense) */
.ad-slot {
    margin: var(--ad-spacing) 0;
    min-height: 1px;
    clear: both;
}

/* Páginas legais */
.legal-page {
    max-width: 720px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: clamp(1.5rem, 4vw, 1.85rem);
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.legal-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.legal-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: clamp(1rem, 3vw, 1.75rem);
    box-shadow: var(--shadow);
}

.legal-card h2 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
    color: var(--primary);
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card p,
.legal-card li {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.legal-card ul {
    padding-left: 1.25rem;
    margin: 0.5rem 0 1rem;
}

.legal-card a {
    color: var(--primary);
}

/* Contato */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    min-height: 48px;
    margin-top: var(--ad-spacing);
}

.contact-form button:hover {
    background: var(--primary-hover);
}

.form-alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.form-alert--success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #a7f3d0;
}

@media (max-width: 479px) {
    .header-inner { padding: 0.5rem 0.75rem; }
    .brand-icon { width: 36px; height: 36px; }
    .header-badges .header-badge:nth-child(2) { display: none; }
}

@media (max-width: 359px) {
    .header-badges { display: none; }
}
