/* Shared Styles for Legal Pages (Cookies, Privacy, Terms, Returns) */

.legal-page {
    background: #F9F9F9;
    color: #333333;
    padding-bottom: 80px;
    padding-top: 0 !important;
}

.page-hero-banner.legal-hero-banner {
    background: linear-gradient(135deg, #131921 0%, #232f3e 100%);
    padding: 80px 0 140px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 153, 0, 0.3);
    margin-bottom: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.legal-hero-banner .banner-title {
    font-size: 2.8rem;
    color: #ff9900 !important;
    font-weight: 800;
    margin-bottom: 10px;
}

.legal-hero-banner .banner-subtitle {
    font-size: 1.1rem;
    color: #ccc !important;
}

.legal-layout {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin-top: -60px;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Single Column Layout (e.g. Cookies) */
.legal-layout.single-col {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 60px 100px;
}

/* Grid Layout with Sidebar (e.g. Privacy, Terms) */
.legal-layout:not(.single-col) {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
    padding: 40px;
}

/* Sidebar Navigation */
.legal-sidebar {
    position: sticky;
    top: 100px;
    background: #f4f4f4;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

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

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

.legal-nav .nav-link {
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.legal-nav .nav-link:hover,
.legal-nav .nav-link.active {
    color: #ff9900;
    padding-left: 10px;
    font-weight: 600;
}

/* Content Area */
.legal-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.legal-section h2 {
    color: #111111;
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.legal-section p {
    margin-bottom: 20px;
    color: #333;
}

.legal-section ul {
    margin-bottom: 25px;
    padding-left: 20px;
    color: #333;
}

.legal-section li {
    margin-bottom: 10px;
    color: #333;
}

.legal-section strong {
    color: #111;
}

.legal-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 50px 0;
}

.legal-info-box {
    background: rgba(255, 153, 0, 0.05);
    border-left: 4px solid #ff9900;
    padding: 20px 25px;
    border-radius: 4px;
    margin: 30px 0;
}

.legal-info-box h4 {
    color: #ff9900;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.legal-info-box p {
    margin-bottom: 0;
    font-style: italic;
    color: #444;
}

/* FAQ Accordion (Terms) */
.faq-accordion {
    margin-top: 30px;
}

.faq-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item[open] {
    border-color: #ff9900;
    background: #fff;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question i {
    font-size: 14px;
    transition: transform 0.3s ease;
    color: #ff9900;
}

.faq-item[open] .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px 20px;
    color: #555;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .legal-layout:not(.single-col) {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }

    .legal-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .legal-nav li {
        margin-bottom: 0;
    }

    .legal-nav .nav-link {
        background: rgba(0, 0, 0, 0.05);
        padding: 8px 15px;
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .legal-layout.single-col {
        padding: 30px 25px;
    }
}

/* Dark Mode Support */
body.dark-mode .legal-page,
body.dark-mode .devoluciones-page {
    background: #121212;
    color: #e0e0e0;
}

body.dark-mode .legal-layout {
    background: #1E1E1E;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-color: #333;
}

body.dark-mode .legal-sidebar {
    background: #252525;
    border-color: #333;
}

body.dark-mode .legal-nav .nav-link {
    color: #ccc;
}

body.dark-mode .legal-nav .nav-link:hover,
body.dark-mode .legal-nav .nav-link.active {
    color: #ff9900;
}

body.dark-mode .legal-section h2 {
    color: #ffffff;
}

body.dark-mode .legal-section p,
body.dark-mode .legal-section ul,
body.dark-mode .legal-section li {
    color: #ccc;
}

body.dark-mode .legal-section strong {
    color: #fff;
}

body.dark-mode .legal-divider {
    border-top-color: #333;
}

body.dark-mode .legal-info-box {
    background: rgba(255, 153, 0, 0.1);
}

body.dark-mode .legal-info-box p {
    color: #ccc;
}

body.dark-mode .faq-item {
    background: #252525;
    border-color: #333;
}

body.dark-mode .faq-item[open] {
    border-color: #ff9900;
    background: #1E1E1E;
}

body.dark-mode .faq-question {
    color: #e0e0e0;
}

body.dark-mode .faq-answer {
    color: #b0b0b0;
}
