/* LEGAL PAGES STYLES */

.legal-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #008975 100%);
    padding: 120px 20px 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<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,112C1248,107,1344,117,1392,122.7L1440,128L1440,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>') bottom center no-repeat;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* CONTENIDO */
.legal-content {
    padding: 80px 20px;
    background: #f8f9fa;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* SIDEBAR */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.sidebar h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.toc {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.toc a {
    padding: 10px 15px;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.toc a:hover,
.toc a.active {
    background: rgba(0, 191, 165, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

/* MAIN CONTENT */
.main-content {
    background: white;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.content-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.content-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 2rem;
    color: #222;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.content-section h3 {
    font-size: 1.4rem;
    color: #333;
    margin-top: 25px;
    margin-bottom: 15px;
}

.content-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.content-section ul,
.content-section ol {
    margin: 15px 0 20px 20px;
    color: #555;
}

.content-section ul li,
.content-section ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.content-section ul {
    list-style: none;
}

.content-section ul li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

.content-section ol {
    counter-reset: item;
}

.content-section ol li {
    counter-increment: item;
    position: relative;
    padding-left: 10px;
}

/* ALERTS */
.alert {
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.alert i {
    font-size: 1.5rem;
    margin-top: 2px;
}

.alert p {
    margin: 0;
    line-height: 1.6;
}

.alert-info {
    background: #e7f5ff;
    border-left: 4px solid #339af0;
    color: #1864ab;
}

.alert-info i {
    color: #339af0;
}

.alert-warning {
    background: #fff4e6;
    border-left: 4px solid #ff922b;
    color: #c65d21;
}

.alert-warning i {
    color: #ff922b;
}

.alert-success {
    background: #ebfbee;
    border-left: 4px solid #51cf66;
    color: #2b8a3e;
}

.alert-success i {
    color: #51cf66;
}

/* CONTACT INFO BOX */
.contact-info-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
    border: 2px solid var(--primary-color);
}

.contact-info-box p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-box i {
    color: var(--primary-color);
    width: 20px;
}

.contact-info-box strong {
    color: #222;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* SCROLL TO TOP */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(0,191,165,0.4);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top:hover {
    background: #008975;
    transform: translateY(-5px);
    box-shadow: 0 7px 25px rgba(0,191,165,0.5);
}

.scroll-top.active {
    display: flex;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        order: 2;
        margin-top: 40px;
    }

    .main-content {
        order: 1;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .legal-content {
        padding: 50px 15px;
    }

    .main-content {
        padding: 30px 20px;
    }

    .content-section h2 {
        font-size: 1.6rem;
    }

    .content-section h3 {
        font-size: 1.2rem;
    }

    .sidebar {
        padding: 20px;
    }

    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .main-content {
        padding: 25px 15px;
    }

    .content-section h2 {
        font-size: 1.4rem;
    }

    .alert {
        padding: 15px;
        gap: 10px;
    }

    .alert i {
        font-size: 1.2rem;
    }
}
