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

html {
    color-scheme: light;
    background-color: #eef1f6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #eef1f6;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 56px 0;
    text-align: center;
    box-shadow: 0 4px 18px rgba(102, 126, 234, 0.25);
}

.header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.95;
    max-width: 640px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    padding: 32px 0 48px;
}

main.container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

section {
    background: #fff;
    padding: 32px 36px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

section h2 {
    color: #667eea;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 3px solid #667eea;
}

/* Intro Section */
.intro-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

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

.feature-card {
    text-align: center;
    padding: 28px 22px;
    background: #f8f9fc;
    border-radius: 10px;
    border: 1px solid #e8ebf3;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.feature-icon {
    font-size: 2.25rem;
    color: #667eea;
    margin-bottom: 12px;
    font-weight: bold;
    line-height: 1;
}

.feature-card h3 {
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.feature-card p {
    color: #666;
    line-height: 1.55;
    font-size: 0.98rem;
}

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

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

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

.benefits-list li {
    padding: 14px 0 14px 36px;
    position: relative;
    font-size: 1.05rem;
    color: #555;
    border-bottom: 1px solid #edf0f5;
}

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

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 12px;
    color: #667eea;
    font-size: 1.25rem;
    font-weight: bold;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 28px 0;
    margin-top: 0;
}

.footer p {
    margin: 4px 0;
    opacity: 0.92;
    font-size: 0.95rem;
}

/* 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 #e0e0e0;
    border-top: 4px solid #667eea;
    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 {
        padding: 44px 0;
    }

    section {
        padding: 24px 20px;
    }

    .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) {
    .main-content {
        padding: 20px 0 32px;
    }

    main.container {
        gap: 16px;
    }

    .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;
    }
}
