@font-face {
    font-family: "Cinzel";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/cinzel-var-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Jost";
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url("../fonts/jost-var-latin.woff2") format("woff2");
}

:root {
    color-scheme: dark;
    --legal-bg: #0b1b2e;
    --legal-surface: #0e2540;
    --legal-surface-soft: #17395c;
    --legal-text: #f2efe9;
    --legal-muted: #8fa3c4;
    --legal-gold: #e3c77e;
    --legal-border: rgba(201, 165, 95, 0.26);
    --legal-focus: #e3c77e;
    --legal-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

@view-transition {
    navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 220ms;
    animation-timing-function: ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--legal-bg);
    color: var(--legal-text);
    font-family: "Jost", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.72;
}

a {
    color: var(--legal-gold);
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--legal-focus);
}

.legal-skip {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.7rem 1rem;
    border-radius: 4px;
    background: var(--legal-focus);
    color: var(--legal-bg);
    font-weight: 600;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 180ms ease;
}

.legal-skip:focus {
    color: var(--legal-bg);
    transform: translateY(0);
}

a:focus-visible {
    border-radius: 2px;
    outline: 3px solid var(--legal-focus);
    outline-offset: 0.2rem;
}

.legal-shell {
    width: min(100% - 2rem, 960px);
    margin-inline: auto;
}

.legal-header {
    position: relative;
    z-index: 2;
    border-bottom: 1px solid var(--legal-border);
    background: var(--legal-bg);
}

.legal-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 5.25rem;
    gap: 2rem;
}

.legal-brand {
    display: inline-flex;
    flex-direction: column;
    color: var(--legal-text);
    text-decoration: none;
}

.legal-brand__name {
    color: var(--legal-gold);
    font-family: "Cinzel", Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}

.legal-brand__detail {
    color: var(--legal-muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem 1.25rem;
}

.legal-nav a {
    color: var(--legal-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
    color: var(--legal-gold);
}

.legal-main {
    padding: clamp(3rem, 7vw, 6.5rem) 0;
}

.legal-document {
    padding: clamp(1.5rem, 5vw, 4.75rem);
    border: 1px solid var(--legal-border);
    border-radius: 4px;
    background: var(--legal-surface);
    box-shadow: var(--legal-shadow);
}

.legal-document__intro {
    max-width: 48rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--legal-border);
}

.legal-kicker {
    margin: 0 0 0.5rem;
    color: var(--legal-gold);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2 {
    font-family: "Cinzel", Georgia, "Times New Roman", serif;
    font-weight: 400;
    line-height: 1.16;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 3.4vw, 2.85rem);
    letter-spacing: 0.01em;
}

h2 {
    margin: 0 0 0.75rem;
    color: var(--legal-text);
    font-size: clamp(1.35rem, 2.5vw, 1.6rem);
}

p,
ul {
    margin-block: 0.75rem;
}

ul {
    padding-left: 1.35rem;
}

li + li {
    margin-top: 0.45rem;
}

.legal-lead {
    max-width: 45rem;
    color: var(--legal-muted);
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
}

.legal-updated {
    color: var(--legal-muted);
    font-size: 0.88rem;
}

.legal-notice {
    margin: 2rem 0;
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--legal-border);
    border-left: 2px solid var(--legal-gold);
    border-radius: 2px;
    background: rgba(215, 181, 109, 0.08);
    color: var(--legal-muted);
}

.legal-notice strong {
    color: var(--legal-text);
}

.legal-document section {
    padding-top: 2rem;
}

.legal-document section p,
.legal-document section li {
    color: var(--legal-muted);
}

.legal-document section strong {
    color: var(--legal-text);
}

.legal-footer {
    border-top: 1px solid var(--legal-border);
    background: #0b1220;
}

.legal-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 5rem;
    gap: 1rem;
    color: var(--legal-muted);
    font-size: 0.88rem;
}

@media (max-width: 720px) {
    .legal-header__inner,
    .legal-footer__inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-block: 1.25rem;
    }

    .legal-nav {
        justify-content: flex-start;
    }

    .legal-document {
        border-radius: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media print {
    :root {
        color-scheme: light;
    }

    body,
    .legal-document {
        background: #ffffff;
        color: #111111;
        box-shadow: none;
    }

    .legal-header,
    .legal-footer {
        display: none;
    }

    .legal-document {
        width: 100%;
        padding: 0;
        border: 0;
    }

    .legal-document section p,
    .legal-document section li,
    .legal-lead,
    .legal-updated,
    .legal-notice {
        color: #222222;
    }

    a {
        color: #111111;
    }
}

@media (prefers-reduced-motion: reduce) {
    @view-transition {
        navigation: none;
    }
}

/* Marca Almeida nas páginas legais, 2026-08-02 */
.legal-brand {
    align-items: center;
    flex-direction: row;
    gap: 0.8rem;
}

.legal-brand__logo {
    width: 58px;
    height: 43px;
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
}

.legal-brand__copy {
    display: grid;
    line-height: 1.1;
}

@media (max-width: 520px) {
    .legal-brand__logo {
        width: 48px;
        height: 40px;
    }

    .legal-brand__name {
        font-size: 1.12rem;
    }

    .legal-brand__detail {
        font-size: 0.75rem;
    }
}