/* legal.css — páginas /privacidade/ e /termos/ (visual do cartão da /baby). Só CSS, sem fontes externas. */

*, *::before, *::after { box-sizing: border-box; }

/* Tema padrão = rosa (MyAchadinhosBaby). Outras cores: LegalPage sobrescreve estas variáveis em <body style>. */
:root {
    --s: #ffe4e6;
    --s2: #fda4af;
    --s3: #dcfce7;
    --s3-0: rgba(220, 252, 231, 0);
    --s-0: rgba(255, 228, 230, 0);
    --dots: rgba(244, 63, 94, .13);
    --halo: rgba(254, 205, 211, .45);
    --glow: rgba(244, 63, 94, .3);
    --h2: #9f1239;
    --link: #be123c;
    --faixa: linear-gradient(90deg, #f43f5e, #fb923c, #16a34a);
    --btn-bg: #fff1f2;
    --btn-bg-h: #ffe4e6;
    --btn-txt: #9f1239;
}

body {
    margin: 0;
    background: radial-gradient(420px 260px at 8% 0%, var(--s) 0%, var(--s-0) 70%),
                radial-gradient(380px 240px at 100% 6%, var(--s3) 0%, var(--s3-0) 70%),
                radial-gradient(var(--dots) 1.2px, transparent 1.6px) 0 0 / 22px 22px,
                #f5f5f4;
    background-repeat: no-repeat, no-repeat, repeat;
    background-color: #f5f5f4;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1c1917;
    -webkit-text-size-adjust: 100%;
}

a { color: var(--link); text-underline-offset: 2px; }

.pagina {
    max-width: 640px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 20px 16px 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.voltar { align-self: flex-start; font-size: 14px; font-weight: 700; color: #57534e; text-decoration: none; padding: 6px 2px; }
.voltar:hover { color: #1c1917; }

.cartao {
    background: #fff;
    border: 2px solid var(--s2);
    border-radius: 26px;
    box-shadow: 0 0 0 6px var(--halo), 0 22px 44px -18px var(--glow), 0 2px 6px rgba(28, 25, 23, .05);
    overflow: hidden;
}
.cartao-faixa { height: 6px; background: var(--faixa); }
.cartao-corpo { padding: 24px 22px 28px; }

.cabecalho { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #f0efed; }
.logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: block; }
.cabecalho h1 { margin: 4px 0 0; font-size: 24px; line-height: 1.2; font-weight: 900; letter-spacing: -.01em; }
.atualizado { margin: 0; font-size: 12.5px; color: #78716c; }

.texto { font-size: 15px; line-height: 1.65; color: #292524; }
.texto h2 { margin: 24px 0 6px; font-size: 16.5px; line-height: 1.3; font-weight: 800; color: var(--h2); }
.texto h2:first-child { margin-top: 0; }
.texto p { margin: 0 0 12px; }
.texto ul { margin: 0 0 12px; padding-left: 22px; }
.texto li { margin-bottom: 6px; }
.texto a { word-break: break-word; }

.acao-optout { margin: 0 0 12px; padding: 12px 14px; background: #fafaf9; border: 1px solid #e7e5e4; border-radius: 14px; font-size: 14px; }
.optout-form { display: inline; margin: 0; }
.optout-botao {
    margin: 0;
    padding: 10px 16px;
    border: 1px solid var(--s2);
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-txt);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.optout-botao:hover { background: var(--btn-bg-h); }
.marca-txt { font-size: 13px; font-weight: 900; letter-spacing: .18em; color: var(--h2); }

.rodape { margin-top: auto; padding-top: 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: #78716c; text-align: center; }
.rodape a { color: #78716c; }
.rodape [aria-current] { font-weight: 700; color: #44403c; }
.dominio { font-size: 11px; color: #a8a29e; }
