/* Legal Pages Styles */

.legal-page {
    padding-top: 80px;
}

/* Hero Section */
.legal-hero {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.legal-hero .container {
    position: relative;
    z-index: 2;
}

.hero-centered {
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: white;
}

.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.last-updated i {
    color: #ffd700;
}

/* Content Section */
.legal-content {
    padding: 80px 0;
    background: #f8f9fa;
}

.content-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.section-block {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.section-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-block h2 {
    color: #1e3c72;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ffd700;
    display: inline-block;
}

.section-block h3 {
    color: #2a5298;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

.section-block p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: justify;
}

.section-block ul {
    margin: 1rem 0;
    padding-left: 0;
}

.section-block li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    list-style: none;
}

.section-block li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}


/* Cookie Table */
.cookie-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cookie-table th {
    background: #1e3c72;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.cookie-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    color: #555;
}

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

.cookie-table tr:hover {
    background: #f8f9fa;
}

/* Browser Settings */
.browser-settings {
    background: #e3f2fd;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.browser-settings p {
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    color: #1565c0;
}

/* Cookie Settings Panel */
.cookie-settings-panel {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #1e3c72;
    margin-top: 3rem;
}

.cookie-settings-panel h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    text-align: center;
}

.cookie-controls {
    margin: 2rem 0;
}

.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.cookie-toggle .slider {
    position: relative;
    width: 50px;
    height: 24px;
    background: #ccc;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.cookie-toggle .slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.cookie-toggle input:checked + .slider {
    background: #28a745;
}

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

.cookie-toggle input:disabled + .slider {
    background: #6c757d;
    cursor: not-allowed;
}

.cookie-category small {
    color: #666;
    font-size: 0.85rem;
    margin-left: auto;
    max-width: 200px;
    text-align: right;
}

.save-cookie-settings {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-cookie-settings:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .legal-hero {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .content-wrapper {
        padding: 2rem 1rem;
    }
    
    .section-block h2 {
        font-size: 1.5rem;
    }
    
    .cookie-category {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .cookie-category small {
        max-width: 100%;
        text-align: left;
        margin-left: 0;
    }
    
    .cookie-table {
        font-size: 0.9rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .content-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .section-block {
        margin-bottom: 2rem;
    }
    
    .last-updated {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Print Styles */
@media print {
    .legal-hero {
        background: none !important;
        color: black !important;
        padding: 2rem 0;
    }
    
    .content-wrapper {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .cookie-settings-panel {
        display: none;
    }
    
    .section-block {
        page-break-inside: avoid;
    }
}