/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #f8fafc;
    transition: background-color 0.3s ease;
}

body.page-white {
    background-color: #ffffff;
    color: #0f172a;
}

.hidden {
    display: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header — tema claro (white / Google Ads friendly) */
.header {
    background: #ffffff;
    color: #0f172a;
    padding: 48px 0 40px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.header-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 600;
}

.header h1 {
    font-size: 2rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.05rem;
    color: #475569;
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.55;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

section {
    margin-bottom: 32px;
    background: #ffffff;
    padding: 32px 28px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

section h2 {
    color: #0f172a;
    font-size: 1.35rem;
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    font-weight: 700;
}

/* Intro Section */
.intro-section p {
    font-size: 1rem;
    line-height: 1.75;
    color: #334155;
    margin-bottom: 14px;
}

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

.intro-section a,
.feature-card a {
    color: #0f172a;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.intro-section a:hover,
.feature-card a:hover {
    color: #334155;
}

.anchor-section {
    scroll-margin-top: 1.25rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-card {
    text-align: left;
    padding: 24px 22px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.feature-icon {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1;
}

.feature-card h3 {
    color: #0f172a;
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 600;
}

.feature-card p {
    color: #475569;
    line-height: 1.65;
    font-size: 0.95rem;
}

/* Info Section */
.info-content p {
    margin-bottom: 14px;
    font-size: 1rem;
    line-height: 1.75;
    color: #334155;
}

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

/* Benefits Section */
.benefits-list {
    list-style: none;
    padding-left: 0;
}

.benefits-list li {
    padding: 15px 0;
    padding-left: 40px;
    position: relative;
    font-size: 0.98rem;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #64748b;
    font-size: 1.15rem;
    font-weight: bold;
}

/* Bloco legal / ligações */
.legal-strip {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.legal-strip-title {
    border-bottom-color: #cbd5e1;
}

.legal-strip-text {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 16px;
}

.legal-strip-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    font-size: 0.95rem;
}

.legal-strip-nav a {
    color: #0f172a;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.legal-strip-nav a:hover {
    color: #334155;
}

.legal-sep {
    color: #cbd5e1;
    user-select: none;
}

/* Footer */
.footer {
    background: #f8fafc;
    color: #475569;
    text-align: center;
    padding: 28px 0 36px;
    margin-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.footer p {
    margin: 6px 0;
}

.footer-year {
    color: #334155;
    font-size: 0.95rem;
}

.footer-note {
    font-size: 0.85rem;
    color: #64748b;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

/* Modal de Cookies */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.cookie-modal.hidden {
    display: none;
}

.cookie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.cookie-spinner {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #64748b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cookie-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 30px 20px 40px 20px;
    border-radius: 20px 20px 0 0;
    text-align: center;
    width: 100%;
    border: none;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    max-height: 50vh;
    z-index: 10002;
}

.cookie-content h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
    border: none;
    padding: 0;
}

.cookie-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.btn {
    padding: 15px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 48%;
    min-height: 50px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-accept {
    background: #4CAF50;
    color: white;
}

.btn-accept:hover {
    background: #45a049;
    transform: scale(1.05);
}

.btn-reject {
    background: #f44336;
    color: white;
}

.btn-reject:hover {
    background: #da190b;
    transform: scale(1.05);
}

/* Responsividade */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    section {
        padding: 25px 20px;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        padding: 25px 15px 35px 15px;
        padding-bottom: calc(35px + env(safe-area-inset-bottom, 0px));
    }
    
    .cookie-buttons {
        gap: 8px;
    }
    
    .btn {
        padding: 14px 12px;
        font-size: 0.95rem;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 40px 0;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    .cookie-content {
        padding: 20px 10px 30px 10px;
        padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    }
    
    .cookie-content h2 {
        font-size: 1.3rem;
    }
    
    .cookie-content p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .btn {
        padding: 12px 10px;
        font-size: 0.9rem;
    }
}

