/* Page-owned styles for Felhasználási feltételek */
.terms-main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding-block: var(--space-xl);
}

.terms-container {
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--container-padding);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.terms-section {
  width: 100%;
  min-width: 0;
}

.terms-section__title {
  font-family: var(--font-heading);
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  font-weight: var(--text-h2-weight);
  color: var(--text-primary);
  margin-block-end: var(--space-lg);
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.terms-section:first-child .terms-section__title {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line-height);
  font-weight: var(--text-h1-weight);
  margin-block-end: var(--space-lg);
}

.terms-copy {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.terms-copy--left {
  text-align: left;
  margin-inline: 0;
}

.terms-subtitle {
  font-family: var(--font-heading);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  font-weight: var(--text-h3-weight);
  color: var(--text-primary);
  margin-block-end: var(--space-sm);
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.terms-copy p {
  margin-block-end: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.terms-emphasis {
  font-weight: 600;
  color: var(--text-primary);
  border-inline-start: 3px solid var(--accent-secondary);
  padding-inline-start: var(--space-md);
}

.terms-list {
  list-style: disc;
  padding-inline-start: var(--space-lg);
  margin-block-end: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.terms-list li {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.terms-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

.terms-copy a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.terms-copy a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.terms-copy a:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
  border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
  .terms-main {
    padding-block: var(--space-lg);
  }

  .terms-container {
    gap: var(--space-lg);
  }

  .terms-section__title,
  .terms-section:first-child .terms-section__title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1.25;
    margin-block-end: var(--space-md);
  }

  .terms-subtitle {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    line-height: 1.3;
  }

  .terms-copy {
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .terms-main {
    padding-block: var(--space-md);
  }

  .terms-container {
    padding-inline: var(--space-md);
    gap: var(--space-md);
  }

  .terms-section__title,
  .terms-section:first-child .terms-section__title {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-block-end: var(--space-sm);
  }

  .terms-subtitle {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-block-end: var(--space-xs);
  }

  .terms-list {
    padding-inline-start: var(--space-md);
    gap: var(--space-xs);
  }

  .terms-emphasis {
    padding-inline-start: var(--space-sm);
  }
}

@media (prefers-reduced-motion: reduce) {
  .terms-copy a {
    transition: none;
  }
}
