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

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

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

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

.sidebar-title {
  font-weight: bold;
  font-size: 17px;
  margin-bottom: 20px;
  border-bottom: 2px solid #000;
  padding: 0 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;
    text-decoration: none;
    padding-left: 0px;
    font-weight: 500;
    font-size: 15px;
}

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

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

.sidebar-link.active {
  font-weight: bold;
  color: #324673;
}

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

.terms-content h2 {
  font-size: 20px !important;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #324673;
}

.terms-content p {
  font-size: 16px;
  color: #53535f;
  text-align: justify;
  padding-top: 10px;
}


.terms-content ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
}

.terms-content ul li {
  display: block;
  margin-bottom: 0.5rem;
}

.terms-content li {
  position: relative;
  font-size: 16px;
  line-height: 1.8;
  color: #53535f;
  text-align: justify;
}

.terms-content li::before {
  left: 0;
  font-size: 1rem;
  line-height: 1;
}

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

.terms-content section {
  margin-right: 0;
  text-align: justify;
  text-justify: inter-word;
}

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

.banner-container .container {
  display: flex;
  text-align: justify;
  gap: 20px;
  flex-wrap: wrap;
}

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

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

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

.banner-image {
  padding: 0;
  border-radius: 8px;
  max-width: 420px;
  height: auto;
  margin-bottom: 20px;
}

/* Estilo para tabela da seção "Dados Coletados" */
.tabela-dados {
  overflow-x: auto;
  margin-top: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 0px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tabela-dados table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0px;
  overflow: hidden;
  background: #fff;
}

.tabela-dados th,
.tabela-dados td {
  border: 1px solid #ddd;
  padding: 1rem;
  text-align: left;
  vertical-align: top;
}

.tabela-dados th {
  background-color: #f2f2f2;
  font-weight: 600;
  color: #333;
}

.tabela-dados td {
  background-color: #fff;
}

.tabela-dados ul {
  margin: 0;
  padding-left: 1.2rem;
}

.tabela-dados ul li {
  margin-bottom: 0.5rem;
}

.direitos-lista {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.direitos-lista li {
  position: relative;
  padding-left: 30px;
  padding-bottom: 12px;
}

.separador {
  position: absolute;
  left: 20px;
  top: 12px;
  width: 5px;
  height: 5px;
  background-color: #53535f;
  border-radius: 50%;
}

.form-control {
    display: block;
    width: 50%;
    padding: 6px 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    background-clip: padding-box;
    border: 2px solid #d1d5db;
    box-shadow: none !important;
    background-color: #f9f9f9;
}

.form-control:focus {
    border: 2px solid #324673;
    box-shadow: none !important;
}

.form-group {
    margin-bottom: 16px;
}

label {
    font-weight: 500;
    margin-top: 8px;
    display: block;
}

button.btn-primary {
    background-color: #324673;
    border-color: #324673;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 12px;
}

.btn-primary:hover {
    color: #fff;
    background: #324373;
    border-color: #324373;
}

/* 1024px */
@media (max-width: 1024px) {
  .terms-page {
    max-width: 100%;
  }

  .sidebar-container {
    width: 220px;
  }

  .banner-content h1 {
    font-size: 42px;
  }

  .banner-image {
    max-width: 360px;
  }

  .form-control {
    width: 70%;
  }
  .tabela-dados th,
  .tabela-dados td {
    padding: 8px;
    font-size: 14px;
  }
}

/* 768px */
@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 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: center;
    border-right: none;
    padding-left: 0;
  }

  .sidebar-link {
    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;
  }

  .banner-container {
    padding: 40px 0 10px;
  }

  .banner-content h1 {
    font-size: 32px;
  }

  .banner-content p {
    font-size: 13px;
  }

  .banner-image {
    max-width: 100%;
  }

  .form-control {
    width: 100%;
  }

  .tabela-dados {
    border-radius: 0;
  }

  .tabela-dados table {
    min-width: 700px;
  }

  .tabela-dados th,
  .tabela-dados td {
    padding: 10px;
    font-size: 13px;
  }
}