body {
  display: flex;
  flex-direction: column;
}

html, body {
  height: 100%;
}
.ml0m {
  margin-left: 0 !important;
}

.terms-page {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 5px;
}

.sidebar-container {
  width: 250px;
  background-color: #f9f9f9;
  padding: 1rem;
  position: sticky;
  top: 0;
  max-height: 100vh;
  height: auto;
}

.sidebar-title {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 20px;
  border-bottom: 2px solid #000;
  padding: 2px 0 5px 0;
  line-height: 1.4;
  color: #2a2a2a;
}

.sidebar-menu {
  border-right: 1px solid #324673;
  padding-left: 10px;
}

.sidebar-link {
  display: block;
  position: relative;
  color: #53535f;
  text-decoration: none;
  padding-left: 20px;
}

.sidebar-link.active,
.sidebar-link:focus {
  font-weight: bold;
  color: #324673;
  background-color: #f0f8ff;
}

.sidebar-link.active::before,
.sidebar-link:focus::before {
  content: "→";
  position: absolute;
  left: 0;
  font-weight: bold;
  color: #324673;
}

.sidebar-link:focus {
  outline: none;
}

.terms-content {
  flex: 1;
  padding: 1rem;
  overflow-y: visible;
}

.terms-content h1 {
  font-size: 30px;
  font-weight: 400;
}

.terms-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
}

.terms-content p {
  font-size: 16px;
  line-height: 1.8;
  color: #53535f;
  text-align: justify;
  text-justify: inter-word;
}

.terms-content h2,
.terms-content section {
  scroll-margin-top: 80px;
}

.terms-content section {
  margin-left: 20px;
  margin-right: 40px;
  text-align: justify;
  text-justify: inter-word;
}

.banner-container {
  background-color: #324673;
  color: #fff;
  padding: 60px 0 2px;
  margin-top: 19px;
}

.banner-container .container {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.banner-content {
  flex: 1;
  text-align: left;
}

.banner-content h1 {
  font-size: 35px;
  font-weight: bold;
  color: #fff;
}

.banner-content p {
  font-size: 14px;
  max-width: 600px;
  margin-top: 30px;
  line-height: 1.6;
  color: #fff;
}

@media (max-width: 768px) {
  .terms-page {
    flex-direction: column;
    padding: 1rem 1.5rem;
  }

  .sidebar-container {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid #ccc;
    padding: 1rem 0;
    overflow: visible;
  }

  .sidebar-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: center;
  }

  .sidebar-link {
    padding-left: 0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .sidebar-link.active::before,
  .sidebar-link:focus::before {
    content: none;
  }

  .terms-content {
    padding: 1rem 0;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 768px) {
  .terms-content section {
    margin-left: 0 !important;
  }
}
