/* ================================================
   DR. OULKADI - ESTILOS PÁGINAS LEGALES
   ================================================ */

/* Navbar solid para páginas internas */
.navbar--solid {
    background: var(--bg-dark);
    position: relative;
}

/* Legal Page Layout */
.legal-page {
    padding-top: 2rem;
    padding-bottom: 4rem;
    background: var(--bg-light);
    min-height: 60vh;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.legal-header {
    text-align: center;
    padding: 3rem 0 2rem;
    border-bottom: 2px solid var(--color-primary-light);
    margin-bottom: 3rem;
}

.legal-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.legal-updated {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Legal Sections */
.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(201, 168, 108, 0.3);
}

.legal-section h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-section p {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.legal-section ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.legal-section a {
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-decoration-color: rgba(201, 168, 108, 0.4);
    transition: color var(--transition-fast);
}

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

/* Data Grid */
.legal-data-grid {
    display: grid;
    gap: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 1.5rem 0;
}

.legal-data-item {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-data-item:last-child {
    border-bottom: none;
}

.legal-data-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary-dark);
    margin-bottom: 0.25rem;
}

.legal-data-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Legal Tables */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.88rem;
    background: #fff;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-table thead th {
    background: var(--color-secondary);
    color: var(--text-light);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.legal-table tbody td {
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    vertical-align: top;
    line-height: 1.6;
}

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

.legal-table tbody tr:hover td {
    background: rgba(201, 168, 108, 0.05);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 1.25rem 2rem;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner__text {
    flex: 1;
    min-width: 280px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.cookie-banner__text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-banner__buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.cookie-btn--accept {
    background: var(--color-primary);
    color: var(--bg-dark);
}

.cookie-btn--accept:hover {
    background: var(--color-accent);
}

.cookie-btn--reject {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn--reject:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

.cookie-btn--settings {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    padding: 0.6rem 0.5rem;
}

.cookie-btn--settings:hover {
    color: var(--text-light);
}

/* Footer credentials */
.footer-credentials {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
    line-height: 1.7;
}

/* Footer legal active link */
.footer-legal a.active {
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 600px) {
    .legal-container {
        padding: 0 1.25rem;
    }

    .legal-header {
        padding: 2rem 0 1.5rem;
    }

    .legal-table {
        display: block;
        overflow-x: auto;
    }

    .cookie-banner {
        flex-direction: column;
        padding: 1.25rem 1.5rem;
        align-items: stretch;
    }

    .cookie-banner__buttons {
        flex-direction: column;
    }

    .cookie-btn {
        text-align: center;
    }
}
