/* ══════════════════════════════════════════════════════════════
   PRIVACIDADE PAGE — Design System v2
══════════════════════════════════════════════════════════════ */

main { display: block; } /* Ensure sticky works correctly by overriding base.css flex */

/* ── Page Hero overrides ─────────────────────────────────────── */
.page-hero { padding-bottom: 56px; }

.page-hero__blob-1 {
    width: 380px; height: 380px;
    background: radial-gradient(circle at 40% 40%, var(--sage-100), transparent 70%);
    top: -110px; right: -50px;
    opacity: 0.55;
}

.page-hero__blob-2 {
    width: 220px; height: 220px;
    background: var(--clay-100);
    bottom: -80px; left: 10%;
    opacity: 0.4;
}

.page-hero__title { font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1.08; }
.page-hero__sub { font-size: 1rem; }

/* ── Doc layout ─────────────────────────────────────────────── */
.doc {
    padding: 64px 0 112px;
    overflow: visible; /* Ensure no parent breaks position: sticky */
}

.doc__grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 72px;
    max-width: 1040px;
    margin: 0 auto;
    align-items: start;
    overflow: visible;
}

/* ── TOC sidebar ────────────────────────────────────────────── */
.doc__toc {
    position: sticky;
    top: 96px;
    padding: 24px 0;
    font-size: 0.85rem;
}

.doc__toc-label {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 16px;
    padding-left: 14px;
}

.doc__toc ol {
    list-style: none;
    display: flex;
    flex-direction: column;
    counter-reset: toc;
}

.doc__toc li { counter-increment: toc; }

.doc__toc a {
    display: block;
    padding: 8px 14px;
    border-left: 2px solid var(--border);
    color: var(--text-muted);
    transition: all var(--dur-fast);
    line-height: 1.5;
    text-decoration: none;
}

.doc__toc a::before {
    content: counter(toc, decimal-leading-zero) ' ';
    color: var(--ink-300);
    margin-right: 6px;
    font-variant-numeric: tabular-nums;
}

.doc__toc a:hover { color: var(--text); border-left-color: var(--border-strong); }
.doc__toc a.is-active { color: var(--primary); border-left-color: var(--primary); }

/* ── Doc body ───────────────────────────────────────────────── */
.doc__body { max-width: 680px; }

.doc__body section {
    padding-bottom: 48px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.doc__body section:last-of-type { border-bottom: none; }

.doc__body h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin-bottom: 24px;
}

.doc__body h1 em { font-style: italic; color: var(--primary); font-weight: 300; }

.doc__body h2 {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.015em;
    margin-bottom: 18px;
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.doc__body h2 .num {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: var(--primary);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.doc__body p {
    color: var(--text-body);
    line-height: 1.75;
    font-size: 0.95rem;
}

.doc__body p + p { margin-top: 14px; }

.doc__body ul {
    list-style: none;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doc__body ul li {
    position: relative;
    padding-left: 22px;
    color: var(--text-body);
    font-size: 0.93rem;
    line-height: 1.65;
}

.doc__body ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 9px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--sage-500);
}

.doc__body .doc__rule {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.doc__body strong { font-weight: 500; color: var(--text); }

.doc__body a:not(.btn) {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent);
    text-underline-offset: 3px;
    transition: color var(--dur-fast), text-decoration-color var(--dur-fast);
}

.doc__body a:not(.btn):hover {
    color: var(--primary-hover);
    text-decoration-color: var(--primary-hover);
}

/* ── Doc footer ─────────────────────────────────────────────── */
.doc__foot {
    margin-top: 48px;
    padding: 28px 32px;
    background: var(--cream-100);
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.doc__foot p {
    font-size: 0.86rem;
    color: var(--text-body);
    max-width: 440px;
    margin: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 860px) {
    .doc__grid { grid-template-columns: 1fr; gap: 40px; }
    .doc__toc { position: static; padding: 0; }
    .doc__toc ol { display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px; }
    .doc__toc li { counter-increment: none; }
    .doc__toc a {
        border-left: none;
        border: 1px solid var(--border);
        border-radius: var(--radius-pill);
        padding: 6px 12px;
        font-size: 0.78rem;
    }
    .doc__toc a::before { display: none; }
    .doc__toc a.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
}

@media (max-width: 768px) {
    .doc__foot { flex-direction: column; align-items: flex-start; }
}

