/* =====================================================================
   SPORTOWETYPY — strony prawne (polityka prywatności, regulamin)
   Czytelność przede wszystkim: jedna kolumna, duża czcionka, spokój.
   ===================================================================== */

.doc-top {
  background: var(--green-900);
  padding: 26px 0 56px;
  position: relative;
}
.doc-top .wordmark { font-size: 24px; }
.doc-back {
  display: flex; width: fit-content;          /* własna linia pod logo */
  align-items: center; gap: 7px;
  margin-top: 14px;
  font-size: 14px; color: rgba(255,255,255,.72);
  min-height: 44px;
}
.doc-back:hover { color: #fff; }
.doc-top h1 {
  font-family: var(--font);
  font-size: clamp(30px, 7vw, 50px);
  font-weight: 900; font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.02em; line-height: 1.12;
  color: #fff;
  margin-top: 10px;
}
.doc-top h1 em { font-style: inherit; color: var(--yellow-500); }
.doc-meta { color: rgba(255,255,255,.55); font-size: 13.5px; margin-top: 14px; }

/* ---- Karta z treścią, nachodzi na zielone tło ---- */
.doc-body {
  max-width: 760px; margin: -34px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 38px 34px 44px;
  position: relative; z-index: 2;
}

/* ---- Spis treści ---- */
.doc-toc {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--r);
  padding: 20px 22px;
  margin-bottom: 34px;
}
.doc-toc strong {
  display: block;
  font-family: var(--font); font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--green-700);
  margin-bottom: 12px;
}
.doc-toc ol { list-style: none; counter-reset: toc; }
.doc-toc li { counter-increment: toc; margin-bottom: 7px; font-size: 14.5px; }
.doc-toc li::before {
  content: counter(toc) ".";
  color: var(--ink-faint); font-weight: 700;
  display: inline-block; min-width: 22px;
}
.doc-toc a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.doc-toc a:hover { color: var(--green-600); }

/* ---- Treść ---- */
.doc-body section { scroll-margin-top: 20px; }
.doc-body section + section { margin-top: 38px; }
.doc-body h2 {
  font-family: var(--font);
  font-size: clamp(19px, 4.4vw, 24px);
  font-weight: 800; line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green-100);
  margin-bottom: 18px;
}
.doc-body h2 span {
  display: inline-block;
  color: var(--green-500);
  margin-right: 8px;
}
.doc-body h3 {
  font-family: var(--font);
  font-size: 16px; font-weight: 800;
  margin: 24px 0 10px;
}
.doc-body p { margin-bottom: 14px; line-height: 1.68; }
.doc-body ul, .doc-body ol { margin: 0 0 16px 0; padding-left: 22px; }
.doc-body ul { list-style: disc; }
.doc-body ol { list-style: decimal; }
.doc-body li { margin-bottom: 9px; line-height: 1.62; }
.doc-body li::marker { color: var(--green-400); font-weight: 700; }
/* Podpunkty w paragrafach regulaminu: 1) a) b) c) */
.doc-body ol ol { list-style: lower-alpha; margin: 10px 0 4px; padding-left: 20px; }
.doc-body ol ol li { margin-bottom: 7px; }

/* Zdanie wprowadzające nad paragrafami */
.doc-lead {
  font-size: 1.06rem; color: var(--ink-soft);
  padding-bottom: 20px; margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

/* Link do pliku PDF */
.doc-pdf {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  background: var(--green-50);
  border: 1px solid var(--green-200);
  border-radius: var(--r-pill);
  font-family: var(--font); font-size: 14px; font-weight: 700;
  text-decoration: none !important;
}
.doc-pdf:hover { background: var(--green-100); border-color: var(--green-400); }

/* Wzór oświadczenia do przepisania */
.doc-wzor {
  background: var(--bg-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  padding: 20px 22px;
  margin: 0 0 20px;
}
.doc-wzor p:last-child { margin-bottom: 0; }

/* Kafelki kontaktowe */
.kontakt-karty {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin: 0 0 30px;
}
.kontakt-karta {
  display: flex; align-items: center; gap: 14px;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  text-decoration: none !important;
  color: var(--ink) !important;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.kontakt-karta:hover {
  transform: translateY(-2px);
  border-color: var(--green-400);
  box-shadow: var(--shadow);
}
.kontakt-ikona {
  flex-shrink: 0;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-100); color: var(--green-700);
}
.kontakt-ikona--tg { background: #E3F2FB; color: var(--telegram); }
.kontakt-tresc { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kontakt-tresc strong {
  font-family: var(--font); font-size: 15px; font-weight: 800;
}
.kontakt-tresc { font-size: 13.5px; color: var(--ink-soft); word-break: break-word; }
.doc-body a { color: var(--green-600); text-decoration: underline; text-underline-offset: 2px; }
.doc-body .btn { text-decoration: none; color: #fff; }   /* przycisk to nie link w tekscie */

/* Spis treści numeruje się sam licznikiem — musi wygrać z regułą wyżej */
.doc-body .doc-toc ol { list-style: none; padding-left: 0; }
.doc-body .doc-toc li { margin-bottom: 7px; }
.doc-body .doc-toc li::marker { content: none; }
.doc-body strong { font-weight: 700; color: var(--ink); }
.doc-body code {
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  font-size: .9em;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 5px; padding: 1px 6px;
}

/* ---- Tabela: na telefonie zamienia się w kartki ---- */
.doc-table { margin: 0 0 20px; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.doc-table th {
  text-align: left;
  font-family: var(--font); font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-soft);
  padding: 0 12px 10px 0;
  border-bottom: 2px solid var(--line);
}
.doc-table td {
  padding: 13px 12px 13px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top; line-height: 1.55;
}
.doc-table tr:last-child td { border-bottom: none; }

/* ---- Ramka na ważną informację ---- */
.doc-note {
  background: var(--yellow-50);
  border: 1px solid var(--yellow-200);
  border-left: 4px solid var(--yellow-500);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  margin: 0 0 20px;
  font-size: 14.5px; line-height: 1.6;
}
.doc-note strong { display: block; margin-bottom: 5px; }
.doc-note p:last-child { margin-bottom: 0; }

/* ---- Blok kontaktowy na końcu ---- */
.doc-contact {
  margin-top: 40px; padding-top: 28px;
  border-top: 2px solid var(--green-100);
}
.doc-contact .btn { margin-top: 16px; }

@media (max-width: 760px) {
  .doc-body { padding: 28px 20px 34px; border-radius: var(--r); }
  .kontakt-karty { grid-template-columns: 1fr; }
  .doc-top { padding: 20px 0 50px; }

  /* Tabela w pionie — nagłówki wędrują do komórek */
  .doc-table thead { display: none; }
  .doc-table table, .doc-table tbody, .doc-table tr, .doc-table td { display: block; width: 100%; }
  .doc-table tr {
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 4px 14px;
    margin-bottom: 12px;
    background: var(--bg);
  }
  .doc-table td { border-bottom: 1px dashed var(--line); padding: 11px 0; }
  .doc-table tr td:last-child { border-bottom: none; }
  .doc-table td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font); font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .05em;
    color: var(--ink-faint);
    margin-bottom: 3px;
  }
}
