/* ================================================
   MANARA AUTO - Legal Pages Styles
   Privacy Policy & Cookie Policy
   ================================================ */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-900);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding: 20px 24px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

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

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

.cookie-banner-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--light-100);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-banner-text h4 i {
    color: var(--accent-yellow);
}

.cookie-banner-text p {
    color: var(--light-400);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.cookie-banner-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: var(--accent-green);
}

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

.cookie-banner-actions .btn-sm {
    padding: 10px 18px;
    font-size: 13px;
}

/* Light Theme - Cookie Banner */
[data-theme="light"] .cookie-banner {
    background: #ffffff;
    border-top-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .cookie-banner-text h4 {
    color: #1e293b;
}

[data-theme="light"] .cookie-banner-text p {
    color: #64748b;
}

/* Cookie Banner Responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px 16px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .cookie-banner-text h4 {
        justify-content: center;
    }
    
    .cookie-banner-actions {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .cookie-banner-actions .btn-sm {
        flex: 1;
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .cookie-banner-actions {
        flex-direction: column;
    }
    
    .cookie-banner-actions .btn-sm {
        width: 100%;
    }
}

/* Legal Page Layout */
.legal-page {
    min-height: 100vh;
    padding: 140px 24px 80px;
    background: var(--dark-800);
}

.legal-header {
    text-align: center;
    margin-bottom: 50px;
}

.legal-header h1 {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    color: var(--light-100);
    margin-bottom: 15px;
}

.last-updated {
    color: var(--light-500);
    font-size: 14px;
}

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

.legal-section {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 35px;
    margin-bottom: 25px;
}

.legal-section h2 {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 600;
    color: var(--light-100);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--light-100);
    margin: 25px 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-section h3 i {
    color: var(--primary);
    font-size: 20px;
}

.legal-section p {
    color: var(--light-300);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.legal-section ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--light-300);
    font-size: 15px;
    line-height: 1.6;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.legal-section ul li strong {
    color: var(--light-100);
}

.legal-section a {
    color: var(--primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: var(--accent-green);
}

/* Info Box */
.info-box {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 20px 25px;
    margin: 20px 0;
}

.info-box p {
    margin-bottom: 8px;
    color: var(--light-200);
}

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

/* Cookie Categories */
.cookie-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 25px;
    margin: 20px 0;
}

.cookie-category h3 {
    margin-top: 0;
}

.cookie-status {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 15px;
}

.cookie-status.always-active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Cookie Toggle Switch */
.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.4s;
    border-radius: 28px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

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

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

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--light-200);
}

/* Cookie Preferences Panel */
.cookie-preferences-panel {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(168, 85, 247, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-top: 25px;
}

.cookie-preferences-panel h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--light-100);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-preferences-panel h4 i {
    color: var(--primary);
}

.preferences-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pref-name {
    font-size: 14px;
    color: var(--light-300);
}

.pref-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 15px;
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.pref-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
}

.preferences-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.preferences-actions .btn {
    flex: 1;
    min-width: 150px;
}

/* Browser Instructions */
.browser-instructions {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.browser-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-item i {
    font-size: 32px;
    color: var(--primary);
    width: 45px;
    text-align: center;
}

.browser-item strong {
    display: block;
    color: var(--light-100);
    margin-bottom: 5px;
}

.browser-item p {
    margin: 0;
    font-size: 13px;
    color: var(--light-400);
}

/* Legal Footer */
.legal-footer {
    text-align: center;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Notification */
.cookie-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 25px;
    background: var(--dark-700);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
}

.cookie-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-notification.success {
    border-left: 4px solid var(--accent-green);
}

.cookie-notification.success i {
    color: var(--accent-green);
}

.cookie-notification.info {
    border-left: 4px solid var(--primary);
}

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

.cookie-notification span {
    color: var(--light-100);
    font-size: 14px;
}

/* Footer Legal Links */
.footer-legal-links {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-top: 15px;
}

.footer-legal-links a {
    color: var(--light-500);
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--primary);
}

/* Light Theme */
[data-theme="light"] .legal-page {
    background: #f8fafc;
}

[data-theme="light"] .legal-header h1 {
    color: #1e293b;
}

[data-theme="light"] .last-updated {
    color: #64748b;
}

[data-theme="light"] .legal-section {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .legal-section h2 {
    color: #1e293b;
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .legal-section h3 {
    color: #1e293b;
}

[data-theme="light"] .legal-section p,
[data-theme="light"] .legal-section ul li {
    color: #475569;
}

[data-theme="light"] .legal-section ul li strong {
    color: #1e293b;
}

[data-theme="light"] .info-box {
    background: rgba(0, 212, 255, 0.06);
}

[data-theme="light"] .info-box p {
    color: #334155;
}

[data-theme="light"] .cookie-category {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .slider {
    background-color: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .toggle-label {
    color: #334155;
}

[data-theme="light"] .cookie-preferences-panel {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(168, 85, 247, 0.06));
}

[data-theme="light"] .cookie-preferences-panel h4 {
    color: #1e293b;
}

[data-theme="light"] .preference-item {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .pref-name {
    color: #475569;
}

[data-theme="light"] .browser-item {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .browser-item strong {
    color: #1e293b;
}

[data-theme="light"] .browser-item p {
    color: #64748b;
}

[data-theme="light"] .legal-footer {
    border-top-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .cookie-notification {
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .cookie-notification span {
    color: #1e293b;
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: 120px 16px 60px;
    }
    
    .legal-header h1 {
        font-size: 32px;
    }
    
    .legal-section {
        padding: 25px 20px;
    }
    
    .legal-section h2 {
        font-size: 18px;
    }
    
    .legal-section h3 {
        font-size: 16px;
    }
    
    .preferences-summary {
        grid-template-columns: 1fr;
    }
    
    .preferences-actions {
        flex-direction: column;
    }
    
    .preferences-actions .btn {
        width: 100%;
    }
    
    .browser-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-notification {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 26px;
    }
    
    .legal-section {
        padding: 20px 15px;
    }
    
    .cookie-category {
        padding: 20px 15px;
    }
    
    .cookie-preferences-panel {
        padding: 20px 15px;
    }
    
    .preference-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
