/* Sistema de documentos jurídicos e aceite obrigatório da Nacional. */
html.legal-consent-pending body > :not(#legal-consent-root) {
    visibility: hidden;
}

html.legal-consent-open,
html.legal-consent-open body {
    overflow: hidden;
}

#legal-consent-root {
    position: fixed;
    z-index: 10000;
    inset: 0;
    color: #f4eedf;
    font-family: 'Manrope', sans-serif;
}

.legal-consent-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 10, 7, 0.82);
    backdrop-filter: blur(7px);
}

.legal-consent-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 100%;
    padding: 24px;
    outline: none;
}

.legal-consent-dialog-inner {
    width: min(100%, 760px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid rgba(212, 175, 55, 0.34);
    border-radius: 18px;
    background: linear-gradient(155deg, #203126 0%, #0e1712 100%);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.legal-consent-eyebrow,
.legal-page-eyebrow {
    margin: 0 0 12px;
    color: #d4af37;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.legal-consent-dialog h2,
.legal-page h1,
.legal-page h2,
.legal-page h3 {
    color: #f4eedf;
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.legal-consent-dialog h2 {
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 3.35rem);
    line-height: 0.95;
}

.legal-consent-intro {
    max-width: 62ch;
    margin: 18px 0 0;
    color: #c5cbbd;
    font-size: 1rem;
    line-height: 1.65;
}

.legal-consent-status {
    min-height: 1.5em;
    margin: 14px 0 0;
    color: #f3d98d;
    font-weight: 700;
}

.legal-consent-documents {
    margin-top: 26px;
    border-top: 1px solid rgba(212, 175, 55, 0.23);
}

.legal-consent-document {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.75fr);
    gap: 24px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.23);
}

.legal-consent-document h3 {
    margin: 0;
    color: #f4eedf;
    font-size: 1.28rem;
}

.legal-consent-document p {
    margin: 5px 0 8px;
    color: #b8bead;
    font-size: 0.9rem;
    line-height: 1.5;
}

.legal-consent-document a,
.legal-page a {
    color: #e4c76f;
    text-underline-offset: 3px;
}

.legal-new-tab-note {
    white-space: nowrap;
    font-size: 0.78rem;
}

.legal-consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-height: 44px;
    color: #f1ecdc;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.45;
    cursor: pointer;
}

.legal-consent-checkbox input {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    margin-top: 2px;
    accent-color: #d4af37;
}

.legal-consent-reviewing .legal-consent-checkbox {
    display: none;
}

.legal-consent-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

.legal-consent-accept,
.legal-consent-decline,
.legal-preferences-button {
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

.legal-consent-accept {
    border: 1px solid rgba(255, 233, 165, 0.4);
    background: linear-gradient(135deg, #d4af37, #b99023);
    color: #162017;
}

.legal-consent-accept:disabled {
    border-color: rgba(244, 238, 223, 0.16);
    background: rgba(244, 238, 223, 0.1);
    color: rgba(244, 238, 223, 0.45);
    cursor: not-allowed;
}

.legal-consent-decline,
.legal-preferences-button {
    border: 1px solid rgba(212, 175, 55, 0.32);
    background: transparent;
    color: #f4eedf;
}

.legal-consent-accept:not(:disabled):hover,
.legal-consent-decline:hover,
.legal-preferences-button:hover {
    transform: translateY(-1px);
    border-color: #d4af37;
}

.legal-consent-dialog a:focus-visible,
.legal-consent-dialog button:focus-visible,
.legal-consent-dialog input:focus-visible,
.legal-page a:focus-visible,
.legal-preferences-button:focus-visible {
    outline: 3px solid #f6dd8f;
    outline-offset: 3px;
}

.legal-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 3%, rgba(212, 175, 55, 0.12), transparent 24%),
        linear-gradient(180deg, #0b120f 0%, #132019 55%, #0b120f 100%);
    color: #c5cbbd;
    font-family: 'Manrope', sans-serif;
}

.legal-page .site-shell-header {
    position: sticky;
    background: rgba(8, 13, 10, 0.9);
    border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}

.legal-page .logo {
    color: #f7f1e5;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    letter-spacing: 0.22em;
}

.legal-page .legal-nav-link {
    color: #e4c76f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-page-main {
    width: min(100% - 40px, 1120px);
    margin: 0 auto;
    padding: clamp(58px, 9vw, 105px) 0 80px;
}

.legal-page-intro {
    max-width: 760px;
    padding-bottom: 38px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.28);
}

.legal-page h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(3.1rem, 8vw, 5.4rem);
    line-height: 0.88;
}

.legal-page-summary {
    max-width: 63ch;
    margin: 22px 0 0;
    color: #c5cbbd;
    font-size: 1.04rem;
    line-height: 1.7;
}

.legal-updated {
    margin: 22px 0 0;
    color: #e4c76f;
    font-size: 0.84rem;
    font-weight: 800;
}

.legal-reading-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 680px);
    gap: clamp(36px, 7vw, 100px);
    padding-top: 45px;
}

.legal-index {
    position: sticky;
    top: 100px;
    align-self: start;
    padding-left: 17px;
    border-left: 1px solid rgba(212, 175, 55, 0.35);
}

.legal-index h2 {
    margin: 0 0 12px;
    font-size: 1.3rem;
}

.legal-index ol {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.legal-index a {
    color: #bdc2b6;
    font-size: 0.86rem;
    line-height: 1.35;
}

.legal-index a:hover { color: #e4c76f; }

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

.legal-content section + section {
    margin-top: 42px;
    padding-top: 38px;
    border-top: 1px solid rgba(244, 238, 223, 0.12);
}

.legal-content h2 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1;
}

.legal-content p,
.legal-content li {
    max-width: 66ch;
    color: #c5cbbd;
    line-height: 1.75;
}

.legal-content ul {
    display: grid;
    gap: 8px;
    margin: 16px 0 0;
    padding-left: 20px;
}

.legal-placeholder {
    margin-top: 16px;
    padding: 16px 18px;
    border-left: 3px solid #d4af37;
    background: rgba(212, 175, 55, 0.08);
    color: #f2dfa0 !important;
    font-weight: 700;
}

.legal-page footer {
    border-top: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(6, 11, 8, 0.74);
}

.legal-page .footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 34px 0;
}

.legal-page .footer-brand h4 { margin: 0; color: #f4eedf; letter-spacing: 0.16em; }
.legal-page .footer-brand p,
.legal-page .footer-info p { margin: 5px 0 0; color: #b8bead; font-size: 0.86rem; }
.legal-footer-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.legal-footer-links a { font-size: 0.82rem; }

.site-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
    margin-top: 14px;
}

.site-legal-links a,
.site-legal-links button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #d9bf72;
    font: inherit;
    font-size: 0.78rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-legal-links button:focus-visible,
.site-legal-links a:focus-visible {
    outline: 2px solid #f6dd8f;
    outline-offset: 3px;
}

.legal-dashboard-footer {
    padding: 18px 24px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(6, 14, 10, 0.82);
}

.legal-dashboard-footer .site-legal-links { justify-content: center; margin: 0; }

@media (max-width: 720px) {
    .legal-consent-dialog { padding: 12px; }
    .legal-consent-dialog-inner { max-height: calc(100vh - 24px); padding: 26px 20px; border-radius: 14px; }
    .legal-consent-document { grid-template-columns: 1fr; gap: 15px; }
    .legal-consent-actions { position: sticky; bottom: -26px; flex-direction: column-reverse; margin: 22px -20px -26px; padding: 16px 20px; background: #101913; border-top: 1px solid rgba(212, 175, 55, 0.18); }
    .legal-consent-actions button { width: 100%; }
    .legal-page-main { width: min(100% - 32px, 1120px); padding-top: 52px; }
    .legal-reading-grid { grid-template-columns: 1fr; gap: 36px; }
    .legal-index { position: static; padding: 0 0 18px; border: 0; border-bottom: 1px solid rgba(212, 175, 55, 0.28); }
    .legal-page .footer-content { flex-direction: column; }
    .site-legal-links { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Correção final das páginas jurídicas: isola o layout do CSS global antigo. */
body.legal-page {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 14% 7%, rgba(212, 175, 55, 0.12), transparent 27%),
        radial-gradient(circle at 88% 16%, rgba(80, 111, 76, 0.22), transparent 30%),
        linear-gradient(180deg, #061009 0%, #102019 48%, #07110b 100%) !important;
    color: #d6dccf !important;
    font-family: 'Manrope', sans-serif !important;
}

body.legal-page .site-shell-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    width: 100% !important;
    padding: 0 !important;
    background: rgba(6, 14, 9, 0.94) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22) !important;
    backdrop-filter: blur(14px);
}

body.legal-page .site-shell-header .nav-container {
    width: min(100% - 40px, 1120px) !important;
    min-height: 76px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

body.legal-page .logo {
    color: #fff8ea !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(1.35rem, 2vw, 1.9rem) !important;
    letter-spacing: 0.22em !important;
    text-shadow: none !important;
}

body.legal-page .legal-nav-link {
    color: #e7c765 !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
}

body.legal-page .legal-page-main {
    position: relative !important;
    width: min(100% - 40px, 1120px) !important;
    margin: 0 auto !important;
    padding: clamp(54px, 8vw, 92px) 0 clamp(72px, 9vw, 110px) !important;
    background: transparent !important;
    color: #d6dccf !important;
}

body.legal-page .legal-page-intro {
    position: relative !important;
    max-width: 820px !important;
    padding: clamp(28px, 4vw, 44px) !important;
    overflow: hidden !important;
    border: 1px solid rgba(212, 175, 55, 0.24) !important;
    border-radius: 28px !important;
    background:
        linear-gradient(135deg, rgba(244, 238, 223, 0.08), rgba(212, 175, 55, 0.03)),
        rgba(12, 26, 18, 0.86) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24) !important;
}

body.legal-page .legal-page-intro::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    opacity: 0.7;
}

body.legal-page .legal-page-eyebrow,
body.legal-page .legal-updated {
    color: #e7c765 !important;
}

body.legal-page h1,
body.legal-page h2,
body.legal-page h3 {
    color: #fff8ea !important;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
}

body.legal-page h1 {
    max-width: 760px !important;
    margin: 0 !important;
    font-size: clamp(3.1rem, 8vw, 5.4rem) !important;
    line-height: 0.9 !important;
}

body.legal-page .legal-page-summary {
    max-width: 63ch !important;
    margin: 22px 0 0 !important;
    color: #cbd2c3 !important;
    font-size: 1.04rem !important;
    line-height: 1.7 !important;
}

body.legal-page .legal-reading-grid {
    display: grid !important;
    grid-template-columns: minmax(190px, 240px) minmax(0, 720px) !important;
    gap: clamp(34px, 6vw, 86px) !important;
    align-items: start !important;
    padding-top: clamp(38px, 5vw, 58px) !important;
}

body.legal-page .legal-index {
    position: sticky !important;
    top: 104px !important;
    align-self: start !important;
    padding: 18px 0 18px 18px !important;
    border-left: 1px solid rgba(212, 175, 55, 0.42) !important;
    background: transparent !important;
}

body.legal-page .legal-index a,
body.legal-page .legal-content p,
body.legal-page .legal-content li {
    color: #d0d7ca !important;
}

body.legal-page .legal-index a:hover,
body.legal-page .legal-footer-links a:hover,
body.legal-page .legal-nav-link:hover {
    color: #f4d87a !important;
}

body.legal-page .legal-content section + section {
    margin-top: 38px !important;
    padding-top: 36px !important;
    border-top: 1px solid rgba(244, 238, 223, 0.12) !important;
}

body.legal-page .legal-placeholder {
    margin-top: 16px !important;
    padding: 18px 20px !important;
    border-left: 3px solid #d4af37 !important;
    border-radius: 0 14px 14px 0 !important;
    background: rgba(212, 175, 55, 0.1) !important;
    color: #f2dfa0 !important;
    font-weight: 700 !important;
}

body.legal-page footer {
    border-top: 1px solid rgba(212, 175, 55, 0.18) !important;
    background: rgba(6, 11, 8, 0.84) !important;
}

body.legal-page .footer-content {
    width: min(100% - 40px, 1120px) !important;
    margin: 0 auto !important;
    padding: 34px 0 !important;
}

@media (max-width: 720px) {
    body.legal-page .site-shell-header .nav-container,
    body.legal-page .legal-page-main,
    body.legal-page .footer-content { width: min(100% - 28px, 1120px) !important; }
    body.legal-page .site-shell-header .nav-container { min-height: 66px !important; }
    body.legal-page .logo { font-size: 1.22rem !important; letter-spacing: 0.16em !important; }
    body.legal-page .legal-reading-grid { grid-template-columns: 1fr !important; gap: 34px !important; }
    body.legal-page .legal-index { position: static !important; padding: 0 0 18px !important; border-left: 0 !important; border-bottom: 1px solid rgba(212, 175, 55, 0.28) !important; }
    body.legal-page h1 { font-size: clamp(2.7rem, 15vw, 4rem) !important; }
}
