/* Page-owned styles for Felhasználási Feltételek */
.terms-page {
  background-color: #0A0A0A;
  color: #F5F0E8;
}

.terms-hero {
  padding-block: 96px 64px;
  border-bottom: 1px solid #3A3A3A;
}

.terms-hero__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.terms-hero__caption {
  align-self: flex-start;
}

.terms-hero__title {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
  margin-block-end: 0;
}

.terms-hero__lead {
  max-width: 70ch;
  font-size: 18px;
  line-height: 1.6;
  color: #B8B2A8;
  margin-block-end: 0;
}

.terms-section {
  padding-block: 64px;
}

.terms-section__header {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
  margin-block-end: 32px;
}

.terms-section__content {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.terms-section__content--asymmetric {
  display: grid;
  grid-template-columns: minmax(0, 60%) minmax(0, 40%);
  gap: 32px;
  align-items: start;
}

.terms-section__text {
  min-width: 0;
}

.terms-section__empty {
  min-width: 0;
  min-height: 1px;
}

.terms-section h2 {
  margin-block-end: 24px;
}

.terms-block {
  margin-block-end: 32px;
}

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

.terms-block h3 {
  margin-block-end: 8px;
}

.terms-block p,
.terms-block ul,
.terms-block ol {
  max-width: 70ch;
}

.terms-block ul,
.terms-block ol {
  margin-block-end: 16px;
}

.terms-block ul:last-child,
.terms-block ol:last-child {
  margin-block-end: 0;
}

.terms-highlight {
  color: #C6FF00;
  font-weight: 600;
}

.terms-card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.terms-card {
  background-color: #1A1A1A;
  border: 1px solid #3A3A3A;
  border-radius: 2px;
  padding: 24px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  min-width: 0;
}

.terms-card:hover {
  border-color: #C6FF00;
  background-color: #1E1E1E;
}

.terms-card--highlight {
  border-color: #C6FF00;
}

.terms-card h3 {
  margin-block-end: 8px;
}

.terms-card p,
.terms-card ul {
  max-width: 70ch;
}

.terms-card ul {
  margin-block-end: 0;
}

.terms-steps {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: grid;
  gap: 24px;
}

.terms-step {
  counter-increment: step-counter;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.terms-step::before {
  content: counter(step-counter, decimal-leading-zero);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
  color: #C6FF00;
  border: 1px solid #3A3A3A;
  border-radius: 2px;
  padding: 4px 12px;
  display: inline-block;
}

.terms-step h3 {
  margin-block-end: 8px;
}

.terms-step p {
  max-width: 70ch;
  margin-block-end: 0;
}

.terms-step p + p {
  margin-block-start: 16px;
}

.terms-deadline-list {
  list-style: none;
  padding-inline-start: 0;
  display: grid;
  gap: 8px;
}

.terms-deadline-list li {
  border: 1px solid #C6FF00;
  border-radius: 2px;
  padding: 12px 16px;
  background-color: #1A1A1A;
  max-width: 70ch;
}

.terms-block--highlight {
  background-color: #1A1A1A;
  border: 1px solid #3A3A3A;
  border-radius: 2px;
  padding: 24px;
}

.terms-link {
  color: #C6FF00;
  text-decoration: none;
  transition: color 0.2s ease;
}

.terms-link:hover {
  color: #1E3A5F;
}

.terms-link:focus-visible {
  outline: 2px solid #C6FF00;
  outline-offset: 2px;
}

@media (max-width: 992px) {
  .terms-section__content--asymmetric {
    grid-template-columns: 1fr;
  }

  .terms-section__empty {
    display: none;
  }
}

@media (max-width: 768px) {
  .terms-hero {
    padding-block: 64px 48px;
  }

  .terms-hero__inner {
    padding-inline: 16px;
  }

  .terms-hero__title {
    font-size: clamp(32px, 8vw, 40px);
  }

  .terms-hero__lead {
    font-size: 16px;
  }

  .terms-section {
    padding-block: 48px;
  }

  .terms-section__header {
    padding-inline: 16px;
    margin-block-end: 24px;
  }

  .terms-section__content {
    padding-inline: 16px;
  }

  .terms-section h2 {
    font-size: 24px;
  }

  .terms-step {
    grid-template-columns: 1fr;
  }

  .terms-step::before {
    justify-self: start;
  }
}

@media (max-width: 390px) {
  .terms-hero__inner,
  .terms-section__header,
  .terms-section__content {
    padding-inline: 12px;
  }

  .terms-block p,
  .terms-block ul,
  .terms-block ol,
  .terms-card p,
  .terms-card ul,
  .terms-step p,
  .terms-deadline-list li {
    max-width: 100%;
  }
}
