:root {
    --bg-top: #01030a;
    --bg-mid: #06111f;
    --bg-bottom: #000104;

    --card: #0b1220;
    --card-alt: #0f1a2d;
    --surface: #101a2b;
    --surface-2: #182438;

    --blue: #2563eb;
    --blue-bright: #3b82f6;
    --blue-glow: #60a5fa;
    --blue-soft: #93c5fd;

    --text-primary: #ffffff;
    --text-secondary: #a8b6cc;
    --text-muted: #6f819a;

    --border: rgba(96, 165, 250, 0.20);
    --border-strong: rgba(96, 165, 250, 0.42);

    --container: 1180px;
}


/* Base */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 5% 7%,
            rgba(37, 99, 235, 0.20),
            transparent 28%
        ),
        radial-gradient(
            circle at 95% 35%,
            rgba(59, 130, 246, 0.10),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            var(--bg-top),
            var(--bg-mid) 50%,
            var(--bg-bottom)
        );

    color: var(--text-primary);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.policy-block {
    scroll-margin-top: 110px;
}


/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;

    background: rgba(1, 3, 10, 0.88);
    border-bottom: 1px solid rgba(96, 165, 250, 0.12);

    backdrop-filter: blur(18px);
}

.header-content {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo {
    width: 62px;
    height: 62px;

    display: block;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1.15;
}

.brand-text strong {
    font-size: 20px;
}

.brand-text span {
    margin-top: 4px;

    color: var(--text-muted);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    position: relative;

    color: var(--text-secondary);
    font-size: 14px;

    transition: color 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--blue-soft);
}

.main-nav a.active::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;

    height: 2px;

    border-radius: 20px;

    background: var(--blue-glow);
}


/* Encabezado */

.privacy-hero {
    padding: 65px 0 52px;

    border-bottom: 1px solid rgba(96, 165, 250, 0.09);
}

.privacy-hero-content {
    max-width: 880px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 28px;

    color: var(--text-secondary);
    font-size: 13px;

    transition:
        color 180ms ease,
        transform 180ms ease;
}

.back-link:hover {
    color: var(--blue-soft);
    transform: translateX(-3px);
}

.back-link span {
    color: var(--blue-glow);
    font-size: 18px;
}

.eyebrow {
    display: block;

    color: var(--blue-glow);

    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.privacy-hero h1 {
    margin-top: 12px;

    font-size: clamp(44px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.hero-description {
    max-width: 750px;

    margin-top: 22px;

    color: var(--text-secondary);

    font-size: 17px;
    line-height: 1.75;
}

.last-update {
    display: inline-flex;

    margin-top: 25px;
    padding: 9px 14px;

    border-radius: 12px;
    border: 1px solid rgba(96, 165, 250, 0.22);

    background: rgba(37, 99, 235, 0.10);
    color: var(--blue-soft);

    font-size: 12px;
}


/* Contenido */

.policy-section {
    padding: 55px 0 72px;
}

.policy-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    align-items: start;
    gap: 35px;
}


/* Índice */

.policy-index {
    position: sticky;
    top: 108px;

    padding: 20px;

    border-radius: 20px;
    border: 1px solid var(--border);

    background: rgba(11, 18, 32, 0.86);
}

.policy-index > span {
    display: block;

    margin-bottom: 14px;

    color: var(--blue-glow);

    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.policy-index nav {
    display: grid;
    gap: 4px;
}

.policy-index a {
    padding: 8px 10px;

    border-radius: 10px;

    color: var(--text-muted);
    font-size: 12px;

    transition:
        color 180ms ease,
        background 180ms ease;
}

.policy-index a:hover {
    background: var(--surface);
    color: var(--blue-soft);
}


/* Tarjeta principal */

.policy-card {
    overflow: hidden;

    border-radius: 26px;
    border: 1px solid var(--border);

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(37, 99, 235, 0.10),
            transparent 24%
        ),
        rgba(11, 18, 32, 0.94);

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.30);
}

.policy-block {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 20px;

    padding: 31px 34px;

    border-bottom: 1px solid rgba(96, 165, 250, 0.09);
}

.policy-block:last-child {
    border-bottom: none;
}

.section-number {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 14px;
    border: 1px solid rgba(96, 165, 250, 0.25);

    background: rgba(37, 99, 235, 0.12);
    color: var(--blue-glow);

    font-size: 11px;
    font-weight: 800;
}

.policy-block h2 {
    color: var(--text-primary);

    font-size: 22px;
    line-height: 1.25;
}

.policy-block p {
    margin-top: 12px;

    color: var(--text-secondary);
    font-size: 14px;
}

.policy-block ul {
    display: grid;
    gap: 8px;

    margin-top: 14px;
    padding-left: 21px;

    color: var(--text-secondary);
    font-size: 14px;
}

.policy-block li::marker {
    color: var(--blue-glow);
}

.contact-email {
    display: inline-flex;

    margin-top: 16px;
    padding: 11px 15px;

    border-radius: 13px;
    border: 1px solid var(--border-strong);

    background: var(--surface);
    color: var(--blue-soft);

    font-size: 14px;
    font-weight: 700;

    transition:
        background 180ms ease,
        transform 180ms ease;
}

.contact-email:hover {
    background: var(--surface-2);
    transform: translateY(-2px);
}


/* Footer */

.site-footer {
    border-top: 1px solid rgba(96, 165, 250, 0.10);

    background: rgba(0, 1, 4, 0.82);
}

.footer-content {
    min-height: 108px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 9px;

    justify-self: start;
}

.footer-brand img {
    width: 48px;
    height: 48px;

    display: block;
    object-fit: contain;
}

.footer-brand > div {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    font-size: 17px;
}

.footer-brand span {
    margin-top: 2px;

    color: var(--text-muted);
    font-size: 10px;
}

.copyright {
    justify-self: center;

    color: var(--text-muted);

    font-size: 11px;
    text-align: center;
    white-space: nowrap;
}

.footer-home {
    justify-self: end;

    color: var(--text-secondary);
    font-size: 12px;

    transition: color 180ms ease;
}

.footer-home:hover {
    color: var(--blue-soft);
}


/* Tablet */

@media (max-width: 900px) {
    .policy-layout {
        grid-template-columns: 1fr;
    }

    .policy-index {
        position: static;
    }

    .policy-index nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Móvil */

@media (max-width: 700px) {
    .main-nav {
        display: none;
    }

    .header-content {
        min-height: 70px;
    }

    .brand-logo {
        width: 55px;
        height: 55px;
    }

    .privacy-hero {
        padding: 45px 0 40px;
    }

    .privacy-hero h1 {
        font-size: 43px;
    }

    .hero-description {
        font-size: 15px;
    }

    .policy-section {
        padding: 38px 0 55px;
    }

    .policy-index nav {
        grid-template-columns: 1fr;
    }

    .policy-block {
        grid-template-columns: 1fr;

        padding: 25px 22px;
    }

    .section-number {
        width: 38px;
        height: 38px;
    }

    .policy-block h2 {
        font-size: 20px;
    }

    .footer-content {
        min-height: auto;

        grid-template-columns: 1fr;
        justify-items: center;
        gap: 15px;

        padding: 25px 0;
    }

    .footer-brand,
    .copyright,
    .footer-home {
        justify-self: center;
    }
}


/* Móvil pequeño */

@media (max-width: 480px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .privacy-hero h1 {
        font-size: 37px;
    }

    .policy-index {
        padding: 16px;
    }

    .policy-card {
        border-radius: 21px;
    }

    .policy-block {
        padding: 23px 19px;
    }
}