/* ==========================================================================
   PAGINAS LEGALES DE SYNCROAPP — Material You (2026-11-02)
   Compartido por terminos, privacidad, DPA y reembolsos. Mismo sistema que
   /mis-apps (violeta de la marca): superficie tonal, esquinas grandes, barra
   flotante en pastilla. El texto legal no se toca; solo el marco visual.
   Fuentes: Bricolage Grotesque (titulos) y Figtree (cuerpo), cargadas en el HTML.
   ========================================================================== */
:root {
    --bg: #FBF9FF; --surface: #FFFFFF; --cont: #E5DFFF; --cont-tx: #1D0F5C;
    --line: #E4DFF2; --ink: #1B1A22; --muted: #4A4755; --faint: #77737F;
    --pri: #5A48B4; --pri-d: #4A3A9C; --tonal: #F1EEFA;
    --warn: #FFDFA8; --warn-tx: #2B1700;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Figtree', system-ui, sans-serif; background: var(--bg); color: var(--ink);
    line-height: 1.75; margin: 0; -webkit-font-smoothing: antialiased;
}

/* Barra flotante en pastilla */
nav {
    position: sticky; top: 14px; z-index: 100; margin: 14px auto 0; max-width: 960px;
    width: calc(100% - 32px); background: rgba(241,238,250,.92);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 0; border-radius: 30px; padding: 0 12px 0 22px; height: 58px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px;
    font-family: 'Bricolage Grotesque', 'Figtree', sans-serif; font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em;
}
.nav-logo svg { width: 22px; height: 22px; stroke: var(--pri); }
.nav-back {
    color: var(--cont-tx); background: var(--cont); text-decoration: none; font-size: .85rem; font-weight: 700;
    padding: 10px 18px; border-radius: 999px;
}
.nav-back:hover { filter: brightness(.96); }

/* Contenido */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
h1 {
    font-family: 'Bricolage Grotesque', 'Figtree', sans-serif; font-weight: 800;
    font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.04; letter-spacing: -.04em; margin: 0 0 .6rem; color: var(--ink);
}
.fecha { color: var(--faint); font-size: .85rem; margin-bottom: 2rem; }
h2 {
    font-family: 'Bricolage Grotesque', 'Figtree', sans-serif; font-weight: 800;
    font-size: 1.3rem; letter-spacing: -.025em; margin: 2.4rem 0 .6rem; color: var(--ink);
}
h3 { font-size: 1.05rem; font-weight: 800; margin: 1.6rem 0 .4rem; color: var(--ink); }
p, li { color: var(--muted); font-size: .96rem; margin-bottom: .8rem; }
ul, ol { padding-left: 1.5rem; }
strong { color: var(--ink); }
a { color: var(--pri); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
a:hover { color: var(--pri-d); }
code { font-size: .86em; background: var(--cont); color: var(--cont-tx); padding: .1rem .45rem; border-radius: 8px; }

/* Avisos importantes: relleno tonal, sin filete */
.callout {
    background: var(--warn); color: var(--warn-tx); padding: 1rem 1.3rem; border-radius: 22px; margin: 1.2rem 0;
}
.callout p, .callout li, .callout strong { color: var(--warn-tx); }
.callout.success { background: #B3EBD4; color: #00210F; }
.callout.success p, .callout.success strong { color: #00210F; }

/* Tablas */
.tabla-scroll { overflow-x: auto; border-radius: 20px; }
.tabla-datos {
    width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.2rem 0;
    font-size: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.tabla-datos th, .tabla-datos td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabla-datos th { background: var(--cont); color: var(--cont-tx); font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.tabla-datos td { color: var(--muted); }
.tabla-datos tr:last-child td { border-bottom: 0; }

footer {
    text-align: center; padding: 2rem 1rem; background: var(--tonal); color: var(--faint);
    font-size: .82rem; border-radius: 32px 32px 0 0; margin-top: 2rem;
}
footer a { font-weight: 700; }
.text-xs { font-size: .8rem; } .text-gray-500 { color: var(--faint); }

/* ── Reembolsos (refund-policy.html): estructura propia (.hero/.doc/.doc-table/.cta-box), mismo sistema ── */
body .hero { text-align: left; max-width: 760px; margin: 0 auto; padding: 56px 24px 24px; background: none; }
body .hero-badge { background: var(--cont); color: var(--cont-tx); border: 0; border-radius: 999px; padding: 6px 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
body .hero h1 { font-family: 'Bricolage Grotesque', 'Figtree', sans-serif; font-weight: 800; letter-spacing: -.04em; color: var(--ink); background: none; -webkit-text-fill-color: var(--ink); }
body .hero p { color: var(--muted); }
body .doc { max-width: 760px; margin: 0 auto; }
body .doc h2 { font-family: 'Bricolage Grotesque', 'Figtree', sans-serif; font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
body .doc h2::before { display: none; }
body .doc h3 { color: var(--ink); font-weight: 800; }
body .doc p, body .doc li { color: var(--muted); }
body .doc a { color: var(--pri); font-weight: 600; }
body .doc-table { border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
body .doc-table th { background: var(--cont); color: var(--cont-tx); font-weight: 800; }
body .doc-table th, body .doc-table td { border-color: var(--line); color: var(--muted); }
body .doc-table th { color: var(--cont-tx); }
body .callout.warning { background: var(--warn); border: 0; color: var(--warn-tx); }
body .callout.warning strong, body .callout.warning p { color: var(--warn-tx); }
body .callout.success { background: #B3EBD4; border: 0; color: #00210F; }
body .callout.success strong, body .callout.success p { color: #00210F; }
body .cta-box { background: var(--cont); border: 0; border-radius: 32px; color: var(--cont-tx); }
body .cta-box h3, body .cta-box p { color: var(--cont-tx); }
body .cta-box a { background: var(--pri); color: #fff; border-radius: 999px; box-shadow: none; text-decoration: none; }
body .nav-logo { background: none; -webkit-text-fill-color: var(--ink); color: var(--ink); }
/* Los <strong> dentro de un aviso van dentro de la frase (antes cortaban el parrafo en bloques) */
body .callout strong { display: inline; font-size: inherit; text-transform: none; letter-spacing: 0; margin: 0; }
