:root {
    --primary: #6c63ff;
    --primary-hover: #5a52e0;
    --bg-dark: #07070c;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-navbar: rgba(7, 7, 12, 0.75);
    --text-main: #f3f3f6;
    --text-muted: #a0a0b8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Fundo Estelar */
.space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(white 1px, transparent 0), radial-gradient(white 1px, transparent 0);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.04;
    z-index: -1;
}

/* NAVBAR (Estilo Home Premium) */
/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--glass-navbar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: .3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.nav-links a.active {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 4px;
}

.nav-btn {
    background: var(--primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(108,99,255,.2);
    transition: .3s !important;
}

.nav-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

/* HEADER */
.terms-header {
    text-align: center;
    padding: 150px 20px 40px 20px;
}

.terms-header h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.terms-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* CONTAINER CENTRAL */
.terms-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 80px 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* SIDEBAR ESQUERDA */
.terms-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 110px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: 16px;
}

.sidebar-sticky h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.sidebar-sticky ul {
    list-style: none;
}

.sidebar-sticky li {
    margin-bottom: 12px;
}

.sidebar-sticky a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    transition: all 0.3s;
}

.sidebar-sticky a:hover, .sidebar-sticky a.active {
    color: var(--primary);
    padding-left: 5px;
}

/* CONTEÚDO DOS TERMOS */
.terms-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.terms-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    scroll-margin-top: 110px; /* Evita que o título suma sob a navbar ao clicar */
}

.terms-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.terms-card p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1rem;
}

.terms-card ul {
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.terms-card li {
    margin-bottom: 8px;
}

.terms-inline-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.terms-inline-link:hover {
    text-decoration: underline;
}

/* FOOTER */
.terms-footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

/* RESPONSIVIDADE (MOBILE) */
@media (max-width: 768px) {
    .terms-container {
        grid-template-columns: 1fr;
    }
    .terms-sidebar {
        display: none; /* Esconde a sidebar no celular para melhor leitura */
    }
    .terms-header h1 {
        font-size: 2.2rem;
    }
    .terms-card {
        padding: 25px;
    }
    .nav-links a:not(.nav-btn) {
        display: none; /* Esconde os links comuns, mantém o botão em telas muito pequenas */
    }
}