/* ============================================
   PRIVACY POLICY PAGE — css/politicas.css
   ============================================ */

/* ── Hero ────────────────────────────────────── */
.politicas-hero .gategory-hero-img {
    background: linear-gradient(155deg, #0d1520 0%, #060c14 100%);
    height: 46vh;
    min-height: 250px;
}

.politicas-hero .hero-entrada-content {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.06) 0%,
        rgba(0, 0, 0, 0.02) 30%,
        rgba(8, 15, 28, 0.55) 70%,
        rgba(6, 12, 20, 0.82) 100%
    );
}

.terminos-hero .gategory-hero-img {
    background: linear-gradient(155deg, var(--color-secundario) 0%, #001500 100%);
    height: 46vh;
    min-height: 250px;
}

.terminos-hero .hero-entrada-content {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.08) 0%,
        rgba(0, 0, 0, 0.04) 30%,
        rgba(0, 20, 0, 0.55) 70%,
        rgba(0, 15, 0, 0.82) 100%
    );
}

/* ── Legal meta bar ──────────────────────────── */
.politicas-meta-bar {
    background: #f8f9fb;
    border-bottom: 1px solid #e4e7ed;
    padding: 14px 0;
}

.politicas-meta-inner {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.politicas-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    color: #555;
    padding: 4px 0;
}

.politicas-meta-item svg {
    width: 14px;
    height: 14px;
    color: var(--color-logo1, #007a00);
    flex-shrink: 0;
}

.politicas-meta-item a {
    color: var(--color-logo1, #007a00);
    text-decoration: none;
    font-weight: 600;
}

.politicas-meta-item a:hover {
    text-decoration: underline;
}

.politicas-meta-sep {
    padding: 0 14px;
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1;
}

/* ── Page body ───────────────────────────────── */
.politicas-page {
    padding: 48px 0 80px;
}

.politicas-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
}

/* ── TOC sidebar ─────────────────────────────── */
.politicas-toc {
    position: sticky;
    top: 90px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    padding: 20px 0;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.politicas-toc-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0 18px 14px;
    background: none;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--color-logo1, #007a00);
    text-align: left;
}

.politicas-toc-toggle svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.politicas-toc-list {
    list-style: none;
    padding: 10px 0 4px;
    margin: 0;
    max-height: 65vh;
    overflow-y: auto;
}

.politicas-toc-list::-webkit-scrollbar { width: 3px; }
.politicas-toc-list::-webkit-scrollbar-track { background: transparent; }
.politicas-toc-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

.politicas-toc-list li a {
    display: block;
    padding: 6px 18px;
    font-size: 0.82rem;
    color: #555;
    text-decoration: none;
    line-height: 1.4;
    border-left: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.politicas-toc-list li a:hover {
    color: var(--color-logo1, #007a00);
    background: #f5faf5;
}

.politicas-toc-list li.toc-h3 a {
    padding-left: 30px;
    font-size: 0.78rem;
    color: #888;
}

.politicas-toc-list li.toc-active > a {
    color: var(--color-logo1, #007a00);
    border-left-color: var(--color-logo1, #007a00);
    background: #f5faf5;
    font-weight: 600;
}

/* ── Content area ────────────────────────────── */
.politicas-content {
    min-width: 0;
}

/* Override WP inline color styles */
.politicas-content h1,
.politicas-content h2,
.politicas-content h3,
.politicas-content h4 {
    color: #1a1a1a !important;
}

/* Hide the redundant title block at top of content */
.politicas-content > h1:first-child,
.politicas-content > h1:first-child + h1,
.politicas-content > h1:first-child + h1 + h1,
.politicas-content > p.text-align-center:first-of-type {
    display: none;
}

/* h2: main sections */
.politicas-content h2 {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 40px 0 14px !important;
    padding: 16px 18px !important;
    background: #f7faf7 !important;
    border-left: 4px solid var(--color-logo1, #007a00) !important;
    border-radius: 0 8px 8px 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.politicas-content h2:first-of-type {
    margin-top: 0 !important;
}

/* h3: subsections */
.politicas-content h3 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--color-secundario) !important;
    margin: 28px 0 10px !important;
    padding-bottom: 6px !important;
    border-bottom: 1px solid #e8ede8 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.politicas-content h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-logo1, #007a00);
    flex-shrink: 0;
}

/* Paragraphs */
.politicas-content p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.75;
    margin-bottom: 1em;
}

/* Remove empty spacing paragraphs */
.politicas-content p:empty,
.politicas-content p br:only-child {
    display: none;
}

/* Lists */
.politicas-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.politicas-content ul li {
    position: relative;
    padding: 10px 14px 10px 28px;
    font-size: 0.93rem;
    color: #444;
    line-height: 1.65;
    background: #fafcfa;
    border-radius: 8px;
    border-left: 2px solid #d4e8d4;
}

.politicas-content ul li::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 18px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-logo1, #007a00);
}

/* Links inside content */
.politicas-content a {
    color: var(--color-logo1, #007a00);
    text-decoration: none;
    font-weight: 500;
}

.politicas-content a:hover {
    text-decoration: underline;
}

/* Contact CTA at bottom */
.politicas-contact-cta {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: #f5faf5;
    border: 1px solid #d4e8d4;
    border-radius: 14px;
    padding: 24px 22px;
    margin-top: 44px;
}

.politicas-contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-secundario);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.politicas-contact-icon svg {
    width: 20px;
    height: 20px;
}

.politicas-contact-cta strong {
    display: block;
    font-size: 0.95rem;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.politicas-contact-cta p {
    font-size: 0.85rem !important;
    color: #666 !important;
    margin: 0 0 8px !important;
}

.politicas-contact-cta a {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-logo1, #007a00) !important;
    text-decoration: none !important;
}

.politicas-contact-cta a:hover {
    text-decoration: underline !important;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 960px) {
    .politicas-layout {
        grid-template-columns: 210px 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .politicas-page {
        padding: 28px 0 56px;
    }

    .politicas-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .politicas-toc {
        position: static;
    }

    .politicas-toc-list {
        max-height: 300px;
    }

    .politicas-meta-inner {
        gap: 8px 0;
    }

    .politicas-meta-sep {
        display: none;
    }

    .politicas-meta-item {
        width: 50%;
    }

    .politicas-content h2 {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .politicas-meta-item {
        width: 100%;
    }

    .politicas-contact-cta {
        flex-direction: column;
    }
}
