/* Documentos jurídicos (Política de Privacidade etc.)
   Layout com índice lateral, seções numeradas e tabelas.
   Tudo escopado em .cc-legal-page para não conflitar com Bootstrap/style.css. */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

.cc-legal-page {
    --cc-blue: #0b3548;
    --cc-orange: #db6826;
    --cc-ink: #304859;
    --cc-muted: #667987;
    --cc-line: #e1e8ee;
    --cc-bg: #f5f7fa;
    --cc-radius: 22px;
    --cc-width: 1240px;
    --cc-scroll-offset: 24px;
    background: var(--cc-bg);
    color: var(--cc-ink);
    font-family: Poppins, 'Outfit', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
}
html:has(.cc-legal-page) { scroll-behavior: smooth; }

.cc-legal-page *,
.cc-legal-page *::before,
.cc-legal-page *::after { box-sizing: border-box; }
.cc-legal-page [hidden] { display: none !important; }
.cc-legal-page a { color: var(--cc-blue); text-decoration: none; }
.cc-legal-page a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cc-legal-page button:focus-visible,
.cc-legal-page a:focus-visible,
.cc-legal-page summary:focus-visible { outline: 3px solid #137b9a; outline-offset: 4px; }

.cc-legal-page .cc-icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cc-legal-page .cc-icons { position: absolute; width: 0; height: 0; overflow: hidden; }

.cc-legal-page .cc-shell { width: calc(100% - 48px); max-width: var(--cc-width); margin-inline: auto; }
.cc-legal-page .cc-skip { position: fixed; top: 10px; left: 16px; z-index: 10000; transform: translateY(-150%); padding: 10px 18px; border-radius: 8px; background: var(--cc-blue); color: #fff; }
.cc-legal-page .cc-skip:focus { transform: none; }

/* Breadcrumb */
.cc-legal-page .cc-breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--cc-muted); font-size: 12px; padding: 27px 2px 21px; }
.cc-legal-page .cc-breadcrumb .cc-icon { width: 12px; height: 12px; color: #8696a1; }
.cc-legal-page .cc-breadcrumb a { color: var(--cc-muted); }

/* Hero */
.cc-legal-page .cc-legal-hero { background: radial-gradient(ellipse at top right, #f8eae0 0, transparent 42%), linear-gradient(115deg, #fff, #fbfcfd); border: 1px solid var(--cc-line); border-radius: 26px; padding: 35px 40px 37px; box-shadow: 0 13px 28px #16394d05; display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 29px; }
.cc-legal-page .cc-eyebrow { margin: 0 0 9px; font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: #b75219; }
.cc-legal-page .cc-legal-hero h1 { font-family: inherit; font-size: clamp(30px, 3.2vw, 42px); font-weight: 600; letter-spacing: -1.1px; line-height: 1.3; color: var(--cc-blue); max-width: 840px; margin: 0 0 17px; }
.cc-legal-page .cc-updated { margin: 0; color: #5d7382; display: flex; gap: 9px; align-items: center; font-size: 13px; line-height: 1.7; }
.cc-legal-page .cc-updated .cc-icon { width: 16px; height: 16px; color: #708895; }
.cc-legal-page .cc-updated time { font-weight: 500; color: var(--cc-blue); }
.cc-legal-page .cc-print { display: inline-flex; align-items: center; gap: 9px; justify-content: center; background: #fff; border: 1px solid #d4dfe6; border-radius: 10px; color: var(--cc-blue); padding: 11px 17px; min-height: 44px; flex: none; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.cc-legal-page .cc-print .cc-icon { width: 17px; height: 17px; }
.cc-legal-page .cc-print:hover { background: #eef4f7; border-color: #a8bdc9; }

/* Layout índice + conteúdo */
.cc-legal-page .cc-document-layout { display: grid; grid-template-columns: 278px minmax(0, 1fr); align-items: start; gap: 27px; padding-bottom: 62px; }
.cc-legal-page .cc-index { position: sticky; top: var(--cc-scroll-offset); min-width: 0; background: #fff; border: 1px solid var(--cc-line); border-radius: 18px; box-shadow: 0 7px 18px #16394d04; overflow: hidden; }
.cc-legal-page .cc-index-summary { padding: 21px 19px 17px; display: flex; align-items: center; justify-content: space-between; gap: 9px; list-style: none; cursor: pointer; color: var(--cc-blue); }
.cc-legal-page .cc-index-summary::-webkit-details-marker { display: none; }
.cc-legal-page .cc-index-title { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.cc-legal-page .cc-index-title .cc-icon { color: var(--cc-orange); width: 18px; height: 18px; }
.cc-legal-page .cc-index-toggle { width: 15px; height: 15px; transition: transform .2s; }
.cc-legal-page .cc-index details[open] .cc-index-toggle { transform: rotate(180deg); }
.cc-legal-page .cc-index-nav { max-height: calc(100dvh - 120px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #cedbe3 transparent; padding: 0 10px 15px; }
.cc-legal-page .cc-index-nav ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; }
.cc-legal-page .cc-index-link { display: grid; grid-template-columns: 23px minmax(0, 1fr); gap: 8px; align-items: start; padding: 9px 10px; border-radius: 8px; font-size: 11.5px; line-height: 1.65; color: #5d7180; border-left: 3px solid transparent; }
.cc-legal-page .cc-index-link .cc-index-number { font-weight: 500; color: #8798a4; font-variant-numeric: tabular-nums; }
.cc-legal-page .cc-index-link:hover { background: #f3f7fa; color: var(--cc-blue); text-decoration: none; }
.cc-legal-page .cc-index-link[aria-current=true] { background: #edf4f7; border-left-color: var(--cc-orange); color: var(--cc-blue); font-weight: 500; }
.cc-legal-page .cc-index-link[aria-current=true] .cc-index-number { color: #b75219; }

/* Seções */
.cc-legal-page .cc-legal-content { min-width: 0; display: grid; gap: 28px; outline: none; }
.cc-legal-page .cc-section { background: #fff; border: 1px solid var(--cc-line); border-radius: var(--cc-radius); padding: 31px 34px 32px; box-shadow: 0 8px 24px #16394d03; scroll-margin-top: var(--cc-scroll-offset); min-width: 0; }
.cc-legal-page .cc-section h2 { display: flex; gap: 14px; align-items: flex-start; font-family: inherit; color: var(--cc-blue); font-size: 17px; font-weight: 600; line-height: 1.6; letter-spacing: .05px; margin: 0 0 26px; scroll-margin-top: var(--cc-scroll-offset); outline: none; }
.cc-legal-page .cc-section-number { display: flex; align-items: center; justify-content: center; min-width: 35px; height: 35px; padding: 0 4px; border-radius: 10px; background: #fdf0e7; color: #b65118; font-size: 15px; font-weight: 600; line-height: 1; flex: none; margin-top: -3px; font-variant-numeric: tabular-nums; }
.cc-legal-page .cc-section p { margin: 0 0 20px; font-size: 15px; line-height: 1.95; overflow-wrap: anywhere; color: var(--cc-ink); }
.cc-legal-page .cc-clause-number { font-weight: 600; color: var(--cc-blue); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-legal-page .cc-section a { color: var(--cc-blue); text-decoration: underline; text-decoration-color: #99b4c3; text-underline-offset: 3px; }
.cc-legal-page .cc-section a:hover { color: #b65118; text-decoration-color: #b65118; }
.cc-legal-page .cc-subsection { font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.6; color: var(--cc-blue); margin: 30px 0 14px; }
.cc-legal-page .cc-section h2 + .cc-subsection { margin-top: 0; }
.cc-legal-page .cc-definitions { list-style: lower-alpha; margin: 0 0 26px; padding-left: 25px; }
.cc-legal-page .cc-definitions li { padding-left: 7px; font-size: 15px; line-height: 1.95; margin-bottom: 12px; overflow-wrap: anywhere; }
.cc-legal-page .cc-definitions li::marker { font-weight: 500; color: var(--cc-blue); font-variant-numeric: tabular-nums; }
.cc-legal-page .cc-definitions li:last-child { margin-bottom: 0; }
.cc-legal-page .cc-section > :last-child { margin-bottom: 0; }

/* Tabelas */
.cc-legal-page .cc-table-wrap { max-width: 100%; overflow-x: auto; margin: 22px 0 26px; border: 1px solid #dde5ed; border-radius: 12px; }
.cc-legal-page .cc-section h2 + .cc-table-wrap { margin-top: 0; }
.cc-legal-page .cc-legal-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.7; text-align: left; margin: 0; }
.cc-legal-page .cc-legal-table th { background: var(--cc-blue); color: #fff; font-weight: 500; padding: 14px 16px; }
.cc-legal-page .cc-legal-table td { padding: 14px 16px; border-top: 1px solid #e3e9ef; vertical-align: top; }
.cc-legal-page .cc-legal-table tbody tr:nth-child(even) { background: #f5f8fa; }
.cc-legal-page .cc-legal-table td:first-child { font-weight: 500; color: var(--cc-blue); width: 28%; }

/* Voltar ao topo */
.cc-legal-page .cc-back-top { position: fixed; right: 23px; bottom: 23px; z-index: 9999; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: var(--cc-blue); color: #fff; border: 1px solid #ffffff55; border-radius: 50%; box-shadow: 0 7px 18px #0b354830; transition: background .15s; }
.cc-legal-page .cc-back-top:hover { background: #155069; text-decoration: none; }
.cc-legal-page .cc-back-top .cc-icon { width: 21px; height: 21px; }

@media (min-width: 1600px) {
    .cc-legal-page .cc-shell { max-width: 1300px; }
    .cc-legal-page .cc-document-layout { grid-template-columns: 287px minmax(0, 1fr); gap: 30px; }
    .cc-legal-page .cc-section { padding: 34px 39px; }
}
@media (max-width: 1050px) {
    .cc-legal-page .cc-document-layout { grid-template-columns: 244px minmax(0, 1fr); gap: 21px; }
    .cc-legal-page .cc-section { padding: 27px; }
    .cc-legal-page .cc-section h2 { font-size: 16px; gap: 11px; }
    .cc-legal-page .cc-index-link { font-size: 11px; padding-inline: 8px; gap: 5px; }
    .cc-legal-page .cc-legal-hero { padding: 31px; }
    .cc-legal-page .cc-legal-hero h1 { font-size: 35px; }
    .cc-legal-page .cc-section p,
    .cc-legal-page .cc-definitions li { font-size: 14px; }
}
@media (max-width: 850px) {
    .cc-legal-page .cc-document-layout { grid-template-columns: minmax(0, 1fr); gap: 21px; padding-bottom: 39px; }
    .cc-legal-page .cc-index { position: static; border-radius: 15px; }
    .cc-legal-page .cc-index-summary { padding: 16px 19px; }
    .cc-legal-page .cc-index-nav { max-height: 380px; padding-bottom: 13px; }
    .cc-legal-page .cc-index-link { font-size: 12px; padding: 10px; grid-template-columns: 27px minmax(0, 1fr); }
    .cc-legal-page .cc-section h2 { font-size: 17px; }
    .cc-legal-page .cc-section p,
    .cc-legal-page .cc-definitions li { font-size: 15px; }
    .cc-legal-page .cc-legal-hero { margin-bottom: 22px; }
    .cc-legal-page .cc-breadcrumb { padding-top: 22px; padding-bottom: 17px; }
    .cc-legal-page .cc-legal-hero h1 { font-size: 34px; }
    .cc-legal-page .cc-updated { font-size: 12px; }
    .cc-legal-page .cc-print { padding: 10px 14px; font-size: 12px; }
}
@media (max-width: 700px) {
    .cc-legal-page .cc-legal-table { min-width: 590px; }
    .cc-legal-page .cc-table-wrap { border-radius: 8px; }
}
@media (max-width: 600px) {
    .cc-legal-page .cc-shell { width: calc(100% - 30px); }
    .cc-legal-page .cc-breadcrumb { font-size: 11px; padding: 19px 1px 15px; }
    .cc-legal-page .cc-legal-hero { padding: 25px 23px; border-radius: 21px; display: block; }
    .cc-legal-page .cc-eyebrow { font-size: 10px; letter-spacing: 1.25px; margin-bottom: 10px; }
    .cc-legal-page .cc-legal-hero h1 { font-size: 30px; letter-spacing: -.75px; margin-bottom: 16px; }
    .cc-legal-page .cc-updated { align-items: flex-start; font-size: 11px; gap: 7px; line-height: 1.8; }
    .cc-legal-page .cc-updated .cc-icon { margin-top: 3px; width: 15px; height: 15px; }
    .cc-legal-page .cc-print { margin-top: 20px; min-height: 42px; padding: 9px 14px; font-size: 12px; }
    .cc-legal-page .cc-document-layout { gap: 18px; }
    .cc-legal-page .cc-index-summary { padding: 15px 17px; }
    .cc-legal-page .cc-index-title { font-size: 13px; }
    .cc-legal-page .cc-legal-content { gap: 22px; }
    .cc-legal-page .cc-section { padding: 24px 22px 25px; border-radius: 19px; }
    .cc-legal-page .cc-section h2 { font-size: 15px; line-height: 1.7; gap: 11px; margin-bottom: 22px; }
    .cc-legal-page .cc-section-number { min-width: 29px; height: 29px; border-radius: 8px; font-size: 13px; margin-top: -1px; }
    .cc-legal-page .cc-section p,
    .cc-legal-page .cc-definitions li { font-size: 14px; line-height: 1.9; }
    .cc-legal-page .cc-section p { margin-bottom: 18px; }
    .cc-legal-page .cc-subsection { margin-top: 26px; margin-bottom: 12px; }
    .cc-legal-page .cc-definitions { padding-left: 21px; margin-bottom: 24px; }
    .cc-legal-page .cc-definitions li { padding-left: 4px; }
    .cc-legal-page .cc-table-wrap { margin-top: 20px; margin-bottom: 24px; }
    .cc-legal-page .cc-back-top { width: 44px; height: 44px; right: 16px; bottom: 17px; }
}
@media (max-width: 360px) {
    .cc-legal-page .cc-shell { width: calc(100% - 24px); }
    .cc-legal-page .cc-legal-hero { padding: 23px 20px; }
    .cc-legal-page .cc-legal-hero h1 { font-size: 27px; }
    .cc-legal-page .cc-section { padding: 22px 18px; }
    .cc-legal-page .cc-section h2 { font-size: 14px; gap: 9px; }
    .cc-legal-page .cc-section p,
    .cc-legal-page .cc-definitions li { font-size: 13.5px; }
    .cc-legal-page .cc-updated { font-size: 10.5px; }
}
@media (prefers-reduced-motion: reduce) {
    html:has(.cc-legal-page) { scroll-behavior: auto; }
    .cc-legal-page * { transition: none !important; }
}

@media print {
    @page { size: A4; margin: 18mm; }
    html:has(.cc-legal-page) { scroll-behavior: auto; }
    body:has(.cc-legal-page) { background: #fff; }
    body:has(.cc-legal-page) .top-bar,
    body:has(.cc-legal-page) #sidebar,
    body:has(.cc-legal-page) #menu-overlay,
    body:has(.cc-legal-page) .cc-footer,
    body:has(.cc-legal-page) #ccCookieBanner,
    body:has(.cc-legal-page) #ccCookieModal { display: none !important; }
    .cc-legal-page { background: #fff; color: #111; font-size: 10.5pt; line-height: 1.65; }
    .cc-legal-page .cc-shell { width: 100%; max-width: none; }
    .cc-legal-page .cc-breadcrumb,
    .cc-legal-page .cc-index,
    .cc-legal-page .cc-print,
    .cc-legal-page .cc-back-top,
    .cc-legal-page .cc-skip,
    .cc-legal-page .cc-eyebrow,
    .cc-legal-page .cc-legal-voltar { display: none !important; }
    .cc-legal-page .cc-legal-hero { display: block; background: #fff; border: 0; box-shadow: none; padding: 0; margin: 0 0 23px; }
    .cc-legal-page .cc-legal-hero h1 { font-size: 24pt; letter-spacing: -.5px; max-width: none; color: #000; margin-bottom: 12px; }
    .cc-legal-page .cc-updated,
    .cc-legal-page .cc-updated time { font-size: 10pt; color: #444; }
    .cc-legal-page .cc-document-layout,
    .cc-legal-page .cc-legal-content { display: block; padding: 0; }
    .cc-legal-page .cc-section { padding: 0; border: 0; border-radius: 0; box-shadow: none; margin: 0 0 23px; background: #fff; }
    .cc-legal-page .cc-section h2 { font-size: 11pt; color: #000; line-height: 1.5; display: block; break-after: avoid; margin: 0 0 12px; }
    .cc-legal-page .cc-section-number { display: inline; min-width: 0; height: auto; background: none; color: #000; font-size: 11pt; margin: 0; padding: 0; border-radius: 0; }
    .cc-legal-page .cc-section p,
    .cc-legal-page .cc-definitions li { font-size: 10.5pt; line-height: 1.7; margin-bottom: 12px; orphans: 3; widows: 3; }
    .cc-legal-page .cc-section a,
    .cc-legal-page .cc-clause-number,
    .cc-legal-page .cc-definitions li::marker { color: #111; }
    .cc-legal-page .cc-table-wrap { overflow: visible; border: 0; }
    .cc-legal-page .cc-legal-table { min-width: 0; font-size: 9pt; }
    .cc-legal-page .cc-legal-table th { background: #eee; color: #000; }
    .cc-legal-page .cc-legal-table tr { break-inside: avoid; }
}
