@font-face {
    font-family: 'New Kansas';
    src: url('assets/fonts/New Kansas Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'New Kansas';
    src: url('assets/fonts/New Kansas Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --forest: #173F35;
    --forest-deep: #0C2820;
    --forest-soft: #1E5143;
    --mint: #C4EBCE;
    --mint-soft: #E5F5E9;
    --mint-whisper: #F1F8F3;
    --gris: #F2F1F0;
    --ink: #0A0A0A;
    --mute: #57534E;
    --line: rgba(23, 63, 53, 0.08);
    --bg: #FDFCF9;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

nav.legal-nav {
    padding: 18px 40px;
    display: flex; justify-content: space-between; align-items: center;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(20px) saturate(1.2);
    background: rgba(253,252,249,0.92);
}
nav.legal-nav .brand { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--forest); }
nav.legal-nav .brand img { height: 28px; width: auto; border-radius: 6px; }
nav.legal-nav .back { font-size: 13px; color: var(--mute); font-weight: 500; transition: color 0.2s; }
nav.legal-nav .back:hover { color: var(--forest); }

.legal-hero {
    padding: 100px 40px 60px;
    background: var(--forest);
    color: var(--white);
}
.legal-hero .wrap { max-width: 820px; margin: 0 auto; }
.legal-hero .eyebrow {
    font-size: 11px; font-weight: 700; letter-spacing: 0.3em;
    text-transform: uppercase; color: var(--mint); opacity: 0.85;
    margin-bottom: 22px; display: inline-block;
}
.legal-hero h1 {
    font-family: 'New Kansas', Georgia, serif; font-weight: 400;
    font-size: clamp(40px, 5.5vw, 68px);
    line-height: 1.05; letter-spacing: -0.02em;
    color: var(--white);
    margin-bottom: 20px;
}
.legal-hero .vigencia {
    font-size: 14px; color: rgba(196,235,206,0.78);
    font-weight: 500;
}

.legal-body {
    max-width: 820px; margin: 0 auto;
    padding: 80px 40px 120px;
}
.legal-body h2 {
    font-family: 'New Kansas', Georgia, serif; font-weight: 400;
    font-size: clamp(22px, 2.6vw, 30px);
    color: var(--forest);
    line-height: 1.18;
    margin-top: 56px;
    margin-bottom: 18px;
    letter-spacing: -0.012em;
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 {
    font-family: 'Urbanist', sans-serif; font-weight: 600;
    font-size: 16px; color: var(--forest);
    margin-top: 24px; margin-bottom: 10px;
}
.legal-body p {
    font-size: 16px; color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.7;
    opacity: 0.88;
}
.legal-body ul {
    margin-bottom: 18px; padding-left: 22px;
}
.legal-body ul li {
    font-size: 16px; color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.65;
    opacity: 0.88;
}
.legal-body strong { font-weight: 600; color: var(--forest); }
.legal-body a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--forest-soft); }

.legal-related {
    max-width: 820px; margin: 0 auto;
    padding: 0 40px 100px;
    border-top: 1px solid var(--line);
    padding-top: 40px;
}
.legal-related h4 {
    font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--forest); opacity: 0.55;
    margin-bottom: 18px;
}
.legal-related .links { display: flex; gap: 28px; flex-wrap: wrap; }
.legal-related .links a {
    font-size: 14px; color: var(--forest); font-weight: 500;
    border-bottom: 1px solid transparent; padding-bottom: 2px;
    transition: border-color 0.2s;
}
.legal-related .links a:hover { border-bottom-color: var(--forest); }

footer.legal-footer {
    background: var(--forest-deep);
    color: rgba(255,255,255,0.55);
    padding: 36px 40px;
    font-size: 13px;
    text-align: center;
}
footer.legal-footer a { color: var(--mint); opacity: 0.8; transition: opacity 0.2s; }
footer.legal-footer a:hover { opacity: 1; }

@media (max-width: 720px) {
    nav.legal-nav { padding: 14px 20px; }
    .legal-hero { padding: 70px 24px 50px; }
    .legal-body { padding: 60px 24px 80px; }
    .legal-related { padding-left: 24px; padding-right: 24px; }
}

/* S183 Aviso v1.2 (diamante 10 lentes) — Carta Folklore + pill versión + changelog */

.version-pill {
    display: inline-block;
    background: var(--mint);
    color: var(--forest-deep);
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    margin-left: 10px;
    text-decoration: none;
    transition: opacity 0.2s;
    vertical-align: middle;
}
.version-pill:hover { opacity: 0.85; }

.carta-folklore {
    max-width: 880px;
    margin: -40px auto 24px;
    padding: 24px 28px;
    background: var(--mint-whisper);
    border-left: 4px solid var(--mint);
    border-radius: 14px;
    font-family: 'Urbanist', sans-serif;
    color: var(--forest-deep);
    position: relative;
    z-index: 2;
}
.carta-folklore strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--forest);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.carta-folklore p {
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 14px;
    color: var(--forest-deep);
}
.carta-folklore a:not(.btn-guarda-copia) { color: var(--forest); text-decoration: underline; }
.carta-folklore .btn-guarda-copia {
    display: inline-block;
    background: var(--forest);
    color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}
.carta-folklore .btn-guarda-copia:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

#historial-versiones {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(23, 63, 53, 0.12);
}
.version-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 32px;
}
.version-list li {
    border-left: 3px solid var(--mint);
    padding: 12px 0 12px 18px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink);
}
.version-list time {
    display: block;
    font-family: 'Urbanist', sans-serif;
    color: var(--forest);
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
}
.version-list a { color: var(--forest); text-decoration: underline; }

@media (max-width: 720px) {
    .carta-folklore { margin: -20px 20px 24px; padding: 20px 22px; }
}
