/* SCROLLABLE TABLE CONTAINER WRAPPER */
main .tn-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--color-accent-soft);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* HERO LAYOUT */
main .tn-hero {
  position: relative;
  background: radial-gradient(circle at top right, rgba(139, 63, 251, 0.15) 0%, var(--color-bg) 70%);
  padding: 5rem 1.5rem 4rem;
  border-bottom: 1px solid var(--color-accent-soft);
}

main .tn-hero--centered {
  text-align: center;
  background: radial-gradient(circle at center, rgba(139, 63, 251, 0.18) 0%, var(--color-bg) 80%);
}

main .tn-hero--legal {
  background: radial-gradient(circle at center, rgba(139, 63, 251, 0.1) 0%, var(--color-bg) 80%);
  text-align: center;
  padding: 6rem 1.5rem 5rem;
}

main .tn-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

main .tn-container--narrow {
  max-width: 800px;
}

main .tn-hero__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  main .tn-hero__wrapper {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

main .tn-hero__content--full-width {
  max-width: 850px;
  margin: 0 auto;
}

main .tn-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

main .tn-hero__lead {
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  color: var(--color-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

main .tn-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

main .tn-hero__actions--center {
  justify-content: center;
}

main .tn-hero__media {
  position: relative;
}

/* LAYOUT SECTIONS */
main .tn-section {
  padding: 5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

main .tn-section--alt {
  background-color: #1c1527;
}

main .tn-section--muted {
  background-color: #14101d;
}

main .tn-section__header {
  margin-bottom: 3rem;
}

main .tn-section__header--center {
  text-align: center;
}

main .tn-section__tagline {
  color: var(--color-muted);
  font-size: 1.1rem;
  margin-top: 0.5rem;
  max-width: 700px;
}

main .tn-section__header--center .tn-section__tagline {
  margin-left: auto;
  margin-right: auto;
}

main .tn-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

main .tn-grid--single {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  main .tn-grid {
    grid-template-columns: 1fr 1fr;
  }
  main .tn-grid--single {
    grid-template-columns: 1fr;
  }
  main .tn-grid--reversed .tn-section__content {
    order: 2;
  }
  main .tn-grid--reversed .tn-section__media,
  main .tn-grid--reversed .tn-section__table-container {
    order: 1;
  }
}

main h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

main h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

main .tn-subheading {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

main p {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
}

main p a,
main li a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

main p a:hover,
main li a:hover {
  text-shadow: 0 0 8px var(--color-accent-glow);
  text-decoration: underline;
}

/* FIGURE & MEDIA COHESION */
main .tn-figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-accent-soft);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
  position: relative;
}

main .tn-figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px var(--color-accent-glow);
}

main .tn-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* CUSTOM LISTS */
main .tn-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

main .tn-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--color-muted);
}

main .tn-list li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-accent);
}

main .tn-list strong {
  color: #ffffff;
}

main .tn-list--bullets li::before {
  border-radius: 2px;
  width: 6px;
  height: 12px;
  top: 0.4rem;
}

main .tn-list--compact {
  gap: 0.5rem;
}

main .tn-list--compact li {
  font-size: 0.9rem;
}

/* STEP LIST (PROCESSES) */
main .tn-step-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

main .tn-step-list li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

main .tn-step-list__num {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent-soft);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  font-weight: 700;
  font-size: 1.1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(139, 63, 251, 0.2);
}

main .tn-step-list li strong {
  display: block;
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

main .tn-step-list li p {
  margin: 0;
  font-size: 0.95rem;
}

main .tn-step-list--compact {
  gap: 1rem;
  margin: 1rem 0;
}

main .tn-step-list--compact li {
  display: block;
  padding-left: 1.25rem;
  position: relative;
}

main .tn-step-list--compact li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

/* STEP BADGES AND GRID EXTENSIONS */
main .tn-step-badge {
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px var(--color-accent-glow);
}

main .tn-margin-top-xs {
  margin-top: 0.5rem;
}

/* CARDS GRID & ISSUE TRACKER */
main .tn-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 576px) {
  main .tn-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  main .tn-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  main .tn-cards-grid:has(.tn-card:nth-child(4)) {
    grid-template-columns: repeat(4, 1fr);
  }
  main .tn-card--span-2 {
    grid-column: span 2;
  }
}

main .tn-card {
  background-color: #21192e;
  border: 1px solid var(--color-accent-soft);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}

main .tn-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(139, 63, 251, 0.1);
  border-color: rgba(139, 63, 251, 0.4);
}

main .tn-card__title {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

main .tn-card__text {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

/* ISSUES CONTAINER */
main .tn-issues-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  main .tn-issues-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

main .tn-issue-card {
  background-color: #21192e;
  border: 1px solid var(--color-accent-soft);
  border-left: 4px solid #f25f5c;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: var(--transition);
}

main .tn-issue-card:hover {
  border-color: var(--color-accent);
  border-left-color: #f25f5c;
  transform: translateX(4px);
}

main .tn-issue-card__problem {
  color: #f25f5c;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

main .tn-issue-card__solution {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* SUBSECTION GRID */
main .tn-subsections-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  main .tn-subsections-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* PREMIUM TABLES */
main .tn-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #120d1a;
  color: var(--color-text);
  font-size: 0.95rem;
}

main .tn-table th,
main .tn-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

main .tn-table th {
  background-color: #1a1424;
  color: #ffffff;
  font-weight: 700;
  border-bottom: 2px solid var(--color-accent-soft);
}

main .tn-table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.01);
}

main .tn-table tbody tr:hover {
  background-color: rgba(139, 63, 251, 0.05);
}

main .tn-table__row--highlighted {
  background-color: rgba(139, 63, 251, 0.1) !important;
  border-left: 3px solid var(--color-accent);
}

main .tn-table__row--highlighted td {
  color: #ffffff;
  font-weight: 600;
}

/* ACTIONS CONTROLS */
main .tn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

main .tn-margin-top {
  margin-top: 3.5rem;
}

main .tn-margin-top-xs {
  margin-top: 1rem;
}

/* FAQ ACCORDION */
main .tn-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

main .tn-faq-item {
  background-color: #21192e;
  border: 1px solid var(--color-accent-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

main .tn-faq-item[open] {
  border-color: var(--color-accent);
}

main .tn-faq-item__question {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

main .tn-faq-item__question::-webkit-details-marker {
  display: none;
}

main .tn-faq-item__question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--color-accent);
  transition: transform 0.25s;
}

main .tn-faq-item[open] .tn-faq-item__question::after {
  transform: rotate(45deg);
}

main .tn-faq-item__answer {
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

main .tn-faq-item__answer p {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* TERMS SPECIFIC LEGAL PAGES STYLING */
main .tn-legal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 4rem 1.5rem 6rem;
}

@media (min-width: 992px) {
  main .tn-legal-layout {
    grid-template-columns: 280px 1fr;
  }
}

main .tn-legal-sidebar {
  position: relative;
}

main .tn-legal-nav {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  background-color: #15101f;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-accent-soft);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

main .tn-legal-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

main .tn-legal-nav__link {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: var(--transition);
  border-left: 2px solid transparent;
}

main .tn-legal-nav__link:hover,
main .tn-legal-nav__link--active {
  color: #ffffff;
  background-color: var(--color-accent-soft);
  border-left-color: var(--color-accent);
}

main .tn-legal-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

main .tn-legal-section {
  scroll-margin-top: calc(var(--header-height) + 3rem);
}

main .tn-legal-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #ffffff;
  border-bottom: 2px solid var(--color-accent-soft);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

main .tn-legal-block {
  background-color: #21192e;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-top: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

main .tn-legal-block h3 {
  color: var(--color-accent);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}