/* =========================================================
   Página de cadastro da newsletter (SITE_MODE=newsletter)
   ========================================================= */

.newsletter-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: var(--space-xxl) var(--container-padding);
    background-color: var(--surface-primary);
}

.newsletter-card {
    width: 100%;
    max-width: 560px;
    padding: var(--space-xl) var(--space-lg);
    border: 1px solid var(--border-theme);
    border-radius: 15px;
    text-align: center;
}

.newsletter-card__title {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-semibold);
    color: var(--text-on-primary);
    margin-bottom: var(--space-md);
}

.newsletter-card__text {
    font-family: var(--font-primary);
    color: var(--text-muted-theme);
    line-height: 1.5;
    margin-bottom: var(--space-lg);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Rótulo visível só para leitores de tela */
.newsletter-form__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.newsletter-form__input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: var(--text-on-primary);
    background-color: var(--surface-primary);
    border: 1px solid var(--border-theme);
    border-radius: var(--radius-sm);
}

.newsletter-form__input::placeholder {
    color: var(--text-muted-theme);
}

.newsletter-form__input:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 1px;
}

.newsletter-form__button {
    padding: 0.75rem 1.25rem;
    font-family: var(--font-primary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    color: var(--color-white);
    background-color: var(--color-accent);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.newsletter-form__button:hover {
    background-color: var(--color-accent-hover);
}

/* A partir de 576px: campo e botão lado a lado */
@media (min-width: 576px) {
    .newsletter-card {
        padding: var(--space-xxl) var(--space-xl);
    }

    .newsletter-form {
        flex-direction: row;
    }

    .newsletter-form__input {
        flex: 1;
    }

    .newsletter-form__button {
        white-space: nowrap;
    }
}


/* Mensagens de resultado do cadastro */
.newsletter-message {
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    text-align: left;
}

.newsletter-message--ok {
    background-color: var(--color-success-bg);
    color: var(--color-success-text);
}

.newsletter-message--erro {
    background-color: var(--color-error-bg);
    color: var(--color-error-text);
}

/* Campo-isca anti-robô: fora da tela, invisível para pessoas */
.newsletter-form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Texto de consentimento */
.newsletter-card__legal {
    margin-top: var(--space-md);
    font-family: var(--font-primary);
    font-size: var(--font-size-xs);
    color: var(--text-muted-theme);
    line-height: 1.5;
}

.newsletter-card__legal a {
    color: inherit;
    text-decoration: underline;
}