/* ChemSmog — newsletter consent UI (Garante Privacy e-mail tracking guidelines) */

/* ---------- consent checkboxes (shared by footer, newsletter page, register, contact) ---------- */
.cs-nl-consent { margin: 14px 0 6px; gap: 10px; }
.cs-nl-consent .cs-consent__item { font-size: 13px; line-height: 1.5; }
.cs-nl-consent .cs-consent__check { position: relative; appearance: none; -webkit-appearance: none; background: var(--cs-white); cursor: pointer; }
.cs-nl-consent .cs-consent__check:disabled { opacity: .45; cursor: not-allowed; }
.cs-nl-consent__notice { margin: 0; font-size: 12.5px; color: var(--cs-text-light, #6b7280); }
.cs-nl-consent__notice a { color: var(--cs-blue); text-decoration: underline; }
.cs-nl__hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; opacity: 0; }

/* footer variant: white text on the gradient footer */
.cs-footer__newsletter .cs-nl-consent { margin-top: 12px; gap: 8px; }
.cs-footer__newsletter .cs-nl-consent .cs-consent__item { font-size: 12px; color: rgba(255,255,255,.92); }
.cs-footer__newsletter .cs-nl-consent .cs-consent__check { border-color: rgba(255,255,255,.7); background: transparent; }
.cs-footer__newsletter .cs-nl-consent .cs-consent__check:checked { background: var(--cs-white); border-color: var(--cs-white); }
.cs-footer__newsletter .cs-nl-consent .cs-consent__check:checked::after { background: var(--cs-teal); }
.cs-footer__newsletter .cs-nl-consent__notice { font-size: 11.5px; color: rgba(255,255,255,.8); }
.cs-footer__newsletter .cs-nl-consent__notice a { color: var(--cs-white); }
.cs-footer__newsletter .cs-nl__msg { margin-top: 10px; font-size: 12.5px; }

/* ---------- messages ---------- */
.cs-nl__msg { margin-top: 12px; padding: 10px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; }
.cs-nl__msg--ok { background: rgba(134,195,139,.18); color: #1f6b3a; border: 1px solid rgba(134,195,139,.6); }
.cs-nl__msg--error { background: rgba(220,53,69,.08); color: #9b1c2c; border: 1px solid rgba(220,53,69,.35); }
.cs-footer__newsletter .cs-nl__msg--ok { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.cs-footer__newsletter .cs-nl__msg--error { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.cs-nl__alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; line-height: 1.5; }
.cs-nl__alert--ok { background: rgba(134,195,139,.18); color: #1f6b3a; border: 1px solid rgba(134,195,139,.6); }
.cs-nl__alert--info { background: rgba(0,123,169,.08); color: #0b5c7c; border: 1px solid rgba(0,123,169,.3); }
.cs-nl__alert--error { background: rgba(220,53,69,.08); color: #9b1c2c; border: 1px solid rgba(220,53,69,.35); }

/* ---------- newsletter page ---------- */
.cs-nl { padding-top: 0; }
.cs-nl__container { max-width: 1140px; margin: 0 auto; padding: 48px 20px 72px; }
.cs-nl__container--narrow { max-width: 760px; }
.cs-nl__hero { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.cs-nl__hero--compact { margin-bottom: 24px; }
.cs-nl__eyebrow { display: inline-block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cs-teal); font-weight: 600; margin-bottom: 10px; }
.cs-nl__title { font-size: 36px; line-height: 1.15; margin: 0 0 14px; color: var(--cs-blue); }
.cs-nl__title--sm { font-size: 26px; }
.cs-nl__lead { font-size: 16px; line-height: 1.6; color: var(--cs-text); margin: 0; }
.cs-nl__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
.cs-nl__card { background: var(--cs-white); border: 1px solid var(--cs-divider, #e6e9ee); border-radius: 18px; padding: 30px 30px 26px; box-shadow: 0 10px 30px rgba(0,43,73,.06); }
.cs-nl__card--soft { background: linear-gradient(180deg, rgba(89,205,194,.10) 0%, rgba(134,195,139,.08) 100%); }
.cs-nl__card--center { text-align: center; padding: 44px 30px; }
.cs-nl__card-title { font-size: 22px; margin: 0 0 14px; color: var(--cs-blue); }
.cs-nl__text { font-size: 14.5px; line-height: 1.6; color: var(--cs-text); }
.cs-nl__form .cs-form__field { margin-bottom: 14px; }
.cs-nl__actions { margin-top: 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.cs-nl__actions--split { justify-content: space-between; }
.cs-nl__hint { margin: 12px 0 0; font-size: 12.5px; color: var(--cs-text-light, #6b7280); line-height: 1.5; }
.cs-nl__facts { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(0,0,0,.08); }
.cs-nl__facts h3 { font-size: 15px; margin: 0 0 10px; color: var(--cs-blue); }
.cs-nl__facts ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; color: var(--cs-text); }
.cs-nl__facts li + li { margin-top: 6px; }
.cs-nl__link-btn { background: none; border: none; padding: 0; color: #9b1c2c; text-decoration: underline; font-size: 13.5px; cursor: pointer; }
.cs-nl__status { font-size: 14px; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cs-nl__badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.cs-nl__badge--ok { background: rgba(134,195,139,.25); color: #1f6b3a; }
.cs-nl__badge--info { background: rgba(0,123,169,.12); color: #0b5c7c; }
.cs-nl__badge--off { background: rgba(0,0,0,.07); color: #555; }
.cs-nl__footnote { text-align: center; font-size: 12.5px; color: var(--cs-text-light, #6b7280); margin-top: 18px; }
.cs-nl__footnote a { color: var(--cs-blue); text-decoration: underline; }
.cs-nl__icon { width: 68px; height: 68px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.cs-nl__icon--check { background: rgba(134,195,139,.25); color: #1f6b3a; }
.cs-nl__icon--info { background: rgba(0,123,169,.12); color: #0b5c7c; }
.cs-nl__icon--error { background: rgba(220,53,69,.1); color: #9b1c2c; }
.cs-nl__card--center .cs-btn-primary { margin-top: 18px; }

/* ---------- privacy notice ---------- */
.cs-nl__notice { margin-top: 44px; background: var(--cs-white); border: 1px solid var(--cs-divider, #e6e9ee); border-radius: 18px; padding: 34px 36px; }
.cs-nl__notice-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid rgba(0,0,0,.08); padding-bottom: 14px; margin-bottom: 18px; }
.cs-nl__notice-title { font-size: 24px; margin: 0; color: var(--cs-blue); }
.cs-nl__version { font-size: 12px; color: var(--cs-text-light, #6b7280); letter-spacing: .04em; text-transform: uppercase; }
.cs-nl__notice-body { font-size: 14.5px; line-height: 1.65; color: var(--cs-text); }
.cs-nl__notice-body h3 { font-size: 17px; margin: 24px 0 8px; color: var(--cs-blue); }
.cs-nl__notice-body p, .cs-nl__notice-body ul { margin: 0 0 10px; }
.cs-nl__notice-body ul { padding-left: 20px; }
.cs-nl__notice-body li + li { margin-top: 4px; }
.cs-nl__notice-sub { font-size: 13px; color: var(--cs-text-light, #6b7280); }
.cs-nl__table-wrap { overflow-x: auto; margin: 8px 0 12px; }
.cs-nl__table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cs-nl__table th, .cs-nl__table td { border: 1px solid rgba(0,0,0,.1); padding: 10px 12px; vertical-align: top; text-align: left; }
.cs-nl__table th { background: rgba(0,123,169,.07); color: var(--cs-blue); font-weight: 600; }

@media (max-width: 900px) {
    .cs-nl__grid { grid-template-columns: 1fr; }
    .cs-nl__title { font-size: 28px; }
    .cs-nl__container { padding: 32px 16px 56px; }
    .cs-nl__card, .cs-nl__notice { padding: 22px 18px; border-radius: 14px; }
}

/* checked state (must win over the white background above) */
.cs-nl-consent .cs-consent__check:checked { background: var(--cs-teal); border-color: var(--cs-teal); }
.cs-footer__newsletter .cs-nl-consent .cs-consent__check:checked { background: var(--cs-white); border-color: var(--cs-white); }
