/* Page: Všeobecné obchodné podmienky */

/* Page-owned container for the entire terms content */
.terms-page {
  background-color: var(--color-bg-primary);
  padding-block: var(--section-padding-mobile);
}

@media (min-width: 768px) {
  .terms-page {
    padding-block: var(--section-padding-tablet);
  }
}

@media (min-width: 1024px) {
  .terms-page {
    padding-block: var(--section-padding-desktop);
  }
}

/* Central wrapper with max-width 800px, centered */
.terms-container {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--container-padding-mobile);
}

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

/* Main page title (H1) styling */
.terms-main-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 5vw, var(--text-h1-size));
  font-weight: var(--text-h1-weight);
  line-height: var(--text-h1-line);
  color: var(--color-accent);
  margin-block-end: var(--space-48);
  text-align: center;
}

/* Each section block */
.terms-section {
  margin-block-end: var(--space-48);
}

.terms-section:last-child {
  margin-block-end: 0;
}

/* Section title (H2) styling */
.terms-section-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, var(--text-h2-size));
  font-weight: var(--text-h2-weight);
  line-height: var(--text-h2-line);
  color: var(--color-accent);
  margin-block-end: var(--space-24);
  padding-block-end: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

/* Content block within each section */
.terms-content {
  /* Reset margins for children that will be controlled by parent grid/flex */
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

/* Subsection titles (H3) within content */
.terms-subsection-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, var(--text-h3-size));
  font-weight: var(--text-h3-weight);
  line-height: var(--text-h3-line);
  color: var(--color-text-primary);
  margin-block-end: 0; /* Reset base margin, gap handles spacing */
}

/* Paragraphs inside content */
.terms-content p {
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: var(--text-body-line);
  color: var(--color-text-secondary);
  margin-block-end: 0; /* Reset base margin, gap handles spacing */
}

/* List styling */
.terms-list {
  list-style: disc !important;
  padding-inline-start: var(--space-24);
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.terms-list li {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
  color: var(--color-text-secondary);
  margin-block-end: 0;
}

/* Links */
.terms-link {
  color: var(--color-accent);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.terms-link:hover {
  color: var(--color-accent-hover);
}

/* Strong text emphasis */
.terms-content strong {
  color: var(--color-text-primary);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .terms-container {
    padding-inline: var(--space-16);
  }

  .terms-main-title {
    font-size: 26px;
    margin-block-end: var(--space-32);
  }

  .terms-section {
    margin-block-end: var(--space-32);
  }

  .terms-section-title {
    font-size: 22px;
    margin-block-end: var(--space-16);
  }

  .terms-subsection-title {
    font-size: 18px;
  }
}