:root {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #152235;
    background: #f6f3ed;
    --navy: #10253d;
    --navy-light: #173653;
    --gold: #c7a15b;
    --muted: #657184;
    --border: #e4e8ec;
    --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; line-height: 1.65; }
a { color: #8b672b; }

.public-header {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 72px;
    padding: 14px clamp(20px, 5vw, 64px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(16, 37, 61, .97);
    box-shadow: 0 6px 24px rgba(6, 19, 32, .16);
}

.public-brand { display: inline-flex; align-items: center; text-decoration: none; }
.public-brand img { display: block; width: min(220px, 48vw); height: auto; }
.public-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); }
.public-nav a { color: #dce4ec; font-size: 14px; font-weight: 600; text-decoration: none; }
.public-nav a:hover { color: var(--gold); }
.public-nav .nav-contact { padding: 9px 16px; border: 1px solid rgba(199, 161, 91, .7); border-radius: 8px; color: #f2d79f; }

.page-hero {
    padding: 58px 20px 108px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #0c1d31, var(--navy-light));
}
.page-hero .eyebrow { margin: 0 0 10px; color: #e7c98f; font-size: 12px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; }
.page-hero h1 { max-width: 800px; margin: 0 auto; color: #fff; font-family: Georgia, serif; font-size: clamp(34px, 5vw, 54px); line-height: 1.08; }
.page-hero p { max-width: 680px; margin: 18px auto 0; color: #cbd5df; font-size: 17px; }

.legal-shell, .contact-shell { width: min(100% - 32px, 980px); margin: -64px auto 70px; position: relative; }
.legal-card, .contact-card { padding: clamp(25px, 5vw, 58px); border: 1px solid rgba(216, 220, 224, .75); border-radius: 18px; background: #fff; box-shadow: 0 20px 55px rgba(21, 34, 53, .11); }
.legal-card > h1 { display: none; }
.legal-card .small:first-of-type { margin-top: 0; padding-bottom: 24px; border-bottom: 1px solid var(--border); color: var(--muted); }
.legal-card h2, .legal-card h3 { color: var(--navy); line-height: 1.25; }
.legal-card h2 { margin: 38px 0 12px; font-family: Georgia, serif; font-size: clamp(22px, 3vw, 28px); }
.legal-card h3 { margin-top: 24px; }
.legal-card p, .legal-card li { color: #455467; }
.legal-card ul, .legal-card ol { padding-left: 25px; }
.legal-card li + li { margin-top: 8px; }
.legal-card table { width: 100%; margin: 22px 0; border-collapse: collapse; border: 1px solid var(--border); }
.legal-card th, .legal-card td { padding: 13px 15px; border-bottom: 1px solid var(--border); text-align: left; }
.legal-card th { color: var(--navy); background: #f5f7f8; }
.legal-card blockquote, .legal-card .note { margin: 22px 0; padding: 17px 20px; border-left: 4px solid var(--gold); background: #fbf7ef; color: #4c5967; }

.contact-shell { width: min(100% - 32px, 860px); }
.contact-intro { margin: 0 0 28px; color: var(--muted); }
.alert { margin-bottom: 24px; padding: 14px 16px; border-radius: 9px; font-weight: 600; }
.alert.success { color: #1c6238; background: #e7f5ec; border: 1px solid #bfe4cd; }
.alert.error { color: #8c2f2f; background: #fff0f0; border: 1px solid #f1caca; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: var(--navy); font-size: 14px; font-weight: 750; }
.optional { color: #8994a0; font-size: 12px; font-weight: 500; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #ccd4dc;
    border-radius: 9px;
    color: #1d2e41;
    background: #fff;
    font: inherit;
    outline: none;
}
.form-field textarea { min-height: 170px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199, 161, 91, .18); }
.contact-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.submit-contact { min-height: 48px; padding: 0 26px; border: 0; border-radius: 9px; color: #fff; background: var(--navy); font: inherit; font-weight: 750; cursor: pointer; }
.submit-contact:hover { background: #173653; }
.response-time { margin: 0; color: var(--muted); font-size: 13px; }

.public-footer { margin-top: auto; padding: 30px clamp(20px, 5vw, 60px); color: #fff; background: var(--navy); }
.public-footer > div { max-width: 1200px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.public-footer ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.public-footer a, .public-footer p { color: #c6d0dc; font-size: 14px; text-decoration: none; }
.public-footer a:hover, .public-footer p a { color: var(--gold); }

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    background: #f6f3ed;
}

.error-card {
    width: min(100%, 560px);
    padding: 0;
    text-align: center;
}

.error-logo {
    display: inline-block;
    margin-bottom: 50px;
}

.error-logo img {
    display: block;
    width: min(330px, 78vw);
    height: auto;
}

.error-code {
    margin: 0 0 12px;
    color: #9a7332;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.error-card h1 {
    margin: 0;
    color: var(--navy);
    font-family: Georgia, serif;
    font-size: clamp(32px, 6vw, 46px);
    line-height: 1.15;
}

.error-message {
    max-width: 440px;
    margin: 16px auto 30px;
    color: var(--muted);
    font-size: 16px;
}

.error-home {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border-radius: 9px;
    color: #fff;
    background: var(--navy);
    font-weight: 750;
    text-decoration: none;
    transition: background .2s ease;
}

.error-home:hover {
    color: #fff;
    background: var(--navy-light);
}

.error-home:focus-visible {
    outline: 3px solid rgba(199, 161, 91, .55);
    outline-offset: 4px;
}

@media (max-width: 700px) {
    .public-header { position: static; align-items: flex-start; }
    .public-nav { gap: 13px; flex-wrap: wrap; justify-content: flex-end; }
    .public-nav a { font-size: 12px; }
    .public-nav .nav-contact { padding: 6px 10px; }
    .page-hero { padding-top: 42px; }
    .contact-form { grid-template-columns: 1fr; }
    .form-field.full, .contact-actions { grid-column: 1; }
    .legal-card, .contact-card { padding: 24px 20px; }
    .legal-card table { display: block; overflow-x: auto; }
    .public-footer > div, .public-footer ul { flex-direction: column; text-align: center; }
    .public-footer ul { gap: 12px; }
    .error-page { padding: 36px 20px; }
    .error-logo { margin-bottom: 38px; }
}

/* Escala tipográfica acessível e contraste reforçado para páginas públicas. */
html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

:root {
    --muted: #566376;
}

body {
    font-size: 1rem;
    line-height: 1.65;
}

p,
li,
.public-nav a {
    font-size: 1rem;
}

small,
.page-hero .eyebrow,
.optional {
    font-size: .8125rem;
    line-height: 1.45;
}

.form-field label {
    font-size: .9375rem;
}

.form-field input,
.form-field select,
.form-field textarea,
button {
    min-height: 2.75rem;
    font-size: 1rem;
}

:focus-visible {
    outline: 3px solid #2f73ad;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
.legal-cookie-settings{min-height:44px;padding:10px 15px;border:1px solid #8a672b;border-radius:8px;background:#fff;color:#6f5225;font:700 14px Inter,system-ui,sans-serif;cursor:pointer}

/* Páginas editoriais e de descoberta */
.seo-wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.seo-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(54px, 8vw, 94px) 0 clamp(68px, 9vw, 108px);
    color: #fff;
    background:
        radial-gradient(circle at 10% 10%, rgba(199, 161, 91, .2), transparent 28%),
        radial-gradient(circle at 88% 80%, rgba(63, 115, 158, .28), transparent 31%),
        linear-gradient(135deg, #081827, #153b59);
}
.seo-hero::after {
    content: "§";
    position: absolute;
    right: clamp(-55px, 3vw, 30px);
    bottom: -115px;
    color: rgba(255, 255, 255, .035);
    font: 360px/1 Georgia, serif;
    pointer-events: none;
}
.seo-hero .seo-wrap { position: relative; z-index: 1; }
.breadcrumbs { display: flex; gap: 9px; align-items: center; margin-bottom: 42px; color: #99adbf; font-size: 13px; }
.breadcrumbs a { color: #d4dde5; text-decoration: none; }
.breadcrumbs a:hover { color: #e7c98f; }
.breadcrumbs span:last-child { max-width: 600px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-hero .eyebrow, .seo-process .eyebrow, .seo-faq .eyebrow, .seo-cta .eyebrow, .seo-sidebar .eyebrow {
    margin: 0 0 12px;
    color: #cda85f;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.seo-hero h1 { max-width: 900px; margin: 0; color: #fff; font: 650 clamp(38px, 6vw, 68px)/1.06 Georgia, serif; letter-spacing: -.025em; }
.seo-lead { max-width: 780px; margin: 24px 0 0; color: #c9d4de; font-size: clamp(17px, 2vw, 20px); line-height: 1.7; }
.seo-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.seo-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.seo-button:hover { transform: translateY(-1px); }
.seo-button.primary { color: #1f180a; background: #cda85f; }
.seo-button.primary:hover, .seo-button.gold:hover { background: #e2c979; }
.seo-button.secondary { border-color: rgba(255, 255, 255, .3); color: #fff; background: rgba(255, 255, 255, .04); }
.seo-button.secondary:hover { border-color: #cda85f; }

.seo-highlights { position: relative; z-index: 2; margin-top: -38px; }
.seo-highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.seo-highlight-grid article { padding: 28px; border: 1px solid #e2e7ec; border-radius: 16px; background: #fff; box-shadow: 0 18px 46px rgba(13, 32, 50, .1); }
.seo-highlight-grid h2 { margin: 0; color: #10253d; font: 650 22px/1.2 Georgia, serif; }
.seo-highlight-grid p { margin: 11px 0 0; color: #5d6a7b; font-size: 15px; line-height: 1.65; }

.seo-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: clamp(40px, 7vw, 84px); padding-block: clamp(64px, 9vw, 108px); }
.seo-article > section + section { margin-top: 54px; padding-top: 50px; border-top: 1px solid #e2e7ec; }
.seo-article h2 { margin: 0 0 18px; color: #10253d; font: 650 clamp(28px, 4vw, 39px)/1.2 Georgia, serif; letter-spacing: -.015em; }
.seo-article h3 { margin: 0; color: #10253d; font: 650 20px/1.3 Georgia, serif; }
.seo-article p { margin: 0; color: #48586b; font-size: 17px; line-height: 1.82; }
.seo-article p + p { margin-top: 18px; }
.seo-article ul { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.seo-article ul li { position: relative; padding: 14px 18px 14px 46px; border: 1px solid #e3e8ed; border-radius: 10px; color: #46576a; background: #fff; }
.seo-article ul li::before { content: "✓"; position: absolute; left: 18px; top: 14px; color: #9b752f; font-weight: 900; }

.seo-process ol { display: grid; gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: none; }
.seo-process li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.seo-process li > span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; color: #fff; background: #10253d; font-weight: 850; }
.seo-process li p { margin-top: 5px; font-size: 15px; line-height: 1.6; }

.seo-faq details { border-top: 1px solid #dfe5ea; }
.seo-faq details:last-child { border-bottom: 1px solid #dfe5ea; }
.seo-faq summary { position: relative; padding: 20px 42px 20px 0; color: #18324b; font-weight: 800; cursor: pointer; list-style: none; }
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after { content: "+"; position: absolute; right: 8px; color: #9b752f; font-size: 24px; font-weight: 400; }
.seo-faq details[open] summary::after { content: "−"; }
.seo-faq details p { padding: 0 42px 22px 0; font-size: 15px; line-height: 1.7; }

.seo-sidebar { align-self: start; position: sticky; top: 104px; display: grid; gap: 18px; }
.seo-sidebar-card, .seo-sidebar-note { padding: 26px; border: 1px solid #e0e5ea; border-radius: 15px; background: #f9fafb; }
.seo-sidebar-card h2 { margin: 0 0 18px; color: #10253d; font: 650 24px/1.25 Georgia, serif; }
.seo-sidebar-card nav { display: grid; }
.seo-sidebar-card nav a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid #dde3e8; color: #314a62; font-size: 14px; font-weight: 750; text-decoration: none; }
.seo-sidebar-card nav a:hover { color: #8b672b; }
.seo-sidebar-note { border-color: #e5d5b5; background: #fbf7ef; }
.seo-sidebar-note strong { color: #664f29; }
.seo-sidebar-note p { margin: 8px 0 0; color: #6d6250; font-size: 13px; line-height: 1.6; }

.seo-cta { padding: clamp(62px, 9vw, 96px) 0; text-align: center; color: #fff; background: linear-gradient(140deg, #0e2338, #173e5d); }
.seo-cta .seo-wrap { max-width: 780px; }
.seo-cta h2 { margin: 0; color: #fff; font: 650 clamp(32px, 5vw, 48px)/1.15 Georgia, serif; }
.seo-cta p:not(.eyebrow) { max-width: 650px; margin: 18px auto 28px; color: #c5d0da; font-size: 17px; }
.seo-button.gold { color: #211909; background: #cda85f; }

@media (max-width: 900px) {
    .seo-highlight-grid { grid-template-columns: 1fr; }
    .seo-highlights { margin-top: -30px; }
    .seo-content-layout { grid-template-columns: 1fr; }
    .seo-sidebar { position: static; grid-template-columns: 1fr 1fr; }
    .public-nav a:nth-child(3), .public-nav a:nth-child(4) { display: none; }
}

@media (max-width: 620px) {
    .seo-wrap { width: min(100% - 28px, 1160px); }
    .seo-hero { padding-top: 40px; }
    .breadcrumbs { margin-bottom: 30px; }
    .seo-hero h1 { font-size: clamp(36px, 11vw, 49px); }
    .seo-hero-actions { display: grid; }
    .seo-button { width: 100%; }
    .seo-highlight-grid article { padding: 23px 21px; }
    .seo-content-layout { padding-block: 64px; }
    .seo-article > section + section { margin-top: 42px; padding-top: 40px; }
    .seo-article p { font-size: 16px; }
    .seo-sidebar { grid-template-columns: 1fr; }
    .public-header { gap: 12px; }
    .public-nav a:not(.nav-contact) { display: none; }
}
