*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #111;
    background: #fff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: #111; }
.container { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ---------- Home ---------- */
.home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.home__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}
.home__logo { width: min(640px, 90vw); height: auto; }
.social {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    list-style: none;
    padding: 0;
}
.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid #111;
    border-radius: 50%;
    color: #111;
    transition: background .2s, color .2s, transform .2s;
}
.social a:hover, .social a:focus-visible {
    background: #111;
    color: #fff;
    transform: translateY(-2px);
}
.social svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Footer ---------- */
.site-footer {
    padding: 24px;
    text-align: center;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #eee;
}
.site-footer p { margin: 0 0 6px; }
.site-footer nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.site-footer a { color: #666; text-decoration: none; }
.site-footer a:hover { color: #111; text-decoration: underline; }

/* ---------- Legal header ---------- */
.legal-header {
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    position: sticky;
    top: 0;
    z-index: 10;
}
.legal-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.legal-header__logo img { display: block; height: 52px; width: auto; }
.legal-header__nav { display: flex; gap: 20px; font-size: 15px; }
.legal-header__nav a { text-decoration: none; color: #555; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.legal-header__nav a:hover, .legal-header__nav a.active { color: #111; border-bottom-color: #111; }

/* ---------- Legal content ---------- */
.legal { padding: 48px 0 64px; }
.legal h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 8px; }
.legal .updated { color: #666; font-size: 14px; margin: 0 0 32px; }
.legal h2 { font-size: 1.25rem; margin: 40px 0 12px; padding-top: 8px; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal .toc {
    background: #f6f6f6;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 16px;
}
.legal .toc strong { display: block; margin-bottom: 8px; }
.legal .toc ol { margin: 0; padding-left: 20px; }
.legal .toc a { text-decoration: none; }
.legal .toc a:hover { text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { border: 1px solid #e2e2e2; padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: #f6f6f6; width: 32%; }

@media (max-width: 600px) {
    .legal-header .container { flex-direction: column; }
    .legal-header__logo img { height: 42px; }
    .legal h1 { font-size: 1.6rem; }
}

/* ---------- Mantenimiento: enlace para entrar ---------- */
.home__acceso { margin: 22px 0 0; }
.home__acceso a { font-weight: 700; color: #555; text-decoration: none; border-bottom: 1px solid #ccc; padding-bottom: 1px; }
.home__acceso a:hover { color: #111; border-color: #111; }
