:root {
    --primary-color: #FFC700;
    --primary-dark: #E0B200;
    --ink: #14161A;
    --text-color: #333;
    --muted: #6B7280;
    --line: #ECECEC;
    --light-bg: #f8f8f8;
    --radius-lg: 18px;
    --radius-md: 12px;
    --font-display: 'Sora', Arial, sans-serif;
    --font-body: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

h1, h2 { font-family: var(--font-display); color: var(--ink); }

/* =====================================================
   NAVBAR (igual ao restante do site)
===================================================== */
.site-header { position: sticky; top: 0; z-index: 1000; background-color: #fff; }

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img { height: 40px; width: auto; display: block; }

.nav-center { list-style: none; display: flex; gap: 32px; }

.nav-center a { text-decoration: none; font-weight: 600; color: #333; position: relative; }

.nav-center a::after {
    content: ''; width: 0; height: 2px;
    background-color: var(--primary-color);
    position: absolute; bottom: -6px; left: 0;
    transition: width 0.3s ease;
}

.nav-center a:hover::after { width: 100%; }

.btn-anuncie {
    padding: 5px 22px;
    background-color: #000;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-anuncie:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 196, 0, 0.4);
}

.menu-toggle {
    display: none;
    margin-left: 14px;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu {
    position: fixed; top: 0; right: -100%;
    width: 280px; height: 100vh;
    background-color: #fff;
    z-index: 2000; padding: 30px;
    transition: right 0.3s ease;
}

.mobile-menu.open { right: 0; }
.mobile-menu ul { list-style: none; margin-top: 40px; }
.mobile-menu li { margin-bottom: 20px; }
.mobile-menu a { text-decoration: none; font-size: 18px; font-weight: 600; color: #111; }
.mobile-anuncie { display: inline-block; margin-top: 10px; padding: 12px 20px; background-color: #000; color: #fff; border-radius: 30px; }
.close-menu { background: none; border: none; font-size: 22px; cursor: pointer; }

.overlay {
    position: fixed; inset: 0;
    background-color: rgba(0,0,0,0.4);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.overlay.show { opacity: 1; pointer-events: all; }

/* =====================================================
   ESTRUTURA DO DOCUMENTO
===================================================== */
.legal-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 26px;
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }

.category-tag {
    background-color: var(--primary-color);
    color: var(--ink);
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 16px;
}

.legal-header { max-width: 720px; margin-bottom: 40px; }

.legal-header h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}

.legal-updated { font-size: 0.9rem; color: var(--muted); }

.legal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 50px;
    align-items: start;
}

/* SUMÁRIO */
.legal-toc {
    position: sticky;
    top: 100px;
    border-left: 1px solid var(--line);
    padding-left: 20px;
}

.toc-title {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 14px;
}

.legal-toc ol {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-toc a {
    text-decoration: none;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.legal-toc a.active,
.legal-toc a:hover { color: var(--ink); }

/* CONTEÚDO */
.legal-content { max-width: 760px; padding-bottom: 90px; }

.legal-intro {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 40px;
    line-height: 1.75;
}

.legal-content section {
    margin-bottom: 40px;
    scroll-margin-top: 100px;
}

.legal-content h2 {
    font-size: 1.3rem;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.legal-content p {
    margin-bottom: 14px;
    line-height: 1.75;
    color: #292929;
}

.legal-content ul {
    margin: 0 0 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-content li { line-height: 1.6; color: #292929; }

.legal-content a { color: var(--primary-dark); font-weight: 600; text-decoration: underline; }

.legal-contact {
    list-style: none;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-contact li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.legal-contact i { color: var(--primary-dark); width: 18px; text-align: center; }
.legal-contact a { text-decoration: none; color: var(--ink); }
.legal-contact a:hover { color: var(--primary-dark); }

.legal-disclaimer {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--muted);
    background: var(--light-bg);
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
}

/* =====================================================
   FOOTER
===================================================== */
.footer-serrana { background-color: #ffffff; border-top: 1px solid #eee; padding: 40px 20px 24px; }

.footer-container { max-width: 1200px; margin: 0 auto; text-align: center; }

.footer-logo img { max-width: 160px; margin-bottom: 24px; }

.footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }

.footer-links a { font-size: 14px; color: #666; text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--primary-dark); }

.footer-copy p { font-size: 13px; color: #888; margin: 4px 0; }

.footer-dev a { color: #666; text-decoration: none; font-weight: 500; }
.footer-dev a:hover { color: var(--primary-dark); }

#backToTop {
    position: fixed; bottom: 20px; right: 20px;
    width: 40px; height: 40px; border-radius: 50%;
    border: none; background-color: var(--primary-color);
    color: #000; font-size: 13px; font-weight: bold;
    cursor: pointer; display: none;
    align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

#backToTop:hover { transform: translateY(-4px); }

/* =====================================================
   RESPONSIVIDADE
===================================================== */
@media (max-width: 900px) {
    .legal-layout { grid-template-columns: 1fr; }
    .legal-toc {
        position: static;
        border-left: none;
        border-bottom: 1px solid var(--line);
        padding-left: 0;
        padding-bottom: 20px;
        margin-bottom: 10px;
    }
    .legal-toc ol { flex-direction: row; flex-wrap: wrap; gap: 14px; }
}

@media (max-width: 768px) {
    .nav-center { display: none; }
    .menu-toggle { display: block; }
    .btn-anuncie { display: none; }
}

@media (max-width: 600px) {
    .logo img { height: 34px; }
}
