/* ============================================
   🍪 COOKIES POLICY - NETFLIX PREMIUM STYLE
   ============================================ */

.cookies-policy-container {
    padding: 3rem 0 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header da Página */
.cookies-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 24px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.cookies-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: bounceIn 0.8s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.cookies-header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.cookies-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.cookies-date {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-top: 1rem;
}

.cookies-date i {
    color: #667eea;
}

/* Seções */
.cookies-section {
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cookies-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.cookies-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #667eea;
}

.cookies-section h2 i {
    color: #667eea;
}

.cookies-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1.5rem;
}

/* Info Box */
.info-box {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    border-left: 4px solid #667eea;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.info-box i {
    font-size: 1.5rem;
    color: #667eea;
    margin-top: 0.25rem;
}

.info-box strong {
    color: #1e293b;
}

.info-box-small {
    padding: 1rem;
    font-size: 0.95rem;
}

.info-box a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-box a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Reason Cards */
.reason-card {
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.reason-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.reason-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.reason-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.reason-card p {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 0;
}

/* Cookie Type Cards */
.cookie-type-card {
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 2px solid;
    transition: all 0.3s ease;
}

.cookie-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.cookie-essential {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(220, 38, 38, 0.05));
    border-color: #ef4444;
}

.cookie-functional {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.05));
    border-color: #3b82f6;
}

.cookie-analytics {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(147, 51, 234, 0.05));
    border-color: #a855f7;
}

.cookie-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-type-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.cookie-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-essential {
    background: #ef4444;
    color: white;
}

.badge-functional {
    background: #3b82f6;
    color: white;
}

.badge-analytics {
    background: #a855f7;
    color: white;
}

.cookie-type-description {
    font-size: 1.05rem;
    color: #475569;
    margin-bottom: 1.5rem;
}

/* Tabela de Cookies */
.cookie-details-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1.5rem;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cookie-details-table thead {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.cookie-details-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-details-table tbody tr {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.3s ease;
}

.cookie-details-table tbody tr:hover {
    background: #f8fafc;
}

.cookie-details-table tbody tr:last-child {
    border-bottom: none;
}

.cookie-details-table td {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    color: #475569;
}

.cookie-details-table td code {
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    color: #667eea;
    font-weight: 600;
}

/* Rights Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.right-card {
    padding: 2rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.right-card:hover {
    border-color: #667eea;
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
}

.right-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
    display: block;
}

.right-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.right-card p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

/* Manage Options */
.manage-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.manage-option {
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.manage-option h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.manage-option h4 i {
    color: #667eea;
    margin-right: 0.5rem;
}

.btn-manage-cookies {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-manage-cookies:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.browser-links {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.browser-links li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.browser-links li:last-child {
    border-bottom: none;
}

.browser-links i {
    font-size: 1.5rem;
    color: #667eea;
    width: 30px;
}

.browser-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.browser-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Contact Section */
.cookies-contact {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border: 2px solid #667eea;
}

.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.contact-item i {
    font-size: 1.5rem;
    color: #667eea;
    margin-top: 0.25rem;
}

.contact-item strong {
    color: #1e293b;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* CTA Final */
.cookies-cta {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 24px;
    color: white;
    margin-top: 4rem;
}

.cookies-cta h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cookies-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-cta-primary {
    background: white;
    color: #667eea;
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
    color: #764ba2;
}

.btn-cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-cta-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* ============================================
   🍪 COOKIE CONSENT BANNER
   ============================================ */

#cookieConsentBanner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    backdrop-filter: blur(10px);
    border-top: 3px solid #667eea;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookieConsentBanner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-icon {
    font-size: 3rem;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h4 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cookie-banner-text p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.cookie-banner-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cookie-banner-text a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cookie-accept {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.btn-cookie-settings {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-cookie-settings:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-cookie-reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 2px solid transparent;
}

.btn-cookie-reject:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Cookie Settings Modal */
#cookieSettingsModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

#cookieSettingsModal.show {
    display: flex;
}

.cookie-modal-content {
    background: white;
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-modal-header {
    padding: 2rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cookie-modal-close:hover {
    color: #1e293b;
    background: #f1f5f9;
}

.cookie-modal-body {
    padding: 2rem;
}

.cookie-preference-item {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.cookie-preference-item:hover {
    border-color: #667eea;
}

.cookie-preference-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cookie-preference-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.cookie-preference-description {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 28px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.4s;
    border-radius: 28px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(28px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-required-badge {
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 700;
    margin-left: 0.5rem;
}

.cookie-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Responsividade */
@media (max-width: 991px) {
    .cookies-header h1 {
        font-size: 2.25rem;
    }

    .cookies-section {
        padding: 2rem;
    }

    .cookies-section h2 {
        font-size: 1.75rem;
    }

    .manage-options {
        grid-template-columns: 1fr;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .btn-cookie {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .cookies-policy-container {
        padding: 2rem 0 3rem;
    }

    .cookies-header {
        padding: 2rem 1.5rem;
    }

    .cookies-header h1 {
        font-size: 1.75rem;
    }

    .cookies-subtitle {
        font-size: 1rem;
    }

    .cookies-section {
        padding: 1.5rem;
    }

    .cookies-section h2 {
        font-size: 1.5rem;
    }

    .reason-card,
    .right-card {
        padding: 1.5rem;
    }

    .rights-grid {
        grid-template-columns: 1fr;
    }

    .cookie-details-table {
        font-size: 0.85rem;
    }

    .cookie-details-table th,
    .cookie-details-table td {
        padding: 0.75rem 1rem;
    }

    .cookies-cta h3 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
}
