/* Regulamin page styles */
.regulamin-page {
  display: flex;
  justify-content: center;
  width: 100%;
  padding-block: var(--space-xl) var(--space-2xl);
}

.regulamin-container {
  width: 100%;
  max-width: var(--container-article);
  padding-inline: var(--container-padding-mobile);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.regulamin-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
}

.regulamin-ornament {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A8F6A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c3 2 5 5 5 8a5 5 0 0 1-10 0c0-3 2-6 5-8z'/%3E%3Cpath d='M12 11c1.5 1 2.5 2.5 2.5 4a2.5 2.5 0 0 1-5 0c0-1.5 1-3 2.5-4z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.regulamin-title {
  font-size: var(--text-h1);
  line-height: var(--leading-h1);
  margin-block-end: 0;
}

.regulamin-lead {
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
  max-width: 65ch;
  margin-block-end: 0;
}

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

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

.regulamin-toc-list li {
  position: relative;
  padding-inline-start: var(--space-md);
}

.regulamin-toc-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.45em;
  width: 0.75rem;
  height: 0.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A8F6A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c3 2 5 5 5 8a5 5 0 0 1-10 0c0-3 2-6 5-8z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.regulamin-toc-list a {
  color: var(--color-sage);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.regulamin-toc-list a:hover {
  color: var(--color-sage-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.regulamin-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-block-start: var(--space-md);
  border-block-start: var(--border-subtle);
}

.regulamin-section-title {
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
  margin-block-end: 0;
}

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

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

.regulamin-list li {
  position: relative;
  padding-inline-start: var(--space-md);
}

.regulamin-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.45em;
  width: 0.75rem;
  height: 0.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A8F6A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c3 2 5 5 5 8a5 5 0 0 1-10 0c0-3 2-6 5-8z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.regulamin-section a {
  color: var(--color-sage);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

@media (min-width: 768px) {
  .regulamin-container {
    padding-inline: var(--container-padding-tablet);
  }
}

@media (min-width: 1024px) {
  .regulamin-container {
    padding-inline: var(--container-padding-desktop);
  }
}

@media (max-width: 767px) {
  .regulamin-title {
    font-size: 2.5rem;
    line-height: 1.15;
  }

  .regulamin-section-title {
    font-size: 2rem;
    line-height: 1.2;
  }
}
