/* ── Legal pages (privacidad, cookies, mapa-web) ─────────────────────────── */

.legal-hero {
    background: linear-gradient(135deg, #003d28 0%, #006847 100%);
    padding: 40px 5%;
}
.legal-hero-inner h1 {
    font-size: clamp(22px, 4vw, 36px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    font-family: 'Inter', -apple-system, sans-serif;
}
.legal-hero-inner p {
    color: rgba(255,255,255,.75);
    font-size: 14px;
    margin: 0;
}

/* Navbar verde en páginas de guías: se funde con el hero */
.header-guia .navbar {
    background-color: #003d28 !important;
}

.guia-page-hero {
    background: linear-gradient(135deg, #003d28 0%, #006847 100%);
    padding: 28px 5% 24px;
    text-align: center;
}
.guia-page-hero h1 {
    font-size: clamp(20px, 4vw, 32px);
    font-weight: 800;
    color: #fff;
    margin: 0;
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.2;
}

.legal-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 5% 60px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.legal-section {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid #f0f0f0;
}
.legal-section:last-child { border-bottom: none; }

.legal-section h2 {
    font-size: clamp(17px, 3vw, 22px);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 14px;
}
.legal-section h3 {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 18px 0 8px;
}
.legal-section p {
    font-size: 15px;
    color: #444;
    line-height: 1.75;
    margin: 0 0 10px;
}
.legal-section a {
    color: #006847;
    text-decoration: underline;
}
.legal-section a:hover { color: #004d32; }
.legal-section ul {
    padding-left: 1.4rem;
    margin: 8px 0 12px;
}
.legal-section ul li {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 6px;
}

/* ── Cookie table ─────────────────────────────────────────────────────────── */
.cookie-table-wrap { overflow-x: auto; margin: 12px 0; }
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 560px;
}
.cookie-table th {
    background: #006847;
    color: #fff;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
}
.cookie-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    vertical-align: top;
}
.cookie-table tr:nth-child(even) td { background: #f9fafb; }
.cookie-table code {
    background: #f0fdf4;
    color: #006847;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

/* ── Cookie type cards ────────────────────────────────────────────────────── */
.cookie-type-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 14px 0;
}
@media (min-width: 640px) {
    .cookie-type-grid { grid-template-columns: repeat(3, 1fr); }
}
.cookie-type-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}
.cookie-type-icon { font-size: 24px; margin-bottom: 8px; }
.cookie-type-card h3 { font-size: 14px; font-weight: 700; margin: 0 0 6px; color: #1a1a1a; }
.cookie-type-card p  { font-size: 13px; color: #555; margin: 0; line-height: 1.6; }

/* ── Cookie alert ─────────────────────────────────────────────────────────── */
.cookie-alert {
    margin-top: 14px;
    padding: 12px 16px;
    background: #fff8e1;
    border-left: 3px solid #f59e0b;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    color: #78350f;
    line-height: 1.5;
}

/* ── Sitemap ──────────────────────────────────────────────────────────────── */
.sitemap-section h2 { margin-bottom: 10px; }
.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sitemap-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 15px;
}
.sitemap-list li:last-child { border-bottom: none; }
.sitemap-list a {
    color: #006847;
    text-decoration: none;
    font-weight: 500;
}
.sitemap-list a:hover { text-decoration: underline; }

/* ── TOC (table of contents) ─────────────────────────────────────────────── */
.legal-toc {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 36px;
}
.legal-toc h2 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
}
.legal-toc ol {
    margin: 0;
    padding-left: 1.4rem;
}
.legal-toc li {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 4px;
}
.legal-toc a {
    color: #006847;
    text-decoration: none;
}
.legal-toc a:hover { text-decoration: underline; }

/* ── Info/feature cards grid ─────────────────────────────────────────────── */
.legal-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 18px 0;
}
@media (min-width: 560px) {
    .legal-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
.legal-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px;
}
.legal-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}
.legal-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 12px;
}
.btn-legal {
    display: inline-block;
    background: #006847;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background .2s;
}
.btn-legal:hover { background: #004d32; }

/* ── Data tables ─────────────────────────────────────────────────────────── */
.legal-table-container { overflow-x: auto; margin: 14px 0; }
.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 420px;
}
.legal-table th {
    background: #006847;
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}
.legal-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    vertical-align: top;
}
.legal-table tr:nth-child(even) td { background: #f9fafb; }

/* ── Section spacing within legal-container ──────────────────────────────── */
.legal-container section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
}
.legal-container section:last-of-type { border-bottom: none; }
.legal-container section h2 {
    font-size: clamp(17px, 3vw, 22px);
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 14px;
}
.legal-container section p,
.legal-container section li {
    font-size: 15px;
    color: #444;
    line-height: 1.75;
}
.legal-container section a { color: #006847; }
