/* ====================================
   Accessibility & Cookie Consent Styles
   ==================================== */

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color, #D4AF37), var(--secondary-color, #B8860B));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 9998;
    opacity: 0;
}

.scroll-top-btn.show {
    display: flex;
    opacity: 1;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn:active {
    transform: translateY(-2px);
}

/* Accessibility Button */
.accessibility-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
}

.accessibility-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.accessibility-btn:active {
    transform: scale(1.05);
}

/* Accessibility Menu */
.accessibility-menu {
    position: fixed;
    right: -400px;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    max-width: 90vw;
    background: white;
    border-radius: 15px 0 0 15px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
    overflow: hidden;
}

.accessibility-menu.open {
    right: 0;
}

.accessibility-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.accessibility-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.accessibility-header button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.accessibility-header button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.accessibility-content {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.accessibility-option {
    margin-bottom: 10px;
}

.accessibility-action-btn {
    width: 100%;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    text-align: right;
}

.accessibility-action-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateX(-5px);
}

.accessibility-action-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.accessibility-action-btn i {
    font-size: 20px;
    min-width: 25px;
    text-align: center;
}

.accessibility-action-btn.btn-reset {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.accessibility-action-btn.btn-reset:hover {
    background: #ffc107;
    color: white;
    border-color: #ffc107;
}

.accessibility-footer {
    background: #f8f9fa;
    padding: 15px 20px;
    text-align: center;
    font-size: 13px;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    right: 100px;
    max-width: 420px;
    width: calc(100% - 140px);
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 15px;
    z-index: 9997;
    animation: slideInUp 0.5s ease;
}

.cookie-consent.show {
    display: flex;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-icon {
    position: absolute;
    top: -20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.4);
}

.cookie-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.cookie-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
}

.cookie-content a {
    color: #667eea;
    text-decoration: underline;
}

.cookie-content a:hover {
    color: #764ba2;
}

.cookie-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.cookie-btn {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn i {
    font-size: 12px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #51cf66, #37b24d);
    color: white;
}

.cookie-btn-accept:hover {
    box-shadow: 0 4px 15px rgba(55, 178, 77, 0.4);
    transform: translateY(-2px);
}

.cookie-btn-decline {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e9ecef;
}

.cookie-btn-decline:hover {
    background: #e9ecef;
}

.cookie-btn-settings {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.cookie-btn-settings:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

/* Accessibility Features Active States */
body.high-contrast {
    filter: contrast(1.5);
}

body.grayscale {
    filter: grayscale(100%);
}

body.highlight-links a {
    text-decoration: underline !important;
    font-weight: bold !important;
    outline: 2px dashed #667eea !important;
    outline-offset: 2px;
}

body.readable-font,
body.readable-font * {
    font-family: 'Arial', sans-serif !important;
}

body.font-size-increased {
    font-size: 110% !important;
}

body.font-size-increased-2 {
    font-size: 120% !important;
}

body.font-size-increased-3 {
    font-size: 130% !important;
}

/* Legal Pages Styles */
.page-header {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.5;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.2);
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.page-header-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-header-content p {
    font-size: 20px;
    margin-bottom: 25px;
    opacity: 0.95;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.legal-content {
    background: #f8f9fa;
    padding: 60px 0;
}

.legal-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.legal-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.legal-nav {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.legal-nav h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.legal-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.legal-nav a {
    display: block;
    padding: 10px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.legal-nav a:hover {
    background: #f8f9fa;
    color: #667eea;
    padding-right: 20px;
}

.legal-update {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.legal-update i {
    color: #667eea;
    font-size: 16px;
}

.legal-main {
    background: white;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.legal-intro {
    text-align: center;
    padding: 40px 0;
    border-bottom: 2px solid #f8f9fa;
    margin-bottom: 40px;
}

.legal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 36px;
}

.legal-intro h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

.legal-intro .lead {
    font-size: 18px;
    line-height: 1.7;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 50px;
    scroll-margin-top: 100px;
}

.legal-section h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.legal-section h2 i {
    color: #667eea;
}

.legal-section h3 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: #444;
}

.legal-text {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.legal-text p {
    margin-bottom: 20px;
}

.legal-list {
    margin: 20px 0;
    padding-right: 30px;
}

.legal-list li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.legal-list strong {
    color: #333;
}

.legal-note {
    background: #fff3cd;
    border-right: 4px solid #ffc107;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    display: flex;
    gap: 15px;
}

.legal-note i {
    color: #856404;
    font-size: 24px;
    flex-shrink: 0;
}

.legal-note p {
    margin: 0;
    color: #856404;
}

.contact-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin: 25px 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: #667eea;
    font-size: 20px;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.legal-footer {
    text-align: center;
    padding: 40px 0 0;
    border-top: 2px solid #f8f9fa;
    margin-top: 50px;
}

.legal-footer-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #51cf66, #37b24d);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
}

.legal-footer h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.legal-footer p {
    max-width: 600px;
    margin: 0 auto 25px;
    color: #666;
    line-height: 1.7;
}

.legal-footer-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-credit {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.footer-credit a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-credit a:hover {
    color: #764ba2;
}

.footer-credit i {
    color: #ff6b6b;
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .accessibility-btn {
        right: 15px;
        bottom: 90px;
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .scroll-top-btn {
        left: 15px;
        bottom: 90px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .accessibility-menu {
        width: 100%;
        max-width: 100vw;
        right: -100%;
        border-radius: 0;
    }

    .cookie-consent {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: calc(100% - 20px);
        max-width: none;
        padding: 15px;
        gap: 12px;
    }

    .cookie-icon {
        top: -18px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .cookie-content h4 {
        font-size: 15px;
    }

    .cookie-content p {
        font-size: 12px;
    }

    .cookie-actions {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .cookie-btn {
        padding: 8px 6px;
        font-size: 11px;
        gap: 3px;
    }

    .cookie-btn i {
        font-size: 10px;
    }

    .legal-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .legal-sidebar {
        position: static;
        order: 2;
    }

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

    .page-header-content h1 {
        font-size: 32px;
        flex-direction: column;
    }

    .legal-section h2 {
        font-size: 22px;
        flex-direction: column;
        align-items: flex-start;
    }

    .legal-footer-buttons {
        flex-direction: column;
    }

    .footer-credit {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 100px 0 60px;
    }

    .page-header-content h1 {
        font-size: 28px;
    }

    .page-header-content p {
        font-size: 16px;
    }

    .legal-intro h2 {
        font-size: 26px;
    }

    .legal-intro .lead {
        font-size: 16px;
    }

    .legal-section h2 {
        font-size: 20px;
    }

    .legal-section h3 {
        font-size: 18px;
    }

    /* Extra small cookies banner */
    .cookie-consent {
        padding: 12px;
        gap: 10px;
    }

    .cookie-content h4 {
        font-size: 14px;
    }

    .cookie-content p {
        font-size: 11px;
    }

    .cookie-btn {
        padding: 7px 5px;
        font-size: 10px;
    }

    .cookie-btn span {
        display: none;
    }

    .cookie-btn i {
        font-size: 12px;
        margin: 0;
    }
}
