/* RemiMat – polityka prywatności: nagłówek strony, rozwijane punkty (<details>), suwaki zgody
   (pages/polityka-prywatnosci.html; kolory i czcionki z site.css) */

/* ---------- nagłówek ---------- */
.legal-hero { padding: 56px 0 48px; border-bottom: 1px solid var(--line); background: radial-gradient(700px 360px at 90% 0%, rgba(122, 90, 240, .09), transparent 60%), var(--surface); }
.legal-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: 13px; color: var(--muted); }
.legal-crumbs a { color: var(--muted); }
.legal-crumbs a:hover { color: var(--accent-ink); }
.legal-hero h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.legal-lead { max-width: 600px; margin-top: 16px; font-size: 17px; color: var(--muted); }

/* ---------- lista punktów ---------- */
.privacy-content { max-width: 860px; margin: 0 auto; padding: 48px 0 96px; }
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.privacy-item { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: border-color .2s, box-shadow .2s; }
.privacy-item:hover { border-color: var(--accent-2); }
.privacy-item[open] { border-color: var(--accent-2); box-shadow: var(--shadow); }

.privacy-item__head { display: flex; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; border-radius: 18px; }
.privacy-item__head::-webkit-details-marker { display: none; }
.privacy-item__head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.privacy-item__num { flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--font-head); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; transition: background .2s, color .2s; }
.privacy-item[open] .privacy-item__num { background: var(--grad); color: #fff; }
.privacy-item__title { flex: 1; font-family: var(--font-head); font-size: clamp(16px, 1.7vw, 18px); font-weight: 700; line-height: 1.3; color: var(--ink); letter-spacing: -.01em; }
.privacy-item__arrow { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); transition: transform .25s, background .2s, color .2s, border-color .2s; }
.privacy-item__arrow .ic { width: 16px; height: 16px; }
.privacy-item__head:hover .privacy-item__arrow { background: var(--accent-soft); border-color: var(--accent-2); color: var(--accent-ink); }
.privacy-item[open] .privacy-item__arrow { transform: rotate(180deg); background: var(--ink); border-color: var(--ink); color: #fff; }

.privacy-item__body { padding: 0 24px 22px 74px; color: var(--text); font-size: 15px; line-height: 1.75; animation: privacyOpen .25s ease; }
.privacy-item__body > * + * { margin-top: 12px; }
.privacy-item__body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--accent-2); }
.privacy-item__body a:hover { text-decoration-color: currentColor; }
.privacy-item__body ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.privacy-item__body ul li { position: relative; padding-left: 20px; }
.privacy-item__body ul li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.privacy-item__subtitle { margin-top: 18px !important; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.privacy-item__body > .privacy-item__subtitle:first-child { margin-top: 0 !important; }
@keyframes privacyOpen { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .privacy-item__body { animation: none; } }

/* ---------- suwaki zgody (punkt 08) ---------- */
.consent-toggles { display: grid; gap: 10px; margin-top: 16px !important; }
.consent-toggle { position: relative; display: flex; align-items: center; gap: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); cursor: pointer; transition: border-color .2s, background .2s; }
.consent-toggle:hover { border-color: var(--accent-2); background: var(--accent-softer); }
.consent-toggle.is-locked { cursor: not-allowed; }
.consent-toggle.is-locked:hover { border-color: var(--line); background: var(--bg); }
.consent-toggle__info { flex: 1; display: grid; gap: 2px; }
.consent-toggle__name { font-weight: 600; color: var(--ink); }
.consent-toggle__desc { font-size: 14px; line-height: 1.55; color: var(--muted); }
.consent-toggle__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent-toggle__slider { flex-shrink: 0; position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--line-strong); transition: background .2s; }
.consent-toggle__slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(14, 26, 58, .3); transition: transform .2s; }
.consent-toggle__input:checked + .consent-toggle__slider { background: var(--accent-ink); }
.consent-toggle__input:checked + .consent-toggle__slider::after { transform: translateX(20px); }
.consent-toggle__input:disabled + .consent-toggle__slider { opacity: .55; }
.consent-toggle__input:focus-visible + .consent-toggle__slider { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent-saved { display: inline-flex; padding: 6px 12px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 14px; font-weight: 600; }

/* ---------- Pomoc i Zgłaszanie problemów ---------- */
.help-section-title { margin: 40px 0 16px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.help-contact { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm); }
.help-contact__title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.help-contact__lead { margin-top: 6px; color: var(--muted); }
.help-contact__note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.help-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr); gap: 10px; margin-top: 18px; }
.help-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--ink); font-weight: 600; font-size: 15px; transition: border-color .2s, background .2s, transform .2s; }
.help-card:hover { border-color: var(--accent-2); background: var(--accent-softer); transform: translateY(-2px); }
.help-card > span:last-child { min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.help-card small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.help-card__ic, .help-cta__ic { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; }
.help-card__ic .ic, .help-cta__ic .ic { width: 20px; height: 20px; }
.help-cta { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 20px 22px; border-radius: 20px; background: var(--accent-soft); border: 1px solid var(--accent-2); }
.help-cta > div { flex: 1; min-width: 0; }
.help-cta b { color: var(--ink); font-family: var(--font-head); }
.help-cta p { font-size: 14px; color: var(--text); }
.help-first { margin-bottom: 16px; padding: 18px 20px; border-left: 3px solid var(--accent); border-radius: 0 16px 16px 0; background: var(--surface); box-shadow: var(--shadow-sm); }
.help-first b { color: var(--ink); font-family: var(--font-head); }
.help-first p { margin-top: 4px; font-size: 15px; color: var(--text); }
.privacy-item__body ol.help-steps { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.help-steps li { counter-increment: step; position: relative; padding-left: 38px; }
.help-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 13px; font-weight: 700; }

.it-box { --grid-line: rgba(255, 255, 255, .06); position: relative; overflow: hidden; margin-top: 28px; padding: 36px; border-radius: 26px; color: #C9CFE6; background: radial-gradient(500px 300px at 100% 0%, rgba(122, 90, 240, .4), transparent 60%), radial-gradient(400px 300px at 0% 100%, rgba(76, 95, 213, .3), transparent 60%), var(--ink); box-shadow: var(--shadow-lg); }
.it-box .kicker { background: rgba(255, 255, 255, .1); color: #fff; }
.it-box h2 { color: #fff; font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; letter-spacing: -.02em; }
.it-box p { margin-top: 10px; }
.it-box a { color: #fff; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255, 255, 255, .4); }
.it-box__mail { display: inline-flex !important; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 20px; border-radius: 16px; background: #fff; color: var(--ink) !important; font-family: var(--font-head); font-size: 18px; font-weight: 700; text-decoration: none !important; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); transition: transform .2s; max-width: 100%; overflow-wrap: anywhere; }
.it-box__mail:hover { transform: translateY(-2px); }
.it-box__mail .ic { flex-shrink: 0; width: 22px; height: 22px; color: var(--accent-ink); }
.it-box__label { margin-top: 22px !important; color: #fff; font-weight: 600; }
.it-box ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.it-box ul li { position: relative; padding-left: 20px; }
.it-box ul li::before { content: ''; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.it-box__note { margin-top: 20px !important; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
@media (max-width: 760px) {
  .help-cards { grid-template-columns: 1fr; }
  .help-cta { flex-wrap: wrap; }
  .help-cta .btn { width: 100%; }
  .help-contact, .it-box { padding: 22px; }
  .it-box__mail { font-size: 16px; }
}

@media (max-width: 600px) {
  .legal-hero { padding: 36px 0 32px; }
  .privacy-content { padding: 28px 0 64px; }
  .privacy-item__head { gap: 12px; padding: 14px; }
  .privacy-item__num { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }
  .privacy-item__body { padding: 0 16px 18px; }
  .consent-toggle { padding: 14px; gap: 12px; }
}
