/* ═══════════════════════════════════════════
   privacidad.css — Recetify Lab
   ═══════════════════════════════════════════ */

:root {
    --orange:      #F26522;
    --orange-hover:#d9551a;
    --orange-light:#fff3ec;
    --orange-pale: #fef9f6;
    --gray-bg:     #F5F5F5;
    --gray-border: #E0E0E0;
    --text:        #2c2c2c;
    --text-soft:   #666;
    --white:       #FFF;
    --radius:      10px;
    --shadow:      0 2px 12px rgba(0,0,0,.07);
    --tr:          .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body { background: var(--gray-bg); }

/* ── Wrapper ── */
.legal-wrapper {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 16px 60px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--text);
    line-height: 1.7;
}

/* ── Hero ── */
.legal-hero {
    text-align: center;
    padding: 48px 20px 36px;
}
.legal-icon { font-size: 3rem; display: block; margin-bottom: 12px; }
.legal-hero h1 {
    font-size: 2rem; font-weight: 800; color: var(--text);
    margin-bottom: 8px;
}
.legal-subtitle { font-size: .9rem; color: var(--text-soft); }

/* ── Card principal ── */
.legal-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px 44px;
    margin-bottom: 24px;
}

/* ── Intro ── */
.legal-intro {
    background: var(--orange-pale);
    border-left: 4px solid var(--orange);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 20px;
    margin-bottom: 32px;
    font-size: .95rem;
}
.legal-intro p { margin: 0; }

/* ── Tabla de contenido ── */
.legal-toc {
    background: var(--gray-bg);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 36px;
}
.toc-title {
    font-weight: 700; font-size: .8rem;
    text-transform: uppercase; letter-spacing: .08em;
    color: var(--orange); margin-bottom: 10px;
}
.legal-toc ol {
    margin: 0; padding-left: 20px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px;
}
.legal-toc li { font-size: .88rem; }
.legal-toc a {
    color: var(--text-soft); text-decoration: none;
    transition: color var(--tr);
}
.legal-toc a:hover { color: var(--orange); }

/* ── Secciones ── */
.legal-section {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--gray-border);
}
.legal-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.legal-section h2 {
    font-size: 1.15rem; font-weight: 700;
    color: var(--text); margin-bottom: 14px;
    display: flex; align-items: center; gap: 10px;
}
.section-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--orange); color: #fff;
    font-size: .78rem; font-weight: 700; flex-shrink: 0;
}

.legal-section p { font-size: .93rem; color: var(--text-soft); margin-bottom: 12px; }
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
    padding-left: 20px; margin-bottom: 12px;
}
.legal-section ul li {
    font-size: .93rem; color: var(--text-soft);
    margin-bottom: 6px; padding-left: 4px;
}
.legal-section strong { color: var(--text); }

/* ── Nota destacada ── */
.legal-note {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--orange-light);
    border: 1px solid #fdd9c4;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-top: 16px;
    font-size: .88rem;
}
.legal-note span { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.legal-note p { margin: 0; color: #8b4513; }
.legal-note.warn { background: #fff8e1; border-color: #ffe082; }
.legal-note.warn p { color: #7a5900; }

/* ── Grid terceros ── */
.thirds-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 12px; margin: 16px 0;
}
.third-item {
    background: var(--gray-bg); border-radius: var(--radius);
    padding: 14px 16px;
    display: flex; flex-direction: column; gap: 4px;
}
.third-item strong { font-size: .88rem; color: var(--text); }
.third-item span { font-size: .78rem; color: var(--text-soft); }

/* ── Grid derechos ── */
.rights-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; margin: 16px 0;
}
.right-item {
    background: var(--orange-pale);
    border: 1px solid #fdd9c4;
    border-radius: var(--radius);
    padding: 16px;
    display: flex; flex-direction: column; gap: 4px;
}
.right-icon { font-size: 1.4rem; }
.right-item strong { font-size: .9rem; color: var(--text); }
.right-item p { font-size: .82rem; color: var(--text-soft); margin: 0; }

/* ── Contact box ── */
.contact-box {
    display: flex; gap: 16px; align-items: center;
    background: var(--gray-bg); border-radius: var(--radius);
    padding: 18px 20px; margin-top: 12px;
    font-size: .95rem;
}
.contact-box span { font-size: 1.6rem; }
.contact-box div { display: flex; flex-direction: column; gap: 2px; }
.contact-box strong { color: var(--text); font-size: .9rem; }
.contact-box a {
    color: var(--orange); text-decoration: none; font-weight: 600;
    transition: color var(--tr);
}
.contact-box a:hover { color: var(--orange-hover); }

/* ── Footer links ── */
.legal-footer-links {
    text-align: center; font-size: .88rem;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    color: var(--text-soft);
}
.legal-footer-links a {
    color: var(--text-soft); text-decoration: none;
    transition: color var(--tr);
}
.legal-footer-links a:hover { color: var(--orange); }

/* ── Responsive ── */
@media (max-width: 640px) {
    .legal-card { padding: 24px 20px; }
    .legal-toc ol { grid-template-columns: 1fr; }
    .thirds-grid { grid-template-columns: 1fr; }
    .rights-grid { grid-template-columns: 1fr; }
    .legal-hero h1 { font-size: 1.6rem; }
}