/* ===========================================
   LEGAL PAGES STYLES (Termos, Privacidade)
   =========================================== */

.legal-page {
    min-height: 100vh;
    padding: 100px 20px 60px;
    background: var(--bg-primary, #0a0a0f);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-secondary, #12121a);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Header */
.legal-header {
    background: linear-gradient(135deg, var(--primary-color, #8b5cf6) 0%, var(--primary-dark, #6d28d9) 100%);
    padding: 40px;
    text-align: center;
    color: white;
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.legal-header h1 i {
    font-size: 2.2rem;
}

.legal-update {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

.lgpd-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.lgpd-badge i {
    font-size: 1.1rem;
}

/* Content */
.legal-content {
    padding: 40px;
}

.legal-section {
    margin-bottom: 40px;
}

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

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color, #8b5cf6);
}

.legal-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    margin: 24px 0 12px 0;
}

.legal-section p {
    color: var(--text-secondary, #a1a1aa);
    line-height: 1.8;
    margin: 0 0 16px 0;
}

.legal-section ul {
    color: var(--text-secondary, #a1a1aa);
    line-height: 1.8;
    margin: 0 0 16px 0;
    padding-left: 24px;
}

.legal-section ul li {
    margin-bottom: 8px;
}

.legal-section a {
    color: var(--primary-color, #8b5cf6);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-section a:hover {
    color: var(--primary-light, #a78bfa);
    text-decoration: underline;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.95rem;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color, #27272a);
}

.data-table th {
    background: var(--bg-tertiary, #18181b);
    color: var(--text-primary, #ffffff);
    font-weight: 600;
}

.data-table td {
    color: var(--text-secondary, #a1a1aa);
}

.data-table tr:hover td {
    background: rgba(139, 92, 246, 0.05);
}

/* Rights Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.right-card {
    background: var(--bg-tertiary, #18181b);
    border: 1px solid var(--border-color, #27272a);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.right-card:hover {
    border-color: var(--primary-color, #8b5cf6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.right-card i {
    font-size: 2rem;
    color: var(--primary-color, #8b5cf6);
    margin-bottom: 12px;
}

.right-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    margin: 0 0 8px 0;
}

.right-card p {
    font-size: 0.85rem;
    color: var(--text-secondary, #a1a1aa);
    margin: 0;
    line-height: 1.5;
}

.rights-note {
    background: var(--bg-tertiary, #18181b);
    border-left: 4px solid var(--primary-color, #8b5cf6);
    padding: 16px;
    border-radius: 0 8px 8px 0;
    margin-top: 20px;
}

/* Security Features */
.legal-section ul li i {
    color: var(--success-color, #10b981);
    margin-right: 8px;
}

/* DPO Info */
.dpo-info {
    background: var(--bg-tertiary, #18181b);
    border-radius: 12px;
    padding: 20px;
    margin-top: 16px;
}

.dpo-info p {
    margin: 8px 0;
}

/* Contact Info */
.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.contact-info li i {
    font-size: 1.3rem;
    color: var(--primary-color, #8b5cf6);
}

/* Footer */
.legal-footer {
    padding: 30px 40px;
    background: var(--bg-tertiary, #18181b);
    border-top: 1px solid var(--border-color, #27272a);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-back,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-back {
    background: var(--primary-color, #8b5cf6);
    color: white;
}

.btn-back:hover {
    background: var(--primary-dark, #6d28d9);
    transform: translateX(-4px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary, #a1a1aa);
    border: 1px solid var(--border-color, #27272a);
}

.btn-secondary:hover {
    border-color: var(--primary-color, #8b5cf6);
    color: var(--primary-color, #8b5cf6);
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 80px 16px 40px;
    }

    .legal-header {
        padding: 30px 20px;
    }

    .legal-header h1 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 8px;
    }

    .legal-content {
        padding: 24px 20px;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .data-table {
        font-size: 0.85rem;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
    }

    .rights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .right-card {
        padding: 16px;
    }

    .right-card i {
        font-size: 1.5rem;
    }

    .right-card h4 {
        font-size: 0.9rem;
    }

    .right-card p {
        font-size: 0.8rem;
    }

    .legal-footer {
        padding: 20px;
        flex-direction: column;
    }

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

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

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary, #12121a);
    border-top: 1px solid var(--border-color, #27272a);
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner-content {
    flex: 1;
}

.cookie-banner-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-banner-content h4 i {
    color: var(--primary-color, #8b5cf6);
}

.cookie-banner-content p {
    font-size: 0.9rem;
    color: var(--text-secondary, #a1a1aa);
    margin: 0;
    line-height: 1.6;
}

.cookie-banner-content a {
    color: var(--primary-color, #8b5cf6);
    text-decoration: none;
}

.cookie-banner-content a:hover {
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.cookie-btn-accept {
    background: var(--primary-color, #8b5cf6);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--primary-dark, #6d28d9);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--text-secondary, #a1a1aa);
    border: 1px solid var(--border-color, #27272a);
}

.cookie-btn-settings:hover {
    border-color: var(--primary-color, #8b5cf6);
    color: var(--primary-color, #8b5cf6);
}

.cookie-btn-reject {
    background: transparent;
    color: var(--text-muted, #71717a);
}

.cookie-btn-reject:hover {
    color: var(--text-secondary, #a1a1aa);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.active {
    display: flex;
}

.cookie-modal-content {
    background: var(--bg-secondary, #12121a);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color, #27272a);
}

.cookie-modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-modal-header h3 i {
    color: var(--primary-color, #8b5cf6);
}

.cookie-modal-body {
    padding: 24px;
}

.cookie-category {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color, #27272a);
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cookie-category-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #ffffff);
    margin: 0;
}

.cookie-category-header span {
    font-size: 0.8rem;
    color: var(--text-muted, #71717a);
    padding: 4px 8px;
    background: var(--bg-tertiary, #18181b);
    border-radius: 4px;
}

.cookie-category p {
    font-size: 0.9rem;
    color: var(--text-secondary, #a1a1aa);
    margin: 0;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 48px;
    height: 26px;
}

.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: var(--bg-tertiary, #18181b);
    border: 1px solid var(--border-color, #27272a);
    border-radius: 26px;
    transition: 0.3s;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--text-muted, #71717a);
    border-radius: 50%;
    transition: 0.3s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--primary-color, #8b5cf6);
    border-color: var(--primary-color, #8b5cf6);
}

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

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

.cookie-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color, #27272a);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Responsive Cookie Banner */
@media (max-width: 768px) {
    .cookie-banner-container {
        flex-direction: column;
        text-align: center;
    }

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

    .cookie-btn {
        width: 100%;
    }
}
