/* Brama oświadczenia (#50, art. 57) — kurtyna JS site-wide, tokeny marki opieka.farm.
   Anty-FOUC: html.of-osw-ok (cookie) => brama ukryta przed malowaniem; bez cookie => scroll tła zablokowany. */

html.of-osw-ok #of-gate { display: none !important; }
html:not(.of-osw-ok) { overflow: hidden; }

.of-gate {
  position: fixed; inset: 0; z-index: 100000;
  display: grid; place-items: center; padding: 24px;
  background: rgba(8, 25, 30, .62); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.of-gate[hidden] { display: none !important; }

.of-gate-card {
  width: min(560px, 100%); background: #fff; color: #0a2530;
  border-radius: var(--rad-lg, 16px); box-shadow: 0 24px 70px rgba(8, 25, 30, .35);
  padding: 36px 40px 32px; animation: of-gate-rise .28s ease;
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@keyframes of-gate-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .of-gate-card { animation: none; } }

.of-gate-logo { height: 34px; margin-bottom: 22px; }
.of-gate-logo img { height: 34px; width: auto; display: block; }
.of-gate-card h2 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; color: #0a2530; }
.of-gate-card p.lead { font-size: 15px; line-height: 1.6; color: #3a4d55; margin: 0 0 22px; font-family: 'Source Sans 3', sans-serif; }

.of-gate-check {
  display: flex; gap: 13px; align-items: flex-start;
  background: #eef6f4; border: 1px solid #d5e9e4; border-radius: var(--rad-md, 12px);
  padding: 16px 18px; margin-bottom: 22px; cursor: pointer; transition: border-color .15s, background .15s;
}
.of-gate-check:hover { border-color: var(--accent, #14a085); }
.of-gate-check input {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; min-width: 22px; margin: 1px 0 0;
  border: 2px solid #b9c9cb; border-radius: 6px; background: #fff; cursor: pointer;
  display: grid; place-content: center; transition: all .15s;
}
.of-gate-check input:checked { background: var(--accent, #14a085); border-color: var(--accent, #14a085); }
.of-gate-check input:checked::after {
  content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(42deg) translateY(-1px);
}
.of-gate-check span { font-size: 14.5px; line-height: 1.5; color: #22333c; font-family: 'Source Sans 3', sans-serif; }

.of-gate-btn {
  width: 100%; border: 0; border-radius: var(--rad-md, 12px); padding: 15px 20px;
  font-family: 'Onest', sans-serif; font-weight: 700; font-size: 15.5px; color: #fff;
  background: var(--primary, #0d4b5c); cursor: pointer; transition: background .15s, opacity .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
}
.of-gate-btn:hover:not(:disabled) { background: var(--primary-2, #1d738b); }
.of-gate-btn:disabled { background: #c2ced1; cursor: not-allowed; }
.of-gate-btn .arr { transition: transform .15s; }
.of-gate-btn:hover:not(:disabled) .arr { transform: translateX(3px); }
.of-gate-foot { margin-top: 16px; font-size: 12px; color: #86939b; line-height: 1.5; text-align: center; font-family: 'Source Sans 3', sans-serif; }

@media (max-width: 560px) { .of-gate-card { padding: 28px 22px; } }
