/* Dokumenty prawne i akceptacje. */
    .legal-consent {
      display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 10px;
      align-items: start; margin: 14px 0; padding: 12px 13px;
      border: 1px solid rgba(255,255,255,.18); border-radius: 11px;
      background: rgba(255,255,255,.055); color: #e6eee9;
      font-size: 12px; line-height: 1.48;
    }
    .legal-consent.light {
      border-color: var(--line); background: #f7faf8; color: #33423a;
    }
    .legal-consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--green); }
    .legal-inline-link, .legal-footer-link {
      padding: 0; border: 0; background: none; color: inherit;
      font: inherit; font-weight: 800; text-decoration: underline;
      text-decoration-thickness: 1px; text-underline-offset: 2px; cursor: pointer;
    }
    .legal-inline-link:hover, .legal-footer-link:hover { color: var(--green-deep); }
    .dark .legal-inline-link:hover { color: var(--green); }
    .legal-footer-links {
      display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 18px;
      width: 100%; margin-top: 12px; color: var(--muted); font-size: 11px;
    }

    .legal-modal {
      position: fixed; inset: 0; z-index: 610; display: none; place-items: center;
      padding: 4vh 4vw; background: rgba(4,8,6,.78);
    }
    .legal-modal.show { display: grid; }
    .legal-dialog {
      width: min(1120px, 92vw); height: min(88vh, 900px); overflow: hidden;
      display: grid; grid-template-rows: auto auto minmax(0,1fr) auto;
      border-radius: 20px; background: #fff; box-shadow: 0 34px 100px rgba(0,0,0,.35);
    }
    .legal-head {
      display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
      padding: 22px 24px 15px; border-bottom: 1px solid var(--line);
    }
    .legal-head h2 { margin: 2px 0 0; font-size: clamp(26px,3vw,40px); }
    .legal-head p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
    .legal-close {
      width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid var(--line);
      border-radius: 12px; background: #fff; font-size: 24px; cursor: pointer;
    }
    .legal-tabs {
      display: flex; gap: 6px; overflow-x: auto; padding: 12px 24px;
      border-bottom: 1px solid var(--line); scrollbar-width: thin;
    }
    .legal-tab {
      min-height: 38px; flex: 0 0 auto; padding: 8px 12px;
      border: 1px solid var(--line); border-radius: 999px;
      background: #fff; color: #3b4a42; font: 800 11px/1.2 inherit; cursor: pointer;
    }
    .legal-tab.active { border-color: var(--green-deep); background: var(--green-soft); color: var(--green-deep); }
    .legal-content { overflow-y: auto; padding: 28px 24px 42px; scroll-behavior: smooth; }
    .legal-document { max-width: 820px; margin: 0 auto; }
    .legal-document h3 { margin: 0 0 9px; font-family: Georgia, serif; font-size: 30px; }
    .legal-document > p { margin: 0 0 22px; color: var(--muted); line-height: 1.62; }
    .legal-section { padding: 22px 0; border-top: 1px solid var(--line); }
    .legal-section:first-of-type { border-top: 0; }
    .legal-section h4 { margin: 0 0 9px; font-size: 17px; }
    .legal-section p, .legal-section li { color: #33423a; font-size: 14px; line-height: 1.65; }
    .legal-section p { margin: 0; }
    .legal-section ul { margin: 8px 0 0; padding-left: 20px; }
    .legal-actions {
      display: flex; justify-content: flex-end; gap: 8px; padding: 13px 24px;
      border-top: 1px solid var(--line); background: #fafcfb;
    }

    .participant-consent-modal {
      position: fixed; inset: 0; z-index: 600; display: none; place-items: center;
      padding: 22px; background: rgba(4,8,6,.76);
    }
    .participant-consent-modal.show { display: grid; }
    .participant-consent-card {
      width: min(560px, 100%); padding: 26px; border-radius: 19px;
      background: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.32);
    }
    .participant-consent-card h2 { margin: 0 0 9px; font-size: clamp(28px,4vw,38px); }
    .participant-consent-card > p { margin: 0 0 16px; color: var(--muted); }
    .participant-facts { display: grid; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
    .participant-facts li { display: grid; grid-template-columns: 9px 1fr; gap: 9px; color: #33423a; font-size: 13px; line-height: 1.45; }
    .participant-facts li::before { content: ''; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--green); }
    .participant-consent-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 18px; }

    @media (max-width: 720px) {
      .legal-modal { padding: 8px; }
      .legal-dialog { width: 100%; height: calc(100dvh - 16px); border-radius: 15px; }
      .legal-head { padding: 17px 16px 12px; }
      .legal-tabs { padding: 10px 16px; }
      .legal-content { padding: 22px 17px 36px; }
      .legal-actions { padding: 11px 16px; }
      .legal-actions .btn { flex: 1; }
      .legal-footer-links { justify-content: flex-start; }
      .participant-consent-card { padding: 22px 18px; }
      .participant-consent-actions { display: grid; grid-template-columns: 1fr; }
      .participant-consent-actions .btn { width: 100%; }
    }
