/* ============================================================
   Game Star — Política de Privacidad
   Dedicated styles for /privacidad/
   Aesthetic: Dark gaming, refined legal document
   ============================================================ */

/* ----- Imports ----- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

/* ----- Page foundation ----- */
.privacidad-page {
    background: #0b0d17;
    color: #d1d5e0;
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Force full width — override theme constraints */
.privacidad-page .sections_group,
.privacidad-page .content_wrapper {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ----- Hero / Header ----- */
.privacidad-hero {
    position: relative;
    padding: 100px 24px 60px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(
        175deg,
        #0b0d17 0%,
        #12152a 40%,
        #1a1040 70%,
        #0b0d17 100%
    );
}

.privacidad-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(
        ellipse at center,
        rgba(138, 43, 226, 0.15) 0%,
        rgba(0, 210, 211, 0.05) 50%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.privacidad-hero-glow {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 210, 211, 0.4) 30%,
        rgba(138, 43, 226, 0.5) 50%,
        rgba(0, 210, 211, 0.4) 70%,
        transparent 100%
    );
}

.privacidad-hero-content {
    position: relative;
    z-index: 1;
}

.privacidad-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.privacidad-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
    color: rgba(0, 210, 211, 0.8);
    margin: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ----- Content container ----- */
.privacidad-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 60px 32px 100px;
    position: relative;
}

/* ----- Date stamp ----- */
.privacidad-container > p:first-child,
.privacidad-container > p:first-of-type {
    display: inline-block;
    background: rgba(138, 43, 226, 0.12);
    border: 1px solid rgba(138, 43, 226, 0.25);
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #c9a0ff;
    letter-spacing: 0.02em;
    margin-bottom: 48px;
}

/* ----- Horizontal rules ----- */
.privacidad-container hr {
    border: none;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(138, 43, 226, 0.3) 30%,
        rgba(0, 210, 211, 0.2) 70%,
        transparent 100%
    );
    margin: 48px 0;
}

/* ----- Headings ----- */
.privacidad-container h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 600;
    color: #00d2d3;
    margin: 56px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 210, 211, 0.15);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.privacidad-container h2:first-child {
    margin-top: 0;
}

/* ----- Paragraphs ----- */
.privacidad-container p {
    margin: 0 0 18px;
    color: #c8cdd8;
}

/* ----- Strong / bold text ----- */
.privacidad-container strong {
    color: #e8ecf4;
    font-weight: 600;
}

/* ----- Links ----- */
.privacidad-container a {
    color: #a78bfa;
    text-decoration: none;
    border-bottom: 1px solid rgba(167, 139, 250, 0.3);
    transition: color 0.25s ease, border-color 0.25s ease;
}

.privacidad-container a:hover {
    color: #c4b5fd;
    border-bottom-color: #c4b5fd;
}

/* Mailto links — special highlight */
.privacidad-container a[href^="mailto:"] {
    color: #00d2d3;
    border-bottom-color: rgba(0, 210, 211, 0.3);
    font-weight: 500;
}

.privacidad-container a[href^="mailto:"]:hover {
    color: #5ef5f5;
    border-bottom-color: #5ef5f5;
}

/* ----- Tables (responsive) ----- */
.privacidad-container table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0 32px;
    font-size: 0.92rem;
    line-height: 1.6;
    background: rgba(18, 21, 42, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.privacidad-container thead {
    background: linear-gradient(
        135deg,
        rgba(138, 43, 226, 0.2) 0%,
        rgba(0, 210, 211, 0.1) 100%
    );
}

.privacidad-container thead th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    color: #e8ecf4;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(138, 43, 226, 0.25);
    white-space: nowrap;
}

.privacidad-container tbody td {
    padding: 13px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #c0c5d2;
    vertical-align: top;
}

.privacidad-container tbody tr:last-child td {
    border-bottom: none;
}

.privacidad-container tbody tr:hover {
    background: rgba(138, 43, 226, 0.06);
}

/* Responsive wrapper — injected by JS or natural overflow */
@media (max-width: 768px) {
    .privacidad-container table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        border-radius: 10px;
    }

    .privacidad-container table thead,
    .privacidad-container table tbody,
    .privacidad-container table tr,
    .privacidad-container table th,
    .privacidad-container table td {
        white-space: normal;
        min-width: 140px;
    }

    .privacidad-container table th,
    .privacidad-container table td {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    /* Hint for horizontal scroll */
    .privacidad-container table::after {
        content: '← Desliza para ver más →';
        display: block;
        text-align: center;
        font-size: 0.75rem;
        color: rgba(0, 210, 211, 0.5);
        padding: 8px 0;
        letter-spacing: 0.04em;
    }
}

/* ----- Lists ----- */
.privacidad-container ul,
.privacidad-container ol {
    margin: 12px 0 20px;
    padding-left: 24px;
}

.privacidad-container li {
    margin-bottom: 8px;
    color: #c0c5d2;
}

.privacidad-container li::marker {
    color: rgba(0, 210, 211, 0.6);
}

/* ----- Section-specific: Rights (section 6) ----- */
.privacidad-container h2 + p > strong:first-child {
    color: #00d2d3;
}

/* ----- Footer link styling for privacy ----- */
.footer-privacidad-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: 0.02em;
}

.footer-privacidad-link:hover {
    color: #00d2d3;
}

/* ----- Back-to-top override on this page ----- */
.privacidad-page #back_to_top {
    background: rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.4);
}

.privacidad-page #back_to_top:hover {
    background: rgba(138, 43, 226, 0.5);
}

/* ----- Responsive refinements ----- */
@media (max-width: 600px) {
    .privacidad-hero {
        padding: 72px 20px 40px;
    }

    .privacidad-container {
        padding: 40px 20px 80px;
    }

    .privacidad-container h2 {
        font-size: 1.25rem;
        margin-top: 40px;
    }

    .privacidad-page {
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .privacidad-hero {
        padding: 60px 16px 32px;
    }

    .privacidad-container {
        padding: 32px 16px 64px;
    }

    .privacidad-container table th,
    .privacidad-container table td {
        padding: 8px 10px;
        font-size: 0.82rem;
    }
}

/* ----- Print styles ----- */
@media print {
    .privacidad-page {
        background: #fff;
        color: #222;
    }

    .privacidad-hero {
        background: none;
        padding: 40px 0 20px;
    }

    .privacidad-title {
        color: #000;
    }

    .privacidad-subtitle {
        color: #555;
    }

    .privacidad-hero-glow,
    .privacidad-hero::before {
        display: none;
    }

    .privacidad-container a {
        color: #333;
        border-bottom-color: #999;
    }

    .privacidad-container table {
        background: #fafafa;
        border-color: #ddd;
    }

    .privacidad-container thead {
        background: #eee;
    }

    .privacidad-container h2 {
        color: #222;
        border-bottom-color: #ccc;
    }

    .privacidad-container strong {
        color: #000;
    }

    .privacidad-container p,
    .privacidad-container td,
    .privacidad-container li {
        color: #333;
    }
}
