/* ============================================
   DevPlus — Política de Privacidade
   Visual moderno, consistente com a home
   ============================================ */

/* --- BODY --- */
body {
    line-height: 1.7;
    background-image: radial-gradient(circle at 50% 0%, rgba(13, 185, 199, 0.08) 0%, rgba(10, 10, 10, 1) 50%);
}

/* --- NAVBAR (simplificada) --- */
nav {
    position: sticky;
    top: 0;
    padding: 16px 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 100;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-icon {
    height: 36px;
    margin-right: 10px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.back-link:hover {
    color: var(--brand-cyan);
    background: rgba(13, 185, 199, 0.06);
}

/* --- HERO DA POLÍTICA --- */
.policy-hero {
    padding: 80px 0 48px;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
}

.policy-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(13, 185, 199, 0.2);
    background: rgba(13, 185, 199, 0.05);
    color: var(--brand-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.policy-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
}

.policy-hero-sub {
    max-width: 640px;
    margin: 0 auto 28px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.policy-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.policy-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-dim);
    font-weight: 500;
}

.policy-meta-item svg {
    color: var(--text-dim);
    flex-shrink: 0;
}

/* --- LAYOUT: TOC + CONTEÚDO --- */
.policy-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    padding: 48px 24px 100px;
    max-width: 1100px;
}

/* --- TABLE OF CONTENTS --- */
.policy-toc {
    position: relative;
}

.toc-sticky {
    position: sticky;
    top: 90px;
}

.toc-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-bottom: 16px;
    padding-left: 16px;
}

.toc-list {
    list-style: none;
    counter-reset: toc;
    padding: 0;
    margin: 0;
}

.toc-list li {
    counter-increment: toc;
}

.toc-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    border-left: 2px solid transparent;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: all var(--transition-fast);
    line-height: 1.4;
}

.toc-list a::before {
    content: counter(toc, decimal-leading-zero);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dim);
    min-width: 18px;
    transition: color var(--transition-fast);
}

.toc-list a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.03);
    border-left-color: rgba(13, 185, 199, 0.3);
}

.toc-list a.active {
    color: var(--brand-cyan);
    background: rgba(13, 185, 199, 0.06);
    border-left-color: var(--brand-cyan);
    font-weight: 600;
}

.toc-list a.active::before {
    color: var(--brand-cyan);
}

/* --- CONTEÚDO PRINCIPAL --- */
.policy-content {
    min-width: 0;
}

/* --- SEÇÕES --- */
.policy-section {
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    scroll-margin-top: 100px;
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-number {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--brand-cyan);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    opacity: 0.6;
}

.policy-section h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    line-height: 1.3;
}

.policy-section p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.policy-section a {
    color: var(--brand-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.policy-section a:hover {
    color: var(--brand-green);
}

.policy-section ul {
    color: var(--text-muted);
    margin: 0 0 16px 20px;
    font-size: 0.95rem;
}

.policy-section li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.policy-section strong {
    color: white;
    font-weight: 700;
}

/* --- INFO CARDS (coleta de dados) --- */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 16px;
    transition: border-color var(--transition-fast);
}

.info-card:hover {
    border-color: var(--border-hover);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.info-card-header svg {
    color: var(--brand-cyan);
    flex-shrink: 0;
}

.info-card-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}

.info-card ul {
    margin-left: 0;
    padding-left: 20px;
}

.info-card li {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

/* --- CHECK LIST --- */
.check-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.check-list li {
    position: relative;
    padding-left: 28px;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-green);
    font-weight: 800;
    font-size: 0.9rem;
}

/* --- HIGHLIGHT BOX --- */
.highlight-box {
    background: rgba(122, 204, 69, 0.05);
    border: 1px solid rgba(122, 204, 69, 0.15);
    border-left: 3px solid var(--brand-green);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 20px 0;
}

.highlight-box strong {
    color: var(--brand-green);
}

/* --- TABELAS --- */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.policy-table thead {
    background: rgba(13, 185, 199, 0.06);
}

.policy-table th {
    text-align: left;
    padding: 14px 20px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-cyan);
    border-bottom: 1px solid var(--border-subtle);
}

.policy-table td {
    padding: 12px 20px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: top;
}

.policy-table tbody tr:last-child td {
    border-bottom: none;
}

.policy-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.015);
}

.policy-table td strong {
    color: white;
}

/* --- SECURITY GRID --- */
.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: border-color var(--transition-fast);
}

.security-item:hover {
    border-color: var(--border-hover);
}

.security-item svg {
    color: var(--brand-green);
    flex-shrink: 0;
}

/* --- RIGHTS GRID --- */
.rights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.right-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
}

.right-item:hover {
    border-color: var(--border-hover);
}

.right-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(122, 204, 69, 0.1);
    color: var(--brand-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

.right-item strong {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.right-item p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* --- CONTACT CARD --- */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 8px 0;
    margin: 20px 0;
}

.contact-card-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 24px;
}

.contact-card-row + .contact-card-row {
    border-top: 1px solid var(--border-subtle);
}

.contact-card-row svg {
    color: var(--brand-cyan);
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-card-row strong {
    display: block;
    font-size: 0.82rem;
    color: var(--text-dim);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.contact-card-row span,
.contact-card-row a {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.contact-card-row a {
    color: var(--brand-cyan);
    text-decoration: none;
    font-weight: 600;
}

.contact-card-row a:hover {
    color: var(--brand-green);
}

/* --- FOOTER --- */
footer {
    padding: 32px 0;
    border-top: 1px solid var(--border-subtle);
    background: transparent;
}

footer::before {
    display: none;
}

.footer-simple {
    text-align: center;
}

.footer-simple p {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.footer-simple p:last-child {
    margin-bottom: 0;
    font-size: 0.75rem;
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 900px) {
    .policy-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .policy-toc {
        display: none;
    }

    .security-grid,
    .rights-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .policy-hero {
        padding: 48px 0 32px;
    }

    .policy-hero h1 {
        font-size: 1.8rem;
    }

    .policy-hero-sub {
        font-size: 0.92rem;
    }

    .policy-section h2 {
        font-size: 1.25rem;
    }

    .policy-layout {
        padding: 32px 16px 60px;
    }

    .info-card {
        padding: 18px;
    }

    .policy-table th,
    .policy-table td {
        padding: 10px 14px;
        font-size: 0.82rem;
    }

    .right-item {
        padding: 14px;
    }

    .contact-card-row {
        padding: 12px 18px;
    }
}
