/* Legal Pages Styling */

.legal-page {
    padding: 60px 0 100px;
    background-color: var(--white);
    min-height: 100vh;
}

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

.legal-header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.last-updated {
    font-size: 1rem;
    color: var(--gray);
    font-style: italic;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

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

.legal-section h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-blue);
}

.legal-section h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 1.25rem;
}

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

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

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

.legal-section li {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
}

.legal-section li ul,
.legal-section li ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.legal-section li li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.legal-section strong {
    font-weight: 600;
    color: var(--dark-blue);
}

.legal-section a {
    color: var(--primary-blue);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: var(--secondary-blue);
}

/* Contact Box */
.contact-box {
    background-color: var(--light-gray);
    border-left: 4px solid var(--primary-blue);
    padding: 24px;
    margin: 1.5rem 0;
    border-radius: 8px;
}

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

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

/* Cookie Table */
.cookie-table {
    margin: 2rem 0;
    overflow-x: auto;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.cookie-table thead {
    background-color: var(--primary-blue);
    color: var(--white);
}

.cookie-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.cookie-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
    color: var(--dark-gray);
}

.cookie-table tbody tr:last-child td {
    border-bottom: none;
}

.cookie-table tbody tr:hover {
    background-color: var(--light-gray);
}

/* Responsive Design for Legal Pages */
@media (max-width: 768px) {
    .legal-page {
        padding: 40px 0 60px;
    }

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

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

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

    .legal-section p,
    .legal-section li {
        font-size: 1rem;
    }

    .legal-section ul,
    .legal-section ol {
        margin-left: 1.25rem;
    }

    .cookie-table {
        font-size: 0.875rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 1.75rem;
    }

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

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

    .contact-box {
        padding: 16px;
    }
}
