/* Legal Pages Styling */

/* Page Header */
.page-header {
    background-image: linear-gradient(120deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 15px;
    animation: fadeInDown 0.5s ease-out;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease-out;
}

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

.legal-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease-out;
}

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

.legal-section h2 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-light);
    position: relative;
}

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

.legal-section p {
    color: var(--gray-color);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.legal-section ul li, 
.legal-section ol li {
    color: var(--gray-color);
    margin-bottom: 10px;
    line-height: 1.7;
    position: relative;
    padding-left: 5px;
}

.legal-section ul {
    list-style-type: disc;
}

.legal-section ol {
    list-style-type: decimal;
}

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

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

/* Policy Cards for Legal Page */
.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.policy-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.policy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.policy-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 1.8rem;
    transition: var(--transition);
}

.policy-card:hover .policy-icon {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.policy-card h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.policy-card p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.policy-card .btn {
    margin-top: auto;
}

/* Corporate Info */
.corporate-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.info-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.info-item h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.info-item p {
    margin-bottom: 0;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .legal-section {
        padding: 25px 20px;
    }
    
    .legal-section h2 {
        font-size: 1.6rem;
    }
    
    .legal-section h3 {
        font-size: 1.3rem;
    }
    
    .policies-grid {
        grid-template-columns: 1fr;
    }
}
