@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&display=swap");

:root {
  --bg-clr: #00001e;
  --white: #fff;
  --primary-text-clr: #212121;
  --secondary-text-clr: #8c8c8c;
  --bg-hvr: #00001e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

body{
  background: var(--bg-clr);
  font-size: 12px;
}

.flex_align_justify{
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex_align{
  display: flex;
  align-items: center;
}

.wrapper{
  min-height: 100vh;
  padding: 0 20px;
}

.terms_service{
  width: 500px;
  max-width: 100%;
  height: 450px;
  background: var(--white);
  border-radius: 3px;
  box-shadow: 0px 0px 3px rgba(0,0,0,0.15);
}

.terms_service .tc_item{
  padding: 20px 40px;
}

.terms_service .tc_head{
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  height: 90px;
}

.terms_service .tc_head .icon{
  width: 50px;
  height: 50px;
  background: var(--bg-clr);
  margin-right: 20px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--white);
}

.terms_service .tc_body{
  height: calc(100% - 170px);
  overflow: auto;
  padding-right: 20px;
}

.terms_service .tc_body ol li{
  margin-bottom: 15px;
}

.terms_service .tc_body ol li h3{
  margin-bottom: 5px;
}

.terms_service .tc_foot{
  box-shadow: 0 -1px 2px rgba(0,0,0,0.15);
  justify-content: space-between;
  height: 80px;
}

.terms_service .tc_foot button{
  width: 100%;
  border: 1px solid var(--bg-clr);
  padding: 10px 20px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.5s ease;
}

.terms_service .tc_foot button.decline_btn{
  margin-right: 20px;
  background: var(--white);
  color: var(--bg-clr);
}

.terms_service .tc_foot button.accept_btn{
  background: var(--bg-clr);
  color: var(--white);
}

.terms_service .tc_foot button.decline_btn:hover{
  background: var(--bg-clr);
  color: var(--white);
}

.terms_service .tc_foot button.accept_btn:hover{
  background: var(--bg-hvr);
  color: var(--white);
}

@media (max-width: 767px) {
  body {
    font-size: 1.4rem; /* Set a base font size for readability */
    line-height: 1.5; /* Improve text spacing */
  }

  .wrapper {
    padding: 10px; /* Add padding for smaller screens */
  }

  .terms_service {
    width: 95%; /* Adjust to nearly full width */
    height: auto; /* Allow height to adjust to content */
    margin: 20px auto; /* Center the container with reduced margin */
    padding: 10px; /* Add inner padding for spacing */
    box-shadow: none; /* Optional: Remove shadow for a cleaner look */
  }

  .terms_service .tc_head {
    height: auto; /* Allow dynamic height for smaller screens */
    padding: 10px; /* Reduce padding */
    text-align: center; /* Center-align content */
  }

  .terms_service .tc_body {
    padding: 10px; /* Add padding for better spacing */
    height: auto; /* Remove fixed height to allow content to flow */
    overflow: visible; /* Prevent content clipping */
  }

  .terms_service .tc_body pre {
    font-size: 1.3rem; /* Reduce font size for compactness */
    line-height: 1.4; /* Adjust line height */
    word-wrap: break-word; /* Ensure long text breaks properly */
    white-space: pre-wrap; /* Maintain preformatted structure */
  }

  .terms_service .icon {
    width: 40px; /* Reduce icon size */
    height: 40px;
    font-size: 16px; /* Adjust icon font size */
  }

  .terms_service .tc_head h2 {
    font-size: 1.6rem; /* Reduce heading size */
  }

  .terms_service .tc_head p {
    font-size: 1.2rem; /* Adjust paragraph font size */
  }
}

@media (max-width: 767px) {
  body {
    font-size: 1.2rem; /* Reduce font size slightly for compactness */
    line-height: 1.4; /* Improve readability */
  }

  .wrapper {
    padding: 10px; /* Add padding around the container */
    overflow-y: auto; /* Ensure the entire wrapper scrolls on mobile */
  }

  .terms_service {
    width: 95%; /* Use a percentage for responsive width */
    max-width: 100%; /* Ensure it doesn't exceed screen width */
    margin: 20px auto; /* Center the container */
    padding: 10px; /* Add some inner padding */
    height: auto; /* Let height adjust dynamically */
    box-shadow: none; /* Optional: Remove shadow for simplicity */
  }

  .terms_service .tc_head {
    height: auto; /* Allow flexible height */
    padding: 10px; /* Add padding for better spacing */
    text-align: center; /* Center-align content */
  }

  .terms_service .tc_body {
    height: auto; /* Allow the body to grow dynamically */
    overflow-y: visible; /* Let the content flow without clipping */
    padding: 10px; /* Add spacing around text */
  }

  .terms_service .tc_body ol li {
    margin-bottom: 10px; /* Adjust spacing for smaller screens */
  }

  .terms_service .tc_body ol li h3 {
    font-size: 1.3rem; /* Reduce heading size slightly */
    margin-bottom: 5px;
  }

  .terms_service .tc_body p {
    font-size: 1.2rem; /* Reduce paragraph font size */
    line-height: 1.4; /* Ensure readability */
  }

  .terms_service .icon {
    width: 35px; /* Reduce icon size for mobile */
    height: 35px;
    font-size: 14px; /* Adjust font size */
  }

  .terms_service .tc_head h2 {
    font-size: 1.5rem; /* Shrink heading for compact layout */
  }

  .terms_service .tc_head p {
    font-size: 1.1rem; /* Adjust font size for the date */
  }
}
