/* ============================================================
   PAGINAS LEGAIS (politica de privacidade e termos de uso)
   Fundo: os mesmos paineis laterais de background_preciosa.svg usados na
   home, para a pagina nao parecer de outro site. O texto vive num cartao
   claro por cima — texto longo direto sobre o diamante fica ilegivel.
   ============================================================ */

.legal-body {
    background-color: #fdf2f5;
    color: #26131b;
}

.legal-main {
    position: relative;
    min-height: 100vh;
    padding: 0 0 80px;
    overflow: hidden;
}

/* Paineis do diamante — identicos aos de .main-bg-left/right */
.legal-bg-left,
.legal-bg-right {
    position: fixed;
    top: 0;
    width: 50%;
    height: 100%;
    background-image: url('/assets/img/background_preciosa.svg');
    background-size: auto 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.legal-bg-left  { left: 0;  background-position: left center; }
.legal-bg-right { right: 0; background-position: right center; }

/* No celular o SVG central come a area util do texto: some com os paineis e
   fica so a cor de fundo. */
@media (max-width: 900px) {
    .legal-bg-left,
    .legal-bg-right { display: none; }
}

.legal-topo {
    position: relative;
    z-index: 1;
    padding: 48px 24px 32px;
    text-align: center;
}

.legal-voltar {
    display: inline-block;
    margin-bottom: 28px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a8365a;
    text-decoration: none;
}

.legal-voltar:hover { color: #26131b; }

.legal-kicker {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #c4607e;
    margin-bottom: 12px;
}

.legal-titulo {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    line-height: 1.15;
    color: #26131b;
    margin: 0;
}

.legal-data {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #7d5b67;
    margin-top: 14px;
}

/* O cartao: fundo quase opaco garante o contraste do texto sobre o diamante. */
.legal-cartao {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 56px);
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #f0c8d5;
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(38, 19, 27, 0.10);
}

.legal-cartao h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    font-weight: 700;
    color: #26131b;
    margin: 40px 0 14px;
    padding-top: 24px;
    border-top: 1px solid #f4dbe3;
}

.legal-cartao h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-cartao h3 {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #5A3A46;
    margin: 24px 0 8px;
}

.legal-cartao p,
.legal-cartao li {
    font-family: 'Inter', sans-serif;
    font-size: 15.5px;
    line-height: 1.75;
    /* Vinho escuro em vez de preto: legivel e coerente com a marca. */
    color: #4a2f39;
}

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

.legal-cartao ul,
.legal-cartao ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.legal-cartao li { margin-bottom: 8px; }

.legal-cartao strong { color: #26131b; font-weight: 600; }

.legal-cartao a {
    color: #a8365a;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}

.legal-cartao a:hover { color: #26131b; }

/* Tabela de cookies: rola sozinha no celular em vez de esticar a pagina. */
.legal-tabela-wrap {
    overflow-x: auto;
    margin: 0 0 20px;
}

.legal-tabela {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    min-width: 520px;
}

.legal-tabela th,
.legal-tabela td {
    text-align: left;
    padding: 11px 14px;
    border-bottom: 1px solid #f4dbe3;
    color: #4a2f39;
    vertical-align: top;
}

.legal-tabela th {
    background: #fdf2f5;
    color: #26131b;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.legal-tabela code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
    background: #fdf2f5;
    padding: 2px 6px;
    border-radius: 4px;
    color: #a8365a;
}

.legal-destaque {
    background: #fdf2f5;
    border-left: 3px solid #c4607e;
    border-radius: 0 10px 10px 0;
    padding: 18px 22px;
    margin: 0 0 22px;
}

.legal-destaque p:last-child { margin-bottom: 0; }

.legal-rodape {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 32px auto 0;
    padding: 0 24px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #7d5b67;
}

.legal-rodape a {
    color: #a8365a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-rodape a:hover { color: #26131b; }
