/* ==========================================================
   PÁGINAS LEGAIS — v1.40
   ========================================================== */

.legal-page {
    background: #fff;
}

@media (min-width: 1051px) {
    .legal-page {
        background: var(--paint-page-bg);
    }

    .legal-page .site-header {
        background: transparent !important;
    }

    .legal-page .site-header:not(.is-scrolled)::before {
        opacity: 0 !important;
    }

    .legal-page .site-header.is-scrolled::before {
        opacity: .62 !important;
    }
}

.legal-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--paint-page-bg);
    color: var(--color-title);
}

.legal-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1px);
    background-size: 30px 30px;
}

.legal-hero-inner {
    width: min(calc(100% - 64px), 940px);
    min-height: 430px;
    margin: 0 auto;
    padding: 84px 0 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.legal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    color: var(--color-accent);
    font-size: var(--font-small-size);
    font-weight: var(--font-small-weight);
    letter-spacing: .055em;
    text-transform: uppercase;
}

.legal-eyebrow > span {
    opacity: .62;
}

.legal-eyebrow i {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 0 14px color-mix(in srgb, var(--color-accent) 72%, transparent);
}

.legal-hero h1 {
    max-width: 880px;
    margin: 0;
    padding-bottom: .08em;
    color: var(--color-title);
    font-size: min(var(--font-title-size), 58px);
    font-weight: var(--font-title-weight);
    line-height: 1.05;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.legal-hero p {
    max-width: 760px;
    margin: 22px 0 0;
    color: var(--color-subtitle);
    font-size: min(var(--font-subtitle-size), 18px);
    line-height: 1.68;
}

.legal-updated {
    margin-top: 25px;
    padding: 8px 12px;
    border: 1px solid rgba(148, 191, 231, .18);
    border-radius: 999px;
    background: rgba(4, 26, 50, .34);
    color: #78a9d6;
    font-size: 11px;
    font-weight: 700;
}

.legal-content {
    background: #fff;
    color: #071a36;
}

.legal-content-inner {
    width: min(calc(100% - 64px), 1120px);
    margin: 0 auto;
    padding: 80px 0 96px;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: clamp(52px, 7vw, 88px);
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 112px;
    padding: 20px 18px;
    border: 1px solid #dfe7ef;
    border-radius: 16px;
    background: #f8fbfe;
}

.legal-toc > strong {
    display: block;
    margin-bottom: 13px;
    color: #071a36;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.legal-toc nav {
    display: grid;
}

.legal-toc a {
    padding: 9px 0;
    border-top: 1px solid #e7edf3;
    color: #657b95;
    font-size: 12px;
    line-height: 1.4;
    transition: color .18s ease;
}

.legal-toc a:first-child {
    border-top: 0;
}

.legal-toc a:hover {
    color: #0a92dc;
}

.legal-article {
    min-width: 0;
}

.legal-section {
    scroll-margin-top: 120px;
    padding: 0 0 34px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
    border-bottom: 1px solid #e3eaf1;
}

.legal-section + .legal-section {
    padding-top: 34px;
}

.legal-section-index {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eaf7ff;
    color: #069be8;
    font-size: 11px;
    font-weight: 900;
}

.legal-section h2 {
    margin: 3px 0 0;
    color: #071a36;
    font-size: clamp(23px, 2.5vw, 31px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.legal-section-body {
    margin-top: 14px;
    color: #667b94;
    font-size: 15px;
    line-height: 1.82;
}

.legal-empty {
    grid-column: 1 / -1;
    padding: 60px 24px;
    text-align: center;
}

.legal-empty h2 {
    margin: 0;
    color: #071a36;
}

.legal-empty p {
    color: #71849c;
}

@media (max-width: 900px) {
    .legal-content-inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .legal-toc {
        position: static;
    }

    .legal-toc nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 22px;
    }
}

@media (max-width: 720px) {
    .legal-hero-inner,
    .legal-content-inner {
        width: calc(100% - 40px);
    }

    .legal-hero-inner {
        min-height: 0;
        padding: 60px 0 64px;
    }

    .legal-eyebrow {
        font-size: var(--mobile-font-small-size);
    }

    .legal-hero h1 {
        font-size: min(var(--mobile-font-title-size), 42px);
        line-height: 1.08;
    }

    .legal-hero p {
        font-size: var(--mobile-font-subtitle-size);
    }

    .legal-content-inner {
        padding: 58px 0 70px;
    }

    .legal-toc nav {
        grid-template-columns: 1fr;
    }

    .legal-section {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 14px;
    }

    .legal-section-index {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .legal-section h2 {
        font-size: 23px;
    }

    .legal-section-body {
        font-size: 14px;
        line-height: 1.75;
    }
}

@media (max-width: 390px) {
    .legal-hero-inner,
    .legal-content-inner {
        width: calc(100% - 32px);
    }

    .legal-section {
        grid-template-columns: 1fr;
    }
}
