/* Page-owned styles for Általános Szerződési Feltételek */
.aszf-main {
  width: 100%;
  background-color: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.6;
  hyphens: auto;
}

.aszf-section {
  width: 100%;
  border-bottom: var(--border-width) var(--border-style) var(--border-color);
  background-color: var(--color-canvas);
}

.aszf-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  background-color: var(--color-surface);
  border-bottom: var(--border-width) var(--border-style) var(--border-color);
  padding: var(--space-4);
}

.aszf-section-header .aszf-marker {
  flex-shrink: 0;
}

.aszf-section-header .aszf-h2 {
  margin-block-end: 0;
  text-align: right;
}

.aszf-header-section {
  background-color: var(--color-canvas);
}

.aszf-header-cell {
  width: 100%;
  background-color: var(--color-surface);
  border-bottom: var(--border-width) var(--border-style) var(--border-color);
  padding: var(--space-5);
}

.aszf-header-cell .aszf-marker {
  display: block;
  margin-block-end: var(--space-2);
}

.aszf-h1 {
  font-size: clamp(2rem, 5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-ink);
  margin-block-end: var(--space-4);
}

.aszf-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink);
  margin-block-end: var(--space-4);
  max-width: 70ch;
}

.aszf-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-block-start: var(--space-4);
}

.aszf-meta-item {
  font-family: var(--font-marker);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

.aszf-provider-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
  width: 100%;
}

.aszf-provider-grid > * {
  min-width: 0;
}

.aszf-provider-data,
.aszf-provider-description {
  background-color: var(--color-surface);
  padding: var(--space-5);
  border-right: var(--border-width) var(--border-style) var(--border-color);
}

.aszf-provider-data:last-child,
.aszf-provider-description:last-child {
  border-right: none;
}

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

.aszf-provider-list li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink);
}

.aszf-provider-list strong {
  font-weight: 600;
}

.aszf-h2 {
  font-size: clamp(1.5rem, 3.5vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-ink);
  margin-block-end: var(--space-4);
}

.aszf-h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.375rem);
  line-height: 1.4;
  font-weight: 600;
  color: var(--color-ink);
  margin-block-end: var(--space-3);
}

.aszf-content-cell {
  width: 100%;
  background-color: var(--color-surface);
  border-bottom: var(--border-width) var(--border-style) var(--border-color);
  padding: var(--space-5);
}

.aszf-content-cell:last-child {
  border-bottom: none;
}

.aszf-content-cell p,
.aszf-content-cell li {
  max-width: 75ch;
}

.aszf-content-cell p {
  margin-block-end: var(--space-4);
}

.aszf-content-cell p:last-child {
  margin-block-end: 0;
}

.aszf-content-cell ul {
  margin-block-end: var(--space-4);
  padding-inline-start: var(--space-5);
}

.aszf-content-cell ul:last-child {
  margin-block-end: 0;
}

.aszf-content-cell a {
  color: var(--color-ink);
  text-decoration: none;
  background-color: transparent;
}

.aszf-content-cell a:hover {
  background-color: var(--color-accent);
  color: var(--color-inverse-ink);
}

.aszf-content-cell a:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
}

.aszf-rights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: 100%;
}

.aszf-rights-grid > * {
  min-width: 0;
}

.aszf-rights-grid .aszf-content-cell {
  border-right: var(--border-width) var(--border-style) var(--border-color);
  border-bottom: none;
}

.aszf-rights-grid .aszf-content-cell:last-child {
  border-right: none;
}

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

.aszf-contact-list li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink);
}

.aszf-contact-list a {
  color: var(--color-ink);
  text-decoration: none;
  background-color: transparent;
}

.aszf-contact-list a:hover {
  background-color: var(--color-accent);
  color: var(--color-inverse-ink);
}

.aszf-contact-list a:focus-visible {
  outline: var(--focus-outline-width) solid var(--focus-outline-color);
  outline-offset: var(--focus-outline-offset);
}

/* Tablet breakpoint */
@media (min-width: 768px) and (max-width: 1023px) {
  .aszf-provider-grid {
    grid-template-columns: 1fr;
  }

  .aszf-provider-data,
  .aszf-provider-description {
    border-right: none;
    border-bottom: var(--border-width) var(--border-style) var(--border-color);
  }

  .aszf-provider-description {
    border-bottom: none;
  }

  .aszf-rights-grid {
    grid-template-columns: 1fr;
  }

  .aszf-rights-grid .aszf-content-cell {
    border-right: none;
    border-bottom: var(--border-width) var(--border-style) var(--border-color);
  }

  .aszf-rights-grid .aszf-content-cell:last-child {
    border-bottom: none;
  }
}

/* Mobile breakpoint */
@media (max-width: 767px) {
  .aszf-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .aszf-section-header .aszf-h2 {
    text-align: left;
  }

  .aszf-header-cell {
    padding: var(--space-4);
  }

  .aszf-provider-grid {
    grid-template-columns: 1fr;
  }

  .aszf-provider-data,
  .aszf-provider-description {
    border-right: none;
    border-bottom: var(--border-width) var(--border-style) var(--border-color);
    padding: var(--space-4);
  }

  .aszf-provider-description {
    border-bottom: none;
  }

  .aszf-content-cell {
    padding: var(--space-4);
  }

  .aszf-rights-grid {
    grid-template-columns: 1fr;
  }

  .aszf-rights-grid .aszf-content-cell {
    border-right: none;
    border-bottom: var(--border-width) var(--border-style) var(--border-color);
    padding: var(--space-4);
  }

  .aszf-rights-grid .aszf-content-cell:last-child {
    border-bottom: none;
  }

  .aszf-lead,
  .aszf-content-cell p,
  .aszf-content-cell li {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aszf-main,
  .aszf-main *,
  .aszf-main *::before,
  .aszf-main *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
