/* ==========================================================
   FACILÍTAME - PÁGINAS ESTÁTICAS
   Para: Política de privacidad, Términos, Cookies, Legal
   Versión: 2.0 - Estilo discreto
   ========================================================== */

:root {
    --color-main: #00c2cb;
    --color-main-dark: #00a8b0;
    --color-main-light: rgba(0, 194, 203, 0.08);
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-bg: #f8fafc;
    --color-white: #ffffff;
    --color-border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8fafc;
    min-height: 100vh;
    color: var(--color-text);
    line-height: 1.7;
}

/* ==========================================================
   LEGAL CONTAINER (Principal)
   ========================================================== */

.legal-container {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 2.5rem;
    border: 1px solid var(--color-border);
}

/* Header discreto */
.legal-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-header h1 {
    color: var(--color-text);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.375rem 0;
}

.legal-header p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
    margin: 0;
}

/* Botón volver discreto */
.legal-container .back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    padding: 0;
    background: none !important;
    box-shadow: none !important;
    transition: color 0.2s ease;
}

.legal-container .back-button:hover {
    color: var(--color-main);
    background: none !important;
    box-shadow: none !important;
}

.legal-container .back-button svg {
    width: 16px;
    height: 16px;
}

/* Footer discreto */
.legal-footer {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.8125rem;
}

/* ==========================================================
   TIPOGRAFÍA
   ========================================================== */

h2 {
    color: var(--color-text);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem 0;
    padding-bottom: 0;
    border-bottom: none;
    display: block;
}

h2:first-of-type {
    margin-top: 0;
}

h3 {
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem 0;
}

p {
    text-align: left;
    margin-bottom: 0.875rem;
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

/* ==========================================================
   INFO TABLE (datos de empresa)
   ========================================================== */

.info-table {
    background: var(--color-bg);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid var(--color-border);
}

.info-table table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 0.5rem 0.75rem;
    vertical-align: top;
    font-size: 0.875rem;
}

.info-table td:first-child {
    font-weight: 600;
    color: var(--color-text);
    width: 160px;
    white-space: nowrap;
}

.info-table td:last-child {
    color: var(--color-text-light);
}

.info-table tr:not(:last-child) td {
    border-bottom: 1px solid var(--color-border);
}

/* Tabla con thead para cookies */
.info-table thead th {
    background: var(--color-bg);
    color: var(--color-text);
    font-weight: 600;
    padding: 0.75rem;
    text-align: left;
    font-size: 0.8125rem;
    border-bottom: 2px solid var(--color-border);
}

.info-table tbody td {
    background: white;
}

/* ==========================================================
   LISTS
   ========================================================== */

ul {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
    list-style: disc;
}

li {
    position: relative;
    padding-left: 0;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

li::before {
    display: none;
}

li::marker {
    color: var(--color-main);
}

/* ==========================================================
   LINKS
   ========================================================== */

a {
    color: var(--color-main-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-main);
    text-decoration: underline;
}

/* ==========================================================
   HIGHLIGHT BOX
   ========================================================== */

.highlight-box {
    background: var(--color-main-light);
    border-left: 3px solid var(--color-main);
    padding: 1rem 1.25rem;
    border-radius: 0 6px 6px 0;
    margin: 1.25rem 0;
}

.highlight-box p {
    margin-bottom: 0;
    color: var(--color-text);
    font-size: 0.875rem;
}

/* ==========================================================
   COMPANY NAME
   ========================================================== */

.company-name {
    color: var(--color-text);
    font-weight: 600;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 768px) {
    .legal-container {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 8px;
    }

    .legal-header h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1rem;
    }

    .info-table td:first-child {
        width: auto;
        display: block;
        padding-bottom: 0.25rem;
    }

    .info-table td:last-child {
        display: block;
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    .legal-container {
        padding: 1.25rem;
        margin: 0.5rem;
    }

    .legal-header h1 {
        font-size: 1.375rem;
    }

    .info-table {
        padding: 0.75rem;
    }
}

/* ==========================================================
   ACCESSIBILITY
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .info-table {
        border: 2px solid var(--color-text);
    }

    a {
        text-decoration: underline;
    }
}

/* ==========================================================
   SITEMAP PAGE
   ========================================================== */

.sitemap-section {
    margin-bottom: 1.5rem;
}

.sitemap-section h2 {
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
    display: block;
}

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-list li {
    padding: 0.625rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.sitemap-list li::before {
    display: none;
}

.sitemap-list li:last-child {
    border-bottom: none;
}

.sitemap-list a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.sitemap-list a:hover {
    color: var(--color-main);
}

.sitemap-list .icon {
    width: 28px;
    height: 28px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.sitemap-list a:hover .icon {
    background: var(--color-main-light);
    border-color: var(--color-main);
    color: var(--color-main);
}

.sitemap-list .description {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    font-weight: 400;
    margin-left: auto;
}

@media (max-width: 768px) {
    .sitemap-list .description {
        display: none;
    }
}
