/* ===== LEGAL PAGES STYLES ===== */

/* ===== LEGAL HEADER ===== */
.legal-header {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.legal-header h1 {
    color: white;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.last-updated {
    color: var(--light-gray);
    font-size: 0.9rem;
    margin: 0;
}

.back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--highlight-color);
    transform: translateX(-5px);
}

/* ===== LEGAL CONTENT ===== */
.legal-content {
    padding: 60px 0;
    background: white;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--highlight-color);
    padding-bottom: 10px;
}

.legal-section h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-color);
}

.legal-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

.legal-section a {
    color: var(--highlight-color);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--primary-color);
}

/* ===== CONTACT INFO IN LEGAL PAGES ===== */
.contact-info {
    background: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--highlight-color);
    width: 20px;
    text-align: center;
}

/* ===== LEGAL FOOTER ===== */
.legal-footer {
    background: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 3rem;
    text-align: center;
}

.legal-footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.legal-footer strong {
    color: var(--primary-color);
}

/* ===== LEGAL FOOTER MAIN ===== */
.legal-footer-main {
    background: var(--primary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
}

.legal-footer-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.legal-footer-main p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--highlight-color);
}

.footer-links .separator {
    color: var(--light-gray);
}

/* ===== HIGHLIGHTED SECTIONS ===== */
.highlight-box {
    background: linear-gradient(135deg, var(--highlight-color), var(--primary-color));
    color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.highlight-box::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.highlight-box h3,
.highlight-box p {
    color: white;
    position: relative;
    z-index: 1;
}

.highlight-box h3 {
    margin-bottom: 1rem;
}

/* ===== DEFINITION LISTS ===== */
.definition-list {
    background: var(--light-gray);
    padding: 25px;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.definition-list dt {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.definition-list dd {
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

.definition-list dd:last-child {
    margin-bottom: 0;
}

/* ===== TABLE STYLES ===== */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.legal-table th,
.legal-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.legal-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.legal-table tr:hover {
    background: var(--light-gray);
}

.legal-table tr:last-child td {
    border-bottom: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .legal-header {
        padding: 30px 0;
    }
    
    .legal-header h1 {
        font-size: 2rem;
    }
    
    .back-link {
        position: relative;
        top: auto;
        left: auto;
        margin-bottom: 20px;
        justify-content: center;
    }
    
    .legal-content {
        padding: 40px 0;
    }
    
    .legal-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-section h3 {
        font-size: 1.2rem;
    }
    
    .contact-info {
        padding: 20px;
    }
    
    .legal-footer {
        padding: 20px;
    }
    
    .legal-footer-main .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .highlight-box {
        padding: 20px;
    }
    
    .definition-list {
        padding: 20px;
    }
    
    .legal-table {
        font-size: 0.9rem;
    }
    
    .legal-table th,
    .legal-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 1.8rem;
    }
    
    .legal-content {
        padding: 30px 0;
    }
    
    .legal-section {
        margin-bottom: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
    
    .legal-section ul {
        padding-left: 1.5rem;
    }
    
    .contact-info {
        padding: 15px;
    }
    
    .legal-footer {
        padding: 15px;
    }
    
    .highlight-box {
        padding: 15px;
    }
    
    .definition-list {
        padding: 15px;
    }
    
    .legal-table {
        font-size: 0.85rem;
    }
    
    .legal-table th,
    .legal-table td {
        padding: 8px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .legal-header {
        background: white !important;
        color: black !important;
        border-bottom: 2px solid var(--primary-color);
    }
    
    .legal-header h1 {
        color: black !important;
    }
    
    .back-link {
        display: none !important;
    }
    
    .legal-content {
        padding: 20px 0;
    }
    
    .highlight-box {
        background: var(--light-gray) !important;
        color: black !important;
        border: 1px solid var(--border-color);
    }
    
    .highlight-box h3,
    .highlight-box p {
        color: black !important;
    }
    
    .legal-footer-main {
        background: white !important;
        color: black !important;
        border-top: 1px solid var(--border-color);
    }
    
    .footer-links a {
        color: black !important;
    }
    
    .legal-table {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
    
    .legal-table th {
        background: var(--light-gray) !important;
        color: black !important;
    }
}