/* ── Layout principal ── */
main {
    flex: 1;
    padding: 96px 24px 80px;
}

.content-wrap {
    max-width: 820px;
    margin: 0 auto;
}

/* ── Page header ── */
.page-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

/* Stripe decorativa */
.page-header::before {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--red);
    margin-bottom: 20px;
}

.page-header h1 {
    font-family: var(--font-d);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    letter-spacing: 0.04em;
    line-height: 1.05;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 560px;
}

/* ── Nav de âncoras ── */
.anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 56px;
}

.anchor-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 7px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.anchor-btn:hover {
    border-color: var(--blue-hi);
    color: var(--blue-hi);
    background: var(--blue-dim);
}

/* ── Seções legais ── */
.legal-sections {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.legal-section {
    scroll-margin-top: 88px;
}

.legal-section h2 {
    font-family: var(--font-d);
    font-size: 2rem;
    letter-spacing: 0.04em;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
}

/* Barra colorida à esquerda do título */
.legal-section h2::before {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 3px;
    height: 1.6rem;
    background: var(--blue);
}

/* Número do artigo em estilo tático */
.legal-section h2 .sec-num {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 3px 8px;
    font-family: var(--font-b);
    align-self: center;
}

.legal-intro {
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 28px;
}

.legal-intro a {
    color: var(--blue-hi);
    text-decoration: none;
    border-bottom: 1px solid rgba(77, 127, 232, 0.3);
    transition: border-color 0.15s;
}

.legal-intro a:hover {
    border-color: var(--blue-hi);
}

/* ── Artigos individuais ── */
.articles {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.article {
    padding: 20px 0 20px 24px;
    border-left: 1px solid var(--border);
    position: relative;
    transition: border-color 0.2s;
}

.article:hover {
    border-color: var(--border-hi);
}

/* Ponto na linha vertical */
.article::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 26px;
    width: 7px;
    height: 7px;
    background: var(--border);
    border-radius: 50%;
    transition: background 0.2s;
}

.article:hover::before {
    background: var(--blue);
}

/* Separador entre artigos */
.article+.article {
    border-top: 1px solid var(--border);
    margin-top: 0;
}

.article h3 {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 8px;
}

.article p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.article p strong {
    color: var(--text);
    font-weight: 700;
}

.article p a {
    color: var(--blue-hi);
    text-decoration: none;
    border-bottom: 1px solid rgba(77, 127, 232, 0.3);
}

.article p a:hover {
    border-color: var(--blue-hi);
}

/* ── Caixa de aviso (licença) ── */
.notice-box {
    margin: 24px 0;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--red);
    font-family: var(--font-b);
    font-size: 0.82rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.notice-box strong {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red-hi);
    margin-bottom: 8px;
}

.notice-box em {
    font-style: normal;
    color: var(--text-mid);
}

/* ── Divider decorativo entre seções ── */
.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
}

@media (max-width: 600px) {
    main {
        padding: 88px 16px 64px;
    }

    .legal-section h2 {
        font-size: 1.6rem;
    }
}