/**
 * Legal Pages Styles for Shemeza Safari Escapes
 * Used for Privacy Policy, Terms & Conditions, and other legal pages
 */

/* Legal Content Layout */
.legal-content {
    padding: 60px 0;
}

.legal-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.legal-sidebar {
    width: 100%;
    order: 1;
}

.legal-document {
    width: 100%;
    order: 2;
    background-color: var(--color-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Table of Contents */
.legal-toc {
    background-color: var(--color-bg-light);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.legal-toc h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    color: var(--color-primary);
    font-size: 1.5rem;
}

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

.legal-toc li {
    margin-bottom: 10px;
}

.legal-toc a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.legal-toc a:hover {
    color: var(--color-primary);
}

/* Legal Meta */
.legal-meta {
    background-color: var(--color-bg-light);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.legal-meta p {
    margin: 0;
}

.legal-meta .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Legal Document Content */
.legal-section {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

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

.legal-section h2 {
    font-family: 'Playfair Display', serif;
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.legal-section h3 {
    color: var(--color-text-dark);
    margin: 25px 0 15px;
    font-size: 1.3rem;
}

.legal-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.legal-section ul, 
.legal-section ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-section li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.legal-section a {
    color: var(--color-primary);
    text-decoration: none;
}

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

.contact-details {
    background-color: var(--color-bg-light);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.contact-details p {
    margin-bottom: 10px;
}

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

/* Print Styles */
@media print {
    header, 
    footer, 
    .legal-sidebar, 
    .page-header {
        display: none !important;
    }
    
    .legal-container {
        display: block;
    }
    
    .legal-document {
        width: 100%;
        box-shadow: none;
        padding: 0;
    }
    
    .legal-section {
        page-break-inside: avoid;
    }
}

/* Dark Mode Styles */
body.dark-mode .legal-document {
    background-color: var(--color-bg-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode .legal-toc,
body.dark-mode .legal-meta,
body.dark-mode .contact-details {
    background-color: var(--color-bg-dark-secondary);
}

/* Responsive Styles */
@media (min-width: 768px) {
    .legal-meta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .legal-meta .btn {
        flex: 1;
    }
}

@media (min-width: 992px) {
    .legal-container {
        flex-direction: row;
    }
    
    .legal-sidebar {
        width: 30%;
        order: 1;
        position: sticky;
        top: 100px;
        align-self: flex-start;
    }
    
    .legal-document {
        width: 70%;
        order: 2;
    }
}
