:root {
    --legal-primary: #4f46e5;
    --legal-primary-dark: #3730a3;
    --legal-primary-soft: #eef2ff;
    --legal-ink: #182230;
    --legal-muted: #5f6c7b;
    --legal-border: #dde3ea;
    --legal-surface: #ffffff;
    --legal-background: #f5f7fa;
    --legal-warning: #9a6700;
    --legal-warning-bg: #fff8e6;
    --legal-radius: 14px;
    --legal-shadow: 0 16px 40px rgba(24, 34, 48, .08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    color: var(--legal-ink);
    background: var(--legal-background);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--legal-primary-dark);
}

a:hover {
    color: var(--legal-primary);
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(79, 70, 229, .3);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: #fff;
    background: var(--legal-primary-dark);
    border-radius: 8px;
    transform: translateY(-150%);
    transition: transform .2s ease;
}

.skip-link:focus {
    color: #fff;
    transform: translateY(0);
}

.legal-container,
.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.legal-hero {
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(129, 140, 248, .35), transparent 30%),
        linear-gradient(135deg, #172033 0%, #302e81 58%, #4338ca 100%);
}

.legal-topbar {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.brand:hover {
    color: #fff;
}

.brand__mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--legal-primary-dark);
    background: #fff;
    border-radius: 10px;
    font-size: 14px;
    letter-spacing: .04em;
}

.legal-topbar__links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.legal-topbar__links a {
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.legal-topbar__links a:hover {
    color: #fff;
}

.legal-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
    align-items: end;
    padding-block: 66px 76px;
}

.legal-kicker {
    display: inline-block;
    margin-bottom: 14px;
    color: #c7d2fe;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.legal-hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.legal-lead {
    max-width: 760px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(17px, 2vw, 20px);
}

.document-meta {
    min-width: 220px;
    padding: 18px 20px;
    color: rgba(255, 255, 255, .78);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    font-size: 14px;
    backdrop-filter: blur(8px);
}

.document-meta strong {
    display: block;
    color: #fff;
}

.document-meta dl,
.document-meta dt,
.document-meta dd {
    margin: 0;
}

.document-meta div + div {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.document-meta dt {
    color: rgba(255, 255, 255, .64);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.document-meta dd {
    color: #fff;
    font-weight: 650;
}

.legal-layout,
.layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    padding-block: 42px 64px;
}

.legal-sidebar {
    position: sticky;
    top: 20px;
}

.toc {
    padding: 22px;
    background: var(--legal-surface);
    border: 1px solid var(--legal-border);
    border-radius: var(--legal-radius);
    box-shadow: 0 8px 24px rgba(24, 34, 48, .04);
}

.toc__title {
    margin: 0 0 14px;
    color: var(--legal-ink);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.toc ol {
    margin: 0;
    padding-left: 22px;
}

.toc li {
    margin: 6px 0;
    color: #8a94a3;
    font-size: 13px;
}

.toc a {
    display: block;
    color: var(--legal-muted);
    text-decoration: none;
}

.toc nav {
    display: grid;
    gap: 7px;
}

.toc a:hover {
    color: var(--legal-primary);
}

.legal-content,
.content {
    min-width: 0;
    padding: clamp(24px, 5vw, 52px);
    background: var(--legal-surface);
    border: 1px solid var(--legal-border);
    border-radius: var(--legal-radius);
    box-shadow: var(--legal-shadow);
}

.legal-notice {
    margin-bottom: 34px;
    padding: 18px 20px;
    color: #283044;
    background: var(--legal-primary-soft);
    border-left: 4px solid var(--legal-primary);
    border-radius: 8px;
}

.legal-notice--warning {
    color: #5d4509;
    background: var(--legal-warning-bg);
    border-left-color: #d69e00;
}

.legal-notice strong {
    display: block;
    margin-bottom: 3px;
}

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

.legal-section + .legal-section,
.section + .section {
    margin-top: 42px;
    padding-top: 42px;
    border-top: 1px solid var(--legal-border);
}

.legal-section h2,
.section h2 {
    display: flex;
    margin: 0 0 16px;
    align-items: flex-start;
    gap: 13px;
    color: var(--legal-ink);
    font-size: clamp(21px, 3vw, 27px);
    line-height: 1.3;
    letter-spacing: -.015em;
}

.section-number {
    display: inline-grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--legal-primary-dark);
    background: var(--legal-primary-soft);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 800;
}

.legal-section p,
.section p {
    margin: 0 0 14px;
}

.legal-section ul,
.legal-section ol,
.section ul,
.section ol {
    margin: 12px 0 18px;
    padding-left: 24px;
}

.legal-section li,
.section li {
    margin: 8px 0;
    padding-left: 4px;
}

.legal-section li::marker,
.section li::marker {
    color: var(--legal-primary);
}

.inline-link {
    font-weight: 650;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.contact-grid,
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.contact-grid > div,
.contact-grid > a,
.mini-card {
    padding: 18px;
    background: #f8fafc;
    border: 1px solid var(--legal-border);
    border-radius: 10px;
}

.contact-grid > a {
    color: var(--legal-ink);
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease;
}

.contact-grid > a:hover {
    border-color: #a5b4fc;
    transform: translateY(-2px);
}

.contact-grid strong,
.mini-card strong {
    display: block;
    margin-bottom: 4px;
}

.contact-grid span {
    color: var(--legal-muted);
}

.legal-muted {
    color: var(--legal-muted);
}

.document-end {
    display: flex;
    margin-top: 48px;
    padding-top: 26px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--legal-border);
}

.document-end p {
    margin: 0;
    color: var(--legal-muted);
    font-size: 14px;
}

.document-end button {
    padding: 11px 17px;
    color: #fff;
    background: var(--legal-primary);
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.document-end button:hover {
    background: var(--legal-primary-dark);
}

.legal-footer,
.footer {
    color: #cbd5e1;
    background: #172033;
}

.legal-footer__inner,
.footer__card {
    display: flex;
    min-height: 116px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.legal-footer p,
.footer p {
    margin: 0;
}

.legal-footer a,
.footer a {
    color: #fff;
}

/* Compatibilidade com a estrutura anterior usada pela Política de Privacidade. */
.hero {
    padding: 58px 0 50px;
    color: #fff;
    background: linear-gradient(135deg, #172033, #3730a3);
}

.hero__card {
    max-width: 850px;
}

.hero h1 {
    margin: 12px 0;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.1;
}

.hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, .82);
    font-size: 18px;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    color: #dbeafe;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .legal-hero__grid,
    .legal-layout,
    .layout {
        grid-template-columns: 1fr;
    }

    .legal-hero__grid {
        gap: 28px;
        padding-block: 48px 56px;
    }

    .document-meta {
        min-width: 0;
    }

    .legal-sidebar {
        position: static;
    }

    .toc ol {
        columns: 2;
        column-gap: 32px;
    }
}

@media (max-width: 640px) {
    .legal-container,
    .container {
        width: min(100% - 24px, 1180px);
    }

    .legal-topbar {
        min-height: 66px;
    }

    .legal-topbar__links a:not(:last-child) {
        display: none;
    }

    .legal-hero h1 {
        font-size: 38px;
    }

    .legal-layout,
    .layout {
        gap: 18px;
        padding-block: 20px 40px;
    }

    .toc ol {
        columns: 1;
    }

    .legal-content,
    .content {
        padding: 24px 18px;
        border-radius: 10px;
    }

    .legal-section + .legal-section,
    .section + .section {
        margin-top: 32px;
        padding-top: 32px;
    }

    .contact-grid,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .document-end,
    .legal-footer__inner,
    .footer__card {
        align-items: flex-start;
        flex-direction: column;
    }

    .legal-footer__inner,
    .footer__card {
        padding-block: 28px;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}

@media print {
    @page {
        margin: 18mm;
    }

    body {
        color: #000;
        background: #fff;
        font-size: 11pt;
    }

    .skip-link,
    .legal-topbar,
    .legal-sidebar,
    .document-end button,
    .legal-footer,
    .footer {
        display: none !important;
    }

    .legal-hero,
    .hero {
        padding: 0 0 20px;
        color: #000;
        background: none;
    }

    .legal-hero__grid,
    .legal-layout,
    .layout {
        display: block;
        padding: 0;
    }

    .legal-kicker,
    .legal-lead,
    .document-meta,
    .hero p {
        color: #333;
    }

    .document-meta {
        padding: 12px 0;
        border: 0;
    }

    .legal-content,
    .content {
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .legal-section,
    .section {
        break-inside: avoid;
    }

    .legal-section + .legal-section,
    .section + .section {
        margin-top: 24px;
        padding-top: 24px;
    }

    a {
        color: #000;
        text-decoration: none;
    }
}
