/* Legal pages specific styles */

/* Legal Container */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
    min-height: calc(100vh - 140px);
}

.legal-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.legal-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.last-updated {
    color: var(--text-secondary);
    font-size: 1rem;
    font-style: italic;
    font-weight: 500;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-top: 15px;
}

/* Legal Content */
.legal-content {
    line-height: 1.8;
    color: var(--text-primary);
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

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

.legal-section p {
    margin-bottom: 15px;
    font-weight: 500;
    text-align: justify;
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 30px;
}

.legal-section li {
    margin-bottom: 8px;
    font-weight: 500;
}

.legal-section li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Contact Info */
.contact-info {
    background: var(--light-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    margin: 20px 0;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info strong {
    color: var(--primary-color);
}

/* Feature Grid (for About page) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.feature-item {
    background: var(--light-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
    text-align: center;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.value-item {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.value-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.value-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
    text-align: left;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.contact-item {
    background: var(--light-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
}

.contact-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-item p {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0;
    text-align: center;
}

/* Highlighted Sections */
.highlight-box {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 30px 0;
    text-align: center;
}

.highlight-box h3 {
    color: white;
    margin-bottom: 15px;
}

.highlight-box p {
    margin-bottom: 0;
    opacity: 0.9;
    text-align: center;
}

/* Table of Contents (if needed) */
.toc {
    background: var(--light-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.toc h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .legal-container {
        padding: 30px 15px;
    }

    .legal-header h1 {
        font-size: 2rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-section h3 {
        font-size: 1.2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .legal-section ul {
        padding-left: 20px;
    }

    .contact-info {
        padding: 20px;
    }

    .feature-item,
    .value-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .legal-container {
        padding: 20px 10px;
    }

    .legal-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .legal-header h1 {
        font-size: 1.8rem;
    }

    .legal-section {
        margin-bottom: 30px;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-section h3 {
        font-size: 1.1rem;
    }

    .legal-section p {
        text-align: left;
    }

    .contact-info {
        padding: 15px;
    }

    .feature-item,
    .value-item {
        padding: 15px;
    }

    .highlight-box {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .legal-container {
        max-width: none;
        padding: 0;
        background: white;
    }

    .legal-header {
        border-bottom: 2px solid #000;
    }

    .legal-section h2 {
        color: #000;
        border-bottom: 1px solid #000;
    }

    .feature-grid,
    .values-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .feature-item,
    .value-item,
    .contact-item {
        background: white;
        border: 1px solid #000;
        box-shadow: none;
    }

    .highlight-box {
        background: #f0f0f0;
        color: #000;
        border: 2px solid #000;
    }
}