:root {
    color-scheme: dark;
    --bg: #0B0A07;
    --bg-2: #110F0A;
    --text: #F4EFE6;
    --text-dim: #B7AB96;
    --text-mute: #8A7D63;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #F5A623;
    --accent-2: #FFD166;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
}

.pp-header,
.pp-main,
.pp-footer {
    width: min(1120px, calc(100% - 64px));
    margin-inline: auto;
}

.pp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 104px;
}

.pp-brand {
    display: inline-flex;
}

.pp-brand img {
    width: 150px;
    height: 75px;
    object-fit: contain;
}

.pp-voltar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.pp-voltar span {
    color: var(--accent);
    font-size: 18px;
}

.pp-voltar:hover {
    color: var(--accent-2);
}

.pp-main {
    flex: 1;
    padding-block: 32px 72px;
}

.pp-doc {
    max-width: 72ch;
}

.pp-rotulo {
    margin: 0 0 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

h1 {
    margin: 0 0 8px;
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.pp-data {
    margin: 0 0 32px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-mute);
}

.pp-lead {
    margin: 0 0 32px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--text);
}

.pp-indice {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 48px;
    padding: 16px 0;
    border-block: 1px solid var(--line);
}

.pp-indice a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
    color: var(--text-dim);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.pp-indice a:hover {
    color: var(--text);
    border-color: var(--accent);
}

section {
    margin-bottom: 48px;
    scroll-margin-top: 24px;
}

h2 {
    margin: 0 0 16px;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h3 {
    margin: 28px 0 8px;
    font-size: 17px;
    font-weight: 600;
    color: var(--accent-2);
}

p,
li {
    color: var(--text-dim);
}

p {
    margin: 0 0 16px;
}

ul {
    margin: 0 0 16px;
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

li::marker {
    color: var(--accent);
}

strong {
    color: var(--text);
    font-weight: 600;
}

.pp-doc a:not(.pp-indice a) {
    text-decoration: underline;
    text-decoration-color: rgba(245, 166, 35, 0.6);
    text-underline-offset: 3px;
    color: var(--text);
    transition: color 0.2s var(--ease);
}

.pp-doc a:not(.pp-indice a):hover {
    color: var(--accent-2);
}

code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    color: var(--text);
}

.pp-tabela {
    margin: 0 0 20px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
}

table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
}

th,
td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

th {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-mute);
    background: var(--bg-2);
}

td {
    color: var(--text-dim);
}

tbody tr:last-child td {
    border-bottom: 0;
}

.pp-botao {
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.pp-botao:hover {
    border-color: var(--accent);
    background: rgba(245, 166, 35, 0.1);
}

.pp-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 24px;
    border-top: 1px solid var(--line);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-mute);
}

.pp-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.pp-footer a:hover {
    color: var(--accent);
}

@media (max-width: 700px) {
    .pp-header,
    .pp-main,
    .pp-footer {
        width: calc(100% - 32px);
    }

    .pp-header {
        min-height: 84px;
    }

    .pp-brand img {
        width: 120px;
        height: 60px;
    }

    .pp-main {
        padding-block: 16px 56px;
    }

    .pp-lead {
        font-size: 17px;
    }

    h2 {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
