/* Legal Pages Styles */

/* Hero Section */
.legal-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/legal/legal-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
}

.legal-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.legal-date {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Legal Content */
.legal-content {
    padding: 5rem 0;
    background-color: var(--white);
}

.legal-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

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

.legal-nav {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.legal-nav h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.legal-nav h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

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

.legal-nav ul li {
    margin-bottom: 0.8rem;
}

.legal-nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.legal-nav ul li a:hover {
    color: var(--secondary-color);
}

.legal-download {
    text-align: center;
}

.legal-download .btn-secondary {
    width: 100%;
    padding: 1rem;
}

/* Legal Text */
.legal-text {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

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

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.8rem;
}

.legal-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.legal-section h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    color: var(--primary-color);
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-section ul, .legal-section ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.legal-section a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    text-decoration: underline;
}

.contact-info-box {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.contact-info-box p {
    margin-bottom: 0.5rem;
}

.contact-info-box p:last-child {
    margin-bottom: 0;
}

/* Table Styles */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.legal-table th, .legal-table td {
    padding: 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.legal-table th {
    background-color: var(--light-gray);
    font-weight: 600;
}

.legal-table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .legal-container {
        grid-template-columns: 1fr;
    }
    
    .legal-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .legal-nav {
        margin-bottom: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    .legal-hero {
        height: 250px;
    }
    
    .legal-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .legal-text {
        padding: 1.5rem;
    }
    
    .legal-section h2 {
        font-size: 1.6rem;
    }
    
    .legal-section h3 {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 576px) {
    .legal-hero-content h1 {
        font-size: 2rem;
    }
    
    .legal-date {
        font-size: 1rem;
    }
    
    .legal-text {
        padding: 1.2rem;
    }
    
    .legal-section h2 {
        font-size: 1.4rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
    
    .legal-table th, .legal-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}