.legal-wrapper {
  padding: 5rem 3rem;
}

.legal {
  display: flex;
  max-width: var(--max-screen-width);
  margin: 0 auto;
  gap: 6.5rem;
  height: auto;
  overflow: visible;
  box-sizing: border-box;
}

.legal-menu {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 12.5rem;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  height: fit-content;
}

.legal-menu span {
  font-weight: var(--font-weight-bold);
  line-height: 1.6875rem;
  color: var(--blue);
  display: flex;
  flex-direction: column;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.legal-menu hr {
  width: 100%;
  height: 1px;
  border: none;
  background: var(--grey-light);
}

.legal-menu .legal-menu-item {
  font-size: var(--font-size-l);
  line-height: 1.5rem;
  color: var(--main-text-color);
  text-decoration: none;
}

.legal-menu .legal-menu-item:not(.active):hover {
  color: var(--blue);
}

.legal-menu .legal-menu-item.active {
  font-weight: var(--font-weight-bold);
}

.legal-content {
  max-width: 45rem;
}

@media (max-width: 768px) {
  .legal-content {
    max-width: 95%;
  }
}

/* Terms and conditions */

.terms-conditions-heading {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xxxl);
  line-height: 3.125rem;
  color: var(--simple-black);
}

.tc-table-contents-dropdown {
  border: 1px solid var(--separator);
  width: 100%;
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  box-sizing: border-box;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease-out;
}

.tc-contents-dropdown-header {
  display: flex;
  justify-content: space-between;
}

.table-of-contents-title {
  color: var(--main-text-color);
  font-size: var(--font-size-l);
  line-height: 1.5rem;
  font-weight: var(--font-weight-bold);
}

.tc-contents-dropdown-list {
  transition: visibility 0.2s ease-out;
  margin: 0;
  padding: 0;
  list-style: none;

  display: block;
  height: 0;
  overflow: hidden;
}


.tc-rotate-chevron {
  transform: rotate(-180deg);
}

.tc-dropdown-no {
  font-weight: 700;
  line-height: 1.1875rem;
  font-size: var(--font-size-xm);
  height: 1.375rem;
  width: 1.5rem;
  margin-top: 0.25rem;
}

.tc-dropdown-subject {
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-xxm);
  line-height: 1.8125rem;
  color: var(--main-text-color);
  text-decoration: none;
}

.tc-contents-dropdown-list li {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  padding-block: 2rem 1rem;
  border-bottom: 1px solid var(--separator);
}

.tc-contents-dropdown-list li:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.tc-chevron-down-img {
  transition: all 0.2s ease-in-out;
}

.terms-chapter {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xxl);
  line-height: 2.625rem;
  color: var(--main-text-color);
  margin-block: 2rem;
}

.terms-conditions-ol {
  margin: 0;
  padding-inline-start: 0;
  list-style: none;
}

.terms-conditions-ol > li {
  margin-block: 1rem;
  line-height: 1.5rem;
  font-size: var(--font-size-l);
  font-weight: var(--font-weight-regular);
  color: var(--main-text-color);
}

.legal-pages-paragraph {
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-l);
  line-height: 1.5rem;
  color: var(--main-text-color);
}

.legal-subtitle {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-l);
  line-height: 1.5rem;
  color: var(--main-text-color);
}

/*Responsive*/
@media only screen and (max-width: 1200px) {
  .legal {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .legal-menu {
    flex-direction: row;
    width: unset;
    padding: 0;
    align-items: center;
    position: unset;
    max-width: 45rem;
    margin: 0 auto;
    flex-wrap: wrap;
  }

  .legal-menu span {
    width: 100%;
  }
}

@media only screen and (max-width: 1080px) {
  .legal-wrapper {
    padding: 4rem 3rem;
  }
}

@media only screen and (max-width: 814px) {
  .legal-menu {
    min-width: unset;
    width: 100%;
  }
}

@media only screen and (max-width: 767px) {
  .legal-wrapper {
    padding: 4rem 1.5rem;
  }

  .legal-menu {
    max-width: 95%;
  }
}

@media only screen and (max-width: 650px) {
  .legal-menu {
    flex-direction: column;
  }

  .legal-menu span {
    width: auto;
  }
}

@media only screen and (max-width: 480px) {
  .legal-wrapper {
    padding: 4rem 1rem;
  }

  .terms-conditions-heading {
    text-align: center;
  }
}
