/* ============================================================
   ACRO WAVE — regulamin.css
   Styles specific to the Regulamin subpage
   ============================================================ */

/* ---- Active nav link ---- */
.nav__link--active {
  color: var(--color-accent);
}

/* ============================================================
   PAGE HERO (lighter than main hero)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #0d0d10 0%, #1a1a2e 55%, #2d1b4e 100%);
  color: #fff;
  padding-top: calc(var(--sp-10) + var(--sp-4));
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 500px 300px at 80% 50%, rgba(232, 67, 147, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  padding-bottom: var(--sp-10);
  max-width: 640px;
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--sp-2);
}

.page-hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.7;
}

/* ============================================================
   REGULAMIN LAYOUT
   ============================================================ */
.tos {
  background-color: var(--color-bg);
}

.tos__layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-8);
  align-items: start;
}

/* ---- Sidebar TOC ---- */
.tos__toc {
  position: sticky;
  top: calc(72px + var(--sp-4)); /* below fixed header */
  background-color: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--sp-4);
}

.tos__toc-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--sp-2);
}

.tos__toc-list {
  list-style: none;
  counter-reset: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tos__toc-list li a {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding: 6px var(--sp-1);
  border-radius: 8px;
  transition: color var(--ease), background-color var(--ease);
  line-height: 1.4;
}

.tos__toc-list li a:hover {
  color: var(--color-accent);
  background-color: rgba(232, 67, 147, 0.07);
}

/* ---- Main content ---- */
.tos__content {
  min-width: 0;
}

.tos__section {
  margin-bottom: var(--sp-8);
  scroll-margin-top: calc(72px + var(--sp-3));
}

.tos__heading {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--color-bg-alt);
}

.tos__heading-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
}

.tos__list {
  list-style: none;
  counter-reset: tos-counter;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.tos__list li {
  counter-increment: tos-counter;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: var(--sp-1);
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--color-primary);
}

.tos__list li::before {
  content: counter(tos-counter) ".";
  font-weight: 700;
  color: var(--color-accent);
  font-size: 0.875rem;
  padding-top: 3px;
}

.tos__list a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--ease);
}

.tos__list a:hover {
  color: var(--color-accent-dark);
}

/* ---- Contact CTA card ---- */
.tos__cta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  margin-top: var(--sp-6);
  background: linear-gradient(135deg, #0d0d10, #1a1a2e);
  color: #fff;
}

.tos__cta svg {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.tos__cta-text {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.tos__cta-sub {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.60);
  margin-top: 2px;
}

.tos__cta .btn {
  margin-left: auto;
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .tos__layout {
    grid-template-columns: 1fr;
  }

  .tos__toc {
    position: static;
  }
}

@media (max-width: 600px) {
  .tos__cta {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .tos__cta .btn {
    margin-left: 0;
    width: 100%;
  }
}
