@font-face {
  font-family: "BaiJamjuree";
  src: url("/assets/fonts/BaiJamjuree-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  font-family: sans-serif;
  overflow-y: auto;
  overflow-x: hidden;
}

header {
  background-image: url("/assets/images/bg_1.png");
  background-size: cover;
  background-position: center;
  height: 5rem;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}
header > img {
  object-fit: contain;
  width: 250px;
  height: 50px;
}

.social {
  margin-right: 20px;
  display: flex;
  gap: 30px;
}

.link > img {
  width: 30px;
  height: 30px;
}

main {
  margin-top: 5rem;
  width: 100%;
  min-height: calc(100vh - 5rem);
  color: black;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: start;
  gap: 2rem;
}
.title {
  font-family: "BaiJamjuree";
  font-size: 3rem;
  text-align: center;
  margin-top: 2rem;
  font-weight: bold;
}

.term {
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  gap: 1rem;
  margin-bottom: 25px;
}
.term ul {
  padding-left: 2rem;
}

.term h1,
h3 {
  font-family: "BaiJamjuree";
}

footer {
  background-image: url("/assets/images/bg_1.png");
  background-size: cover;
  background-position: center;
  height: 6rem;
  width: 100%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  gap: 20px;
  padding: 25px;
}
footer > img {
  width: auto;
  height: 4rem;
  object-fit: contain;
}

@media (max-width: 768px) {
  header {
    padding: 0 10px;
  }

  header > img {
    width: 150px;
  }

  .social {
    gap: 15px;
  }

  .link > img {
    width: 20px;
    height: 20px;
  }

  .title {
    font-size: 2rem;
  }

  .term {
    width: 90%;
  }

  footer {
    gap: 10px;
    padding: 10px;
  }

  footer > img {
    width: 150px;
  }
}

@media (max-width: 480px) {
  header {
    padding: 5px 15px;
  }
  header > img {
    width: 150px;
    height: 30px;
  }

  .title {
    font-size: 2rem;
  }

  .term h1 {
    font-size: 1.7rem;
  }

  footer {
    height: 5rem;
    padding: 5px;
  }

  footer > img {
    width: 120px;
  }
  footer > span {
    font-size: 0.8rem;
  }
}
