/* Strona Regulamin – style własne strony */
.regulamin-page {
  padding-block: var(--space-4xl) var(--space-5xl);
  background-color: var(--color-canvas);
}

.regulamin-hero {
  display: flex;
  justify-content: center;
  padding-block: var(--space-2xl) var(--space-4xl);
}

.regulamin-hero__inner {
  width: 100%;
  max-width: 720px;
  text-align: center;
  margin-inline: auto;
}

.regulamin-hero__title {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-leading);
  font-weight: var(--text-h1-weight);
  color: var(--color-forest-deep);
  margin-block-end: var(--space-lg);
}

.regulamin-hero__date {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-leading);
  color: var(--color-ink-muted);
  margin-block-end: var(--space-xl);
}

.regulamin-hero__lead {
  max-width: 65ch;
  margin-inline: auto;
  font-size: var(--text-body-size);
  line-height: var(--text-body-leading);
  color: var(--color-ink);
  margin-block-end: 0;
}

.regulamin-hero__lead a {
  color: var(--color-forest);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.regulamin-hero__lead a:hover {
  color: var(--color-forest-deep);
}

.regulamin-toc {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding-block: var(--space-2xl);
  border-block-start: 1px solid var(--color-border);
  border-block-end: 1px solid var(--color-border);
  margin-block-end: var(--space-4xl);
}

.regulamin-toc__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-leading);
  font-weight: var(--text-h2-weight);
  color: var(--color-forest-deep);
  margin-block-end: var(--space-lg);
}

.regulamin-toc__list {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.regulamin-toc__list li {
  line-height: var(--text-body-leading);
}

.regulamin-toc__list a {
  display: inline-block;
  color: var(--color-forest);
  font-weight: 600;
  padding-block: var(--space-xs);
  transition: color var(--transition-fast);
}

.regulamin-toc__list a:hover {
  color: var(--color-forest-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.regulamin-toc__list a:focus-visible {
  outline: 2px solid var(--color-forest);
  outline-offset: 2px;
}

.regulamin-section {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding-block: var(--space-3xl);
  border-block-end: 1px solid var(--color-border);
}

.regulamin-section:last-of-type {
  border-block-end: none;
}

.regulamin-section__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.regulamin-section__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-leading);
  font-weight: var(--text-h2-weight);
  color: var(--color-forest-deep);
  margin-block-end: 0;
}

.regulamin-section__subtitle {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-leading);
  font-weight: var(--text-h3-weight);
  color: var(--color-forest-deep);
  margin-block-end: 0;
}

.regulamin-section p {
  max-width: 65ch;
  margin-block-end: 0;
}

.regulamin-section a {
  color: var(--color-forest);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.regulamin-section a:hover {
  color: var(--color-forest-deep);
}

.regulamin-definitions {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-block-end: 0;
}

.regulamin-definitions__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.regulamin-definitions__item dt {
  font-weight: 700;
  color: var(--color-forest-deep);
}

.regulamin-definitions__item dd {
  margin-inline-start: 0;
  color: var(--color-ink);
  line-height: var(--text-body-leading);
}

.regulamin-steps,
.regulamin-list {
  max-width: 65ch;
  margin-block-end: 0;
  padding-inline-start: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.regulamin-steps {
  list-style: decimal;
}

.regulamin-list {
  list-style: disc;
}

.regulamin-steps li,
.regulamin-list li {
  line-height: var(--text-body-leading);
  padding-inline-start: var(--space-xs);
}

@media (max-width: 768px) {
  .regulamin-page {
    padding-block: var(--space-3xl) var(--space-4xl);
  }

  .regulamin-hero {
    padding-block: var(--space-xl) var(--space-2xl);
  }

  .regulamin-hero__title {
    font-size: var(--text-h2-size);
    line-height: var(--text-h2-leading);
  }

  .regulamin-hero__date {
    font-size: var(--text-body-size);
    line-height: var(--text-body-leading);
  }

  .regulamin-toc {
    padding-block: var(--space-xl);
    margin-block-end: var(--space-2xl);
  }

  .regulamin-section {
    padding-block: var(--space-2xl);
  }
}

@media (prefers-reduced-motion: reduce) {
  .regulamin-toc__list a,
  .regulamin-section a,
  .regulamin-hero__lead a {
    transition: none;
  }
}
