@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* Base layout — autossuficiente (não depende de pre-venda.css no deploy) */
:root {
    --bg-main: #05020c;
    --bg-card: rgba(18, 11, 30, 0.82);
    --border-color: rgba(236, 72, 153, 0.18);
    --color-pink: #ec4899;
    --color-purple: #8b5cf6;
    --color-orange: #f97316;
    --color-green: #82e09b;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --font-sans: 'Outfit', sans-serif;
    --gta-gradient: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    background-image:
        radial-gradient(circle at 15% 12%, rgba(236, 72, 153, 0.12), transparent 42%),
        radial-gradient(circle at 85% 18%, rgba(139, 92, 246, 0.12), transparent 44%),
        radial-gradient(circle at 80% 88%, rgba(249, 115, 22, 0.10), transparent 40%);
    color: var(--text-main);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 9, 13, 0.86);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
}

.navbar-container {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1200px;
    padding: 14px 24px;
}

.logo-link {
    align-items: center;
    display: flex;
    gap: 12px;
}

.nav-logo {
    height: 58px;
    width: auto;
}

.logo-text {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.nav-links {
    align-items: center;
    display: flex;
    gap: 26px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--color-orange);
}

.btn-nav-contact {
    background-color: rgba(130, 224, 155, 0.04);
    border: 1px solid var(--color-green);
    border-radius: 8px;
    color: var(--color-green) !important;
    padding: 9px 18px;
}

.btn-nav-contact:hover {
    background-color: var(--color-green);
    color: #060508 !important;
}

.mobile-menu-btn {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    background-color: #fff;
    border-radius: 999px;
    display: block;
    height: 2px;
    transition: var(--transition-smooth);
    width: 24px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.footer {
    background-color: #060507;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 80px 24px 50px;
    text-align: left;
}

.footer-container {
    display: grid;
    gap: 60px;
    grid-template-columns: 1.2fr 1fr 1fr;
    margin: 0 auto;
    max-width: 1200px;
}

.footer-container:has(.footer-policies) {
    grid-template-columns: 1.2fr 1fr 1fr 0.75fr;
}

.footer-brand {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: block;
    flex-shrink: 0;
    height: 76px;
    max-height: 76px;
    max-width: none;
    object-fit: contain;
    object-position: left center;
    width: auto;
}

.footer-desc,
.footer-info p,
.footer-legal p,
.footer-policies p {
    line-height: 1.6;
}

.footer-info-title {
    color: #fff;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-info p,
.footer-legal p,
.footer-policies p {
    line-height: 1.5;
    margin-bottom: 12px;
}

.footer-policies a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-policies a:hover {
    color: var(--color-pink);
}

.footer-credit {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    margin: 50px auto 0;
    max-width: 1200px;
    opacity: 0.6;
    padding-top: 25px;
    text-align: center;
}

.footer-credit a {
    color: var(--color-green);
    text-decoration: underline;
}

@media (max-width: 820px) {
    .logo-link {
        flex-shrink: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        background-color: #0d0a15;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.48);
        flex-direction: column;
        height: calc(100vh - 86px);
        padding: 30px;
        position: fixed;
        right: -100%;
        top: 86px;
        transition: var(--transition-smooth);
        width: min(300px, 82vw);
    }

    .nav-links.active {
        right: 0;
    }
}

@media (max-width: 900px) {
    .footer-container,
    .footer-container:has(.footer-policies) {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Página de Políticas — Gamerplace GTA 6 */
.politicas-main {
    padding: 120px 20px 80px;
    max-width: 960px;
    margin: 0 auto;
}

.politicas-header {
    text-align: center;
    margin-bottom: 40px;
}

.politicas-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(236, 72, 153, 0.12);
    border: 1px solid rgba(236, 72, 153, 0.28);
    color: var(--color-pink);
    margin-bottom: 16px;
}

.politicas-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--gta-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.politicas-updated {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.politicas-disclaimer {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(243, 244, 246, 0.82);
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.22);
}

.politicas-tabs-wrap {
    margin-bottom: 28px;
    position: sticky;
    top: 72px;
    z-index: 100;
    background: linear-gradient(to bottom, var(--bg-main) 70%, transparent);
    padding: 8px 0 16px;
}

.politicas-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.politicas-tab {
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(18, 11, 30, 0.6);
    color: var(--text-muted);
    border-radius: 10px;
    padding: 10px 18px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.politicas-tab:hover {
    color: var(--text-main);
    border-color: rgba(236, 72, 153, 0.35);
}

.politicas-tab[aria-selected="true"] {
    color: #fff;
    border-color: transparent;
    background: var(--gta-gradient);
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.25);
}

.politicas-panel {
    display: none;
    animation: politicasFadeIn 0.35s ease;
    scroll-margin-top: 132px;
}

.politicas-panel .politicas-card h2 {
    scroll-margin-top: 132px;
}

.politicas-panel[aria-hidden="false"] {
    display: block;
}

@keyframes politicasFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.politicas-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 28px;
    backdrop-filter: blur(12px);
}

.politicas-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-main);
}

.politicas-intro {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(243, 244, 246, 0.88);
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.politicas-section {
    margin-bottom: 28px;
}

.politicas-section:last-child {
    margin-bottom: 0;
}

.politicas-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-pink);
    margin-bottom: 12px;
}

.politicas-section p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: rgba(243, 244, 246, 0.85);
    margin-bottom: 12px;
}

.politicas-section p:last-child {
    margin-bottom: 0;
}

.politicas-section ul {
    margin: 0 0 12px;
    padding-left: 1.25rem;
}

.politicas-section li {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(243, 244, 246, 0.85);
    margin-bottom: 8px;
}

.politicas-section a {
    color: var(--color-pink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.politicas-section a:hover {
    color: var(--color-purple);
}

.politicas-section code {
    font-size: 0.8125rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
}

.politicas-table-wrap {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.politicas-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    min-width: 520px;
}

.politicas-table th,
.politicas-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
    line-height: 1.5;
}

.politicas-table th {
    background: rgba(236, 72, 153, 0.1);
    color: var(--text-main);
    font-weight: 700;
    white-space: nowrap;
}

.politicas-table td {
    color: rgba(243, 244, 246, 0.82);
}

.politicas-table tr:last-child td {
    border-bottom: none;
}

.politicas-manage {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.politicas-manage p {
    flex: 1 1 200px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.btn-manage-cookies {
    border: 1px solid rgba(236, 72, 153, 0.4);
    background: rgba(236, 72, 153, 0.12);
    color: var(--text-main);
    border-radius: 10px;
    padding: 10px 20px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-manage-cookies:hover {
    background: rgba(236, 72, 153, 0.22);
    border-color: var(--color-pink);
}

@media (max-width: 768px) {
    .politicas-tabs-wrap {
        top: 64px;
    }
}

@media (max-width: 640px) {
    .navbar-container {
        padding: 10px 16px;
    }

    .nav-logo {
        height: 44px;
    }

    .logo-text {
        font-size: 1.05rem;
        letter-spacing: 1px;
    }

    .politicas-main {
        padding: 88px 16px 140px;
    }

    .politicas-header {
        margin-bottom: 20px;
    }

    .politicas-badge {
        font-size: 0.6875rem;
        margin-bottom: 10px;
        padding: 5px 10px;
    }

    .politicas-header h1 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .politicas-updated {
        font-size: 0.8125rem;
    }

    .politicas-disclaimer-toggle {
        align-items: center;
        background: rgba(249, 115, 22, 0.08);
        border: 1px solid rgba(249, 115, 22, 0.22);
        border-radius: 10px;
        color: rgba(243, 244, 246, 0.88);
        cursor: pointer;
        display: flex;
        font-family: var(--font-sans);
        font-size: 0.8125rem;
        font-weight: 600;
        gap: 8px;
        justify-content: space-between;
        margin-top: 12px;
        padding: 10px 14px;
        text-align: left;
        width: 100%;
    }

    .politicas-disclaimer-toggle-icon {
        flex-shrink: 0;
        font-size: 0.75rem;
        opacity: 0.75;
        transition: transform 0.2s ease;
    }

    .politicas-disclaimer-toggle[aria-expanded="true"] .politicas-disclaimer-toggle-icon {
        transform: rotate(180deg);
    }

    .politicas-disclaimer {
        border: 0;
        border-radius: 0 0 10px 10px;
        font-size: 0.75rem;
        line-height: 1.5;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        padding: 0 14px;
        transition: max-height 0.25s ease, padding 0.25s ease;
    }

    .politicas-disclaimer.is-open {
        border: 1px solid rgba(249, 115, 22, 0.22);
        border-top: 0;
        max-height: 200px;
        padding: 10px 14px 12px;
    }

    .politicas-tabs-wrap {
        padding: 4px 0 8px;
        top: 58px;
    }

    .politicas-tabs {
        display: grid;
        gap: 8px;
        grid-template-columns: 1fr 1fr;
        overflow-x: visible;
        padding-bottom: 0;
    }

    .politicas-tab {
        font-size: 0.8125rem;
        line-height: 1.25;
        min-height: 44px;
        padding: 10px 12px;
        text-align: center;
        white-space: normal;
        width: 100%;
    }

    .politicas-panel {
        scroll-margin-top: 200px;
    }

    .politicas-panel .politicas-card h2 {
        scroll-margin-top: 200px;
    }

    .politicas-card {
        padding: 20px 16px;
    }

    .politicas-section p,
    .politicas-section li {
        font-size: 0.9375rem;
        text-wrap: pretty;
    }

    .politicas-table-wrap {
        border: 0;
        overflow-x: visible;
    }

    .politicas-table {
        min-width: 0;
    }

    .politicas-table thead {
        display: none;
    }

    .politicas-table tbody tr {
        background: rgba(18, 11, 30, 0.55);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        display: block;
        margin-bottom: 12px;
        padding: 4px 0;
    }

    .politicas-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .politicas-table td {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: block;
        padding: 10px 14px;
    }

    .politicas-table td::before {
        color: var(--color-pink);
        content: attr(data-label);
        display: block;
        font-size: 0.6875rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        margin-bottom: 4px;
        text-transform: uppercase;
    }

    .politicas-table td:last-child {
        border-bottom: 0;
    }

    .politicas-manage {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-manage-cookies {
        width: 100%;
    }

    .footer {
        padding: 48px 20px 32px;
    }

    .footer-logo {
        height: 56px;
        max-height: 56px;
        max-width: none;
        object-fit: contain;
        width: auto;
    }
}

@media (min-width: 641px) {
    .politicas-disclaimer-toggle {
        display: none;
    }

    .politicas-disclaimer {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 14px 18px !important;
    }
}
