/**
 * pysiecterms - "Regulamin sklepu". Namespace .pysiec-terms*, ten sam język wizualny co
 * "Regulamin programu Łapki" (.pysiec-lapki-terms*): kremowy panel ze spisem treści po lewej,
 * biała karta z sekcjami po prawej.
 */

.pysiec-terms {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 32px) clamp(40px, 6vw, 76px);
  box-sizing: border-box;
}

.pysiec-terms__title {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 44px);
  letter-spacing: -.025em;
  margin: 14px 0 0;
  color: var(--pysiec-text, #1a1a18);
}

.pysiec-terms__version {
  font-size: 15px;
  color: var(--pysiec-espresso, #3e2f23);
  margin: 10px 0 0;
}

.pysiec-terms__layout {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.5vw, 32px);
  align-items: flex-start;
  margin-top: clamp(24px, 3vw, 36px);
}

.pysiec-terms__aside {
  flex: 1 1 260px;
  min-width: 0;
  position: sticky;
  top: var(--pysiec-terms-sticky-top, 150px);
  background: var(--pysiec-cream, #e8dcc5);
  border-radius: 26px;
  padding: clamp(20px, 3vw, 28px);
  box-sizing: border-box;
}

.pysiec-terms__aside-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(62, 47, 35, .65);
}

.pysiec-terms__toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 12px;
}

.pysiec-terms__toc-link {
  padding: 7px 10px;
  margin: 0 -10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--pysiec-espresso, #3e2f23);
  text-decoration: none;
}

.pysiec-terms__toc-link:hover,
.pysiec-terms__toc-link:focus-visible {
  background: rgba(255, 255, 255, .6);
}

.pysiec-terms__aside-divider {
  height: 1px;
  background: rgba(62, 47, 35, .18);
  margin: 18px 0;
}

.pysiec-terms__aside-note {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(62, 47, 35, .8);
  margin: 0;
}

.pysiec-terms__aside-note a {
  color: var(--pysiec-brand-hover, #704f27);
  font-weight: 700;
}

.pysiec-terms__main {
  flex: 3 1 420px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--pysiec-line-20, rgba(62, 47, 35, .2));
  border-radius: 26px;
  padding: clamp(22px, 3.2vw, 38px);
  box-sizing: border-box;
}

.pysiec-terms__tldr {
  background: rgba(143, 163, 92, .14);
  border-radius: 18px;
  padding: 18px 20px;
}

.pysiec-terms__tldr-title {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: 16px;
}

.pysiec-terms__tldr-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--pysiec-espresso, #3e2f23);
  margin: 8px 0 0;
  max-width: 70ch;
}

.pysiec-terms__section {
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--pysiec-line-14, rgba(62, 47, 35, .14));
  scroll-margin-top: 150px;
}

.pysiec-terms__tldr + .pysiec-terms__section {
  margin-top: 26px;
}

.pysiec-terms__section-title {
  font-family: var(--pysiec-font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.01em;
  margin: 0;
}

.pysiec-terms__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--pysiec-espresso, #3e2f23);
  margin: 10px 0 0;
  max-width: 74ch;
}

.pysiec-terms__list {
  margin: 10px 0 0;
  padding-left: 22px;
  max-width: 74ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--pysiec-espresso, #3e2f23);
}

.pysiec-terms__list li + li {
  margin-top: 4px;
}

.pysiec-terms__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--pysiec-line-14, rgba(62, 47, 35, .14));
}

.pysiec-terms__btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--pysiec-radius-pill, 999px);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.pysiec-terms__btn--primary {
  background: var(--pysiec-brand, #8a6535);
  color: #fff;
}

.pysiec-terms__btn--primary:hover,
.pysiec-terms__btn--primary:focus-visible {
  background: var(--pysiec-brand-hover, #704f27);
  color: #fff;
}

.pysiec-terms__btn--outline {
  background: none;
  border: 1px solid var(--pysiec-espresso, #3e2f23);
  color: var(--pysiec-espresso, #3e2f23);
}

.pysiec-terms__btn--outline:hover,
.pysiec-terms__btn--outline:focus-visible {
  background: var(--pysiec-espresso, #3e2f23);
  color: var(--pysiec-bg, #faf8f3);
}

@media (max-width: 767.98px) {
  .pysiec-terms__aside {
    position: static;
  }
}
