/* ============================================
   LEGAL PAGES STYLES
   ============================================ */

/* Header solid for legal pages */
.header-solid {
    position: relative;
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(10, 37, 64, 0.08);
}

/* Legal page layout */
.legal-page {
    min-height: 70vh;
    padding: calc(80px + var(--spacing-lg)) 0 var(--spacing-xl);
    background-color: var(--color-white);
}

.legal-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto var(--spacing-lg);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    margin-bottom: 1.25rem;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: #0066cc;
    text-decoration: underline;
    transition: var(--transition-smooth);
}

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

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

.back-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-primary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--color-primary);
    transition: var(--transition-smooth);
    margin: 0 auto;
    display: block;
    width: fit-content;
}

.back-link:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding: calc(70px + var(--spacing-md)) 0 var(--spacing-lg);
    }
    
    .legal-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: var(--spacing-sm);
    }
    
    .legal-content {
        font-size: 1rem;
        padding: 0 1.5rem;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .legal-content h3 {
        font-size: 1.2rem;
        margin-top: 1.5rem;
    }
    
    .back-link {
        font-size: 0.95rem;
        padding: 0.65rem 1.25rem;
    }
}

/* Cookies table */
.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.cookies-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-family: var(--font-body);
}

.cookies-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(10, 37, 64, 0.1);
}

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

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

@media (max-width: 768px) {
    .cookies-table {
        font-size: 0.85rem;
    }
    
    .cookies-table th,
    .cookies-table td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Responsive table - scroll horizontally */
    .cookies-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 0 1rem;
    }
    
    .legal-content ul,
    .legal-content ol {
        padding-left: 1.5rem;
    }
    
    .cookies-table {
        font-size: 0.8rem;
    }
}

