/* ===========================================================================
   Aceite dos Termos e da Política no app (#198): checkbox do cadastro
   (.auth-check), diálogo de reaceite obrigatório (.lc-*) e a linha legal da assinatura
   (.sub-legal). Requer css/tokens.css antes.
   =========================================================================== */

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    font-size: var(--fs-support);
    line-height: 1.45;
    color: var(--ink);
    cursor: pointer;
}
.auth-check input[type="checkbox"] {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--brand);
    cursor: pointer;
}
.auth-check a { color: var(--brand-d); font-weight: 600; }

.lc-dialog {
    width: min(480px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--r-doc);
    padding: var(--sp-6);
    background: var(--surf);
    color: var(--ink);
    box-shadow: var(--shadow-3);
    box-sizing: border-box;
}
.lc-dialog::backdrop { background: rgba(20, 32, 30, .45); }
.lc-title { font-size: 1.25rem; font-weight: 800; line-height: 1.2; margin: 0 0 var(--sp-3); }
.lc-lead { font-size: var(--fs-ui); color: var(--ink2); line-height: 1.5; margin: 0 0 var(--sp-5); }
.lc-error { font-size: var(--fs-note); font-weight: 600; color: var(--risk); margin: var(--sp-3) 0 0; }
.lc-error[hidden] { display: none; }
.lc-actions { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-5); }
.lc-primary {
    width: 100%;
    min-height: 48px;
    padding: var(--sp-3) var(--sp-4);
    font: inherit;
    font-size: var(--fs-ui);
    font-weight: 700;
    border-radius: var(--r-ctl);
    cursor: pointer;
}
.lc-primary { background: var(--brand); color: var(--brand-on); border: none; }
.lc-primary:disabled { opacity: .6; cursor: not-allowed; }
@media (hover: hover) {
    .lc-primary:not(:disabled):hover { background: var(--brand-d); }
    .lc-link:not(:disabled):hover { color: var(--ink); }
}

/* Direitos do titular e Sair: links discretos abaixo do botão (funcionam sem o aceite) */
.lc-status { font-size: var(--fs-note); color: var(--ink2); min-height: 1.2em; margin: var(--sp-3) 0 0; text-align: center; }
.lc-status:empty { display: none; }
.lc-more {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0 var(--sp-5);
    margin-top: var(--sp-4);
}
.lc-link {
    background: none;
    border: none;
    padding: var(--sp-2) var(--sp-1);
    min-height: 32px;
    font: inherit;
    font-size: var(--fs-note);
    color: var(--ink2);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.lc-link:disabled { opacity: .6; cursor: progress; }
.lc-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }

.sub-legal { font-size: var(--fs-note); color: var(--ink2); line-height: 1.45; margin: calc(var(--sp-1) * -1) 0 var(--sp-4); text-align: center; }
.sub-legal a { color: var(--brand-d); }
