/* =============================================
   Legal Pages — Shared Styles (Termos & Privacidade)
   ============================================= */

/* Reset & base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
button, input { font-family: inherit; color: inherit; outline: none; border: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #1f293d; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #374151; }

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Header ---- */
.header {
    height: var(--header-height);
    width: 100%;
    position: fixed;
    top: 0; left: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    background: rgba(9, 13, 22, 0.7);
    backdrop-filter: blur(12px);
    transition: var(--transition-normal);
}
.header.scrolled {
    background: rgba(9, 13, 22, 0.9);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.header-container {
    max-width: var(--container-max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 56px; width: auto; object-fit: contain; transition: var(--transition-normal); }
.logo-img:hover { filter: brightness(1.15); transform: scale(1.02); }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
}
.back-link:hover { color: var(--text-primary); }
.back-link i { font-size: 14px; }

/* ---- Hero banner ---- */
.legal-hero {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}
.legal-hero-glow {
    position: absolute;
    width: 500px; height: 500px;
    top: -80px; right: -80px;
    background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}
.legal-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(168,85,247,0.1);
    border: 1px solid rgba(168,85,247,0.2);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #c084fc;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}
.legal-hero h1 {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}
.legal-hero-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.legal-hero-meta span { color: var(--text-secondary); }

/* ---- Main content ---- */
.legal-body {
    padding-bottom: 100px;
}
.legal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 60px;
    align-items: start;
}

/* Sidebar TOC */
.legal-toc {
    position: sticky;
    top: calc(var(--header-height) + 32px);
}
.legal-toc h3 {
    font-family: var(--font-title);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.legal-toc ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.legal-toc ul li a {
    display: block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-left: 2px solid transparent;
    transition: var(--transition-fast);
}
.legal-toc ul li a:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.03);
    border-left-color: var(--primary);
}

/* Article */
.legal-article {
    display: flex;
    flex-direction: column;
    gap: 48px;
}
.legal-section {
    scroll-margin-top: calc(var(--header-height) + 24px);
}
.legal-section h2 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}
.legal-section h2 .section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--gradient-primary);
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}
.legal-section p {
    font-size: 0.97rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.8;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0;
}
.legal-section ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.legal-section ul li i {
    font-size: 14px;
    color: var(--primary);
    margin-top: 4px;
    flex-shrink: 0;
}
.legal-section strong {
    color: var(--text-primary);
    font-weight: 600;
}
.legal-section a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.legal-section a:hover { opacity: 0.8; }

/* Highlight box */
.legal-highlight {
    background: rgba(168,85,247,0.06);
    border: 1px solid rgba(168,85,247,0.18);
    border-radius: 10px;
    padding: 20px 24px;
    margin: 16px 0;
}
.legal-highlight p {
    color: var(--text-primary) !important;
    font-size: 0.93rem !important;
    margin: 0 !important;
}

/* Contact card at the bottom */
.legal-contact-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.legal-contact-card .contact-icon {
    width: 56px; height: 56px;
    border-radius: var(--border-radius-sm);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}
.legal-contact-card h3 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.legal-contact-card p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }
.legal-contact-card a { color: var(--primary); }

/* ---- Footer ---- */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    background-color: #05080e;
}
.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom-links {
    display: flex;
    gap: 20px;
}
.footer-bottom-links a { color: var(--text-muted); transition: var(--transition-fast); }
.footer-bottom-links a:hover { color: var(--text-primary); }
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .legal-toc {
        position: static;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: var(--border-radius-md);
        padding: 20px 24px;
    }
    .legal-hero h1 { font-size: 2.2rem; }
}
@media (max-width: 600px) {
    .legal-hero h1 { font-size: 1.8rem; }
    .legal-contact-card { flex-direction: column; }
    .footer-bottom-container { flex-direction: column; text-align: center; }
}
