/* Legal Pages Styles */
.legal-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    line-height: 1.8;
}

.about-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #F0E090;
    font-weight: bold;
}

.rules-list {
    list-style: none;
    padding: 0;
}

.rules-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.7;
}

.rules-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #182D38;
    font-weight: bold;
    font-size: 1.2em;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.partner-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.partner-card:hover {
    border-color: #F0E090;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.partner-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.partner-card h3 {
    color: #182D38;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.partner-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.legal-container h1 {
    font-size: 2.5em;
    color: #182D38;
    margin-bottom: 10px;
    text-align: center;
}

.legal-date {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 40px;
    font-style: italic;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.8em;
    color: #182D38;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #F0E090;
}

.legal-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

.cookies-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.cookie-item {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #F0E090;
}

.cookie-item h3 {
    font-size: 1.3em;
    color: #182D38;
    margin-bottom: 10px;
}

.cookie-item p {
    margin: 0;
    color: #666;
}

.cookies-preferences {
    margin: 30px 0;
}

.preference-item {
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.preference-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    color: #333;
}

.preference-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #182D38;
}

.preference-item input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.preference-status {
    color: #666;
    font-size: 14px;
    margin-left: auto;
}

.btn-save-preferences {
    padding: 12px 30px;
    background: #182D38;
    color: #F0E090;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-save-preferences:hover {
    background: #1a3542;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 45, 56, 0.3);
}

.legal-actions {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.btn-back {
    display: inline-block;
    padding: 12px 30px;
    background: #182D38;
    color: #F0E090;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-back:hover {
    background: #1a3542;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 45, 56, 0.3);
}

/* Cookie Consent Popup */
.cookie-consent-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: calc(100% - 40px);
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 40px;
    z-index: 10000;
    display: none;
    animation: fadeInScale 0.3s ease-out;
    box-sizing: border-box;
    margin: 0 auto;
}

.cookie-consent-popup.show {
    display: block;
}

@keyframes fadeInScale {
    from {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.cookie-consent-popup h3 {
    font-size: 1.8em;
    color: #182D38;
    margin-bottom: 20px;
    text-align: center;
}

.cookie-consent-popup p {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 25px;
    text-align: center;
}

.cookie-consent-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-consent-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-width: 120px;
}

.cookie-consent-btn.accept {
    background: #182D38;
    color: #F0E090;
}

.cookie-consent-btn.accept:hover {
    background: #1a3542;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 45, 56, 0.3);
}

.cookie-consent-btn.reject {
    background: #e0e0e0;
    color: #333;
}

.cookie-consent-btn.reject:hover {
    background: #d0d0d0;
}

.cookie-consent-btn.settings {
    background: transparent;
    color: #182D38;
    border: 2px solid #182D38;
}

.cookie-consent-btn.settings:hover {
    background: #182D38;
    color: #F0E090;
}

.cookie-consent-links {
    margin-top: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.cookie-settings-link {
    color: #182D38;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.cookie-settings-link:hover {
    color: #F0E090;
    text-decoration: underline;
}

/* Cookie Settings Button (Fixed) */
.cookie-settings-btn {
    position: fixed !important;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #182D38;
    color: #F0E090;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(24, 45, 56, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-sizing: border-box;
}

.cookie-success-message {
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-settings-btn:hover {
    background: #1a3542;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(24, 45, 56, 0.5);
}

.cookie-settings-btn:active {
    transform: scale(0.95);
}

/* Overlay for popup */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    overflow: hidden;
    box-sizing: border-box;
}

.cookie-overlay.show {
    display: block;
}

/* Prevent horizontal scroll when modal is open */
body.cookie-modal-open {
    overflow-x: hidden !important;
    max-width: 100vw;
    position: relative;
}

html.cookie-modal-open {
    overflow-x: hidden !important;
    max-width: 100vw;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .legal-container {
        margin: 20px auto;
        padding: 30px 15px;
    }
    
    .legal-container h1 {
        font-size: 2em;
    }
    
    .legal-section h2 {
        font-size: 1.5em;
    }
    
    .cookie-consent-popup {
        padding: 20px 15px;
        width: calc(100vw - 30px);
        max-width: calc(100vw - 30px);
        left: 50%;
        right: auto;
        margin: 0;
        box-sizing: border-box;
        max-height: 85vh;
    }
    
    .cookie-consent-popup h3 {
        font-size: 1.2em;
        margin-bottom: 12px;
    }
    
    .cookie-consent-popup p {
        font-size: 13px;
        margin-bottom: 18px;
        line-height: 1.5;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .cookie-consent-btn {
        width: 100%;
        min-width: auto;
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .cookie-consent-links {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .cookie-settings-link {
        font-size: 13px;
    }
    
    .cookie-settings-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
        max-right: calc(100vw - 60px);
    }
    
    .cookie-overlay {
        width: 100vw;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .partner-card {
        padding: 20px;
    }
    
    .legal-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .legal-actions .btn-back {
        width: 100%;
        text-align: center;
    }
}

