/* ============================================
   COOKIE POLICY PAGE - MINIMAL & VALID
   ============================================ */

.cookie-policy {
    padding: 2rem 0;
    background-color: var(--bg-primary);
    min-height: calc(100vh - 140px);
}

/* Header */
.policy-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.policy-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.meta-info {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 2rem;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.meta-info p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.quick-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.summary-box {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
}

.summary-box:hover {
    border-color: var(--primary-color);
}

.summary-box i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.summary-box h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.summary-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.important-notice {
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    margin-top: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.important-notice i {
    color: #3b82f6;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.important-notice p {
    margin: 0;
    color: var(--text-primary);
}

/* Cookie Consent Manager */
.cookie-consent-manager {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    text-align: left;
}

.cookie-consent-manager h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
    font-size: 1.5rem;
}

.consent-options {
    margin-bottom: 2rem;
}

.consent-option {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.option-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

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

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:disabled + .slider {
    background-color: #666;
    cursor: not-allowed;
}

.option-info h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.option-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.option-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.consent-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.consent-actions .btn {
    min-width: 150px;
}

.consent-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

/* Policy Content */
.policy-content {
    max-width: 900px;
    margin: 0 auto;
}

.policy-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.policy-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.section-content {
    padding: 0 0.5rem;
}

/* Cookie Diagram */
.cookie-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0;
    flex-wrap: wrap;
    gap: 1rem;
}

.diagram-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 1.5rem;
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.diagram-step h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.diagram-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.diagram-arrow {
    color: var(--text-secondary);
    font-size: 1.5rem;
}

/* Info Box */
.info-box {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    margin-top: 1.5rem;
}

.info-box h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.info-box i {
    color: var(--primary-color);
}

.info-box ul {
    margin-left: 1.5rem;
}

.info-box li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Cookies Table */
.cookies-table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.cookies-table th {
    background-color: rgba(79, 70, 229, 0.1);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.cookies-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.cookies-table tr:last-child td {
    border-bottom: none;
}

/* Cookie Type Badges */
.type-essential, .type-analytics, .type-advertising {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.type-essential {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.type-analytics {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.type-advertising {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* Cookie Types Explained */
.cookie-types-explained {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.type-explanation {
    text-align: center;
    padding: 1rem;
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.type-explanation h4 {
    margin-bottom: 0.5rem;
}

.type-badge {
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Purposes Grid */
.purposes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.purpose-card {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.purpose-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(79, 70, 229, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.purpose-card h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.purpose-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Purpose Details */
.purpose-details {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    margin: 1.5rem 0;
}

.details-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
}

.detail-item i {
    color: #10b981;
}

/* Warning Box */
.warning-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: rgba(239, 68, 68, 0.1);
    border-radius: var(--border-radius-md);
    margin: 1.5rem 0;
}

.warning-box i {
    color: #ef4444;
    font-size: 1.5rem;
}

/* Third Party Providers */
.third-party-providers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.provider-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.provider-logo {
    width: 60px;
    height: 60px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #3b82f6;
    flex-shrink: 0;
}

.provider-info h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.provider-info p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.provider-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.provider-info a:hover {
    text-decoration: underline;
}

.third-party-control {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    margin: 1.5rem 0;
}

.third-party-control ul {
    margin-left: 1.5rem;
    margin-top: 0.75rem;
}

.third-party-control li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.third-party-control a {
    color: var(--primary-color);
    text-decoration: none;
}

.third-party-control a:hover {
    text-decoration: underline;
}

/* Management Options */
.management-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.management-card {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.management-card h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.management-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.browser-steps {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.browser-step {
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
}

.browser-step h5 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.browser-step p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Impacts Table */
.management-impacts {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    margin: 1.5rem 0;
}

.impacts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.impacts-table th {
    background-color: rgba(79, 70, 229, 0.1);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
}

.impacts-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.impacts-table tr:last-child td {
    border-bottom: none;
}

/* Lifetime Chart */
.lifetime-chart {
    margin: 2rem 0;
}

.chart-bar {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.bar-label {
    min-width: 120px;
    color: var(--text-primary);
    font-weight: 500;
}

.bar-container {
    flex: 1;
    height: 30px;
    background-color: var(--bg-primary);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.bar-fill {
    height: 100%;
    border-radius: 15px;
}

.bar-fill.session {
    background-color: #3b82f6;
}

.bar-fill.short {
    background-color: #10b981;
}

.bar-fill.medium {
    background-color: #f59e0b;
}

.bar-fill.long {
    background-color: #ef4444;
}

.bar-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.lifetime-details {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    margin-top: 2rem;
}

.lifetime-details ul {
    margin-left: 1.5rem;
    margin-top: 0.75rem;
}

.lifetime-details li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Compliance Boxes */
.compliance-box {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.compliance-box h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.compliance-box ul {
    margin-left: 1.5rem;
    margin-top: 0.75rem;
}

.compliance-box li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Children Info */
.children-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.children-point {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.children-point i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.children-point h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.children-point p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.parental-control {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    margin-top: 1.5rem;
}

.parental-control ol {
    margin-left: 1.5rem;
    margin-top: 0.75rem;
}

.parental-control li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Updates Process */
.update-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.update-step {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.update-step .step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.update-step h5 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.update-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.notification-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: var(--border-radius-md);
    margin-top: 1.5rem;
}

.notification-box i {
    color: #3b82f6;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.notification-box h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Contact Options */
.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.contact-option {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(79, 70, 229, 0.1);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-info h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.frequent-questions {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    margin-top: 1.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-item h5 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Policy Footer */
.policy-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.acceptance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.acceptance label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.acceptance input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.action-buttons .btn {
    min-width: 150px;
}

.policy-version {
    text-align: center;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
}

.policy-version p {
    margin-bottom: 0.5rem;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

@media (max-width: 768px) {
    .policy-header h1 {
        font-size: 2rem;
    }
    
    .quick-summary {
        grid-template-columns: 1fr;
    }
    
    .cookie-diagram {
        flex-direction: column;
    }
    
    .diagram-arrow {
        transform: rotate(90deg);
    }
    
    .policy-section {
        padding: 1rem;
    }
    
    .cookies-table, .impacts-table {
        display: block;
        overflow-x: auto;
    }
    
    .cookie-types-explained, .purposes-grid, .third-party-providers,
    .management-options, .update-steps, .contact-options {
        grid-template-columns: 1fr;
    }
    
    .consent-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .consent-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .acceptance {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .chart-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .bar-label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .policy-header h1 {
        font-size: 1.75rem;
    }
    
    .policy-section h2 {
        font-size: 1.25rem;
    }
    
    .meta-info, .info-box, .important-notice {
        padding: 1rem;
    }
    
    .cookie-consent-manager {
        padding: 1rem;
    }
    
    .consent-option {
        padding: 1rem;
    }
    
    .provider-card, .contact-option {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}