@import url("/assets/css/app.css");

body {
  position: relative;
  padding-top: 5%;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--color-black);
}

.logo {
  width: 100px;
  height: 50px;
  position: fixed;
  left: 25px;
  top: 10px;
}

.terms {
  width: 60%;
  color: var(--color-black);
  line-height: 1.7;
}

.terms h1 {
  font-size: 5em;
  text-align: center;
  width: 100%;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.terms h2 {
  font-size: 1.5em;
  margin-top: 35px;
  padding-bottom: 8px;
}

.terms h3 {
  font-size: 1.2em;
  margin-top: 25px;
}

.terms .last-updated {
  color: var(--color-black-opacity);
  font-style: italic;
  margin-bottom: 30px;
  padding: 10px;
  background: var(--light-dark-color);
  border-radius: var(--border-radius);
  font-weight: var(--thick-font-weight);
}

.terms ul,
.terms ol {
  margin: 15px 0;
  padding-left: 25px;
}

.terms li {
  margin-bottom: 8px;
}

.terms a {
  text-decoration: none;
  color: var(--main-color);
  font-weight: var(--thick-font-weight);
}

strong {
  color: var(--color-black-opacity);
}

.terms .tou {
  background: var(--light-dark-color);
  padding: 20px;
  border-radius: var(--border-radius);
  margin: 20px 0;
}

.terms .tou h2 {
  margin: 0;
}

.terms .tou ul {
  columns: 2;
  column-gap: 30px;
}

.terms .tou li {
  break-inside: avoid;
}

.terms .definition-term {
  font-weight: var(--thick-font-weight);
  color: var(--color-black);
}

.section {
  margin-bottom: 30px;
  padding: 20px;
}

.footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--light-dark-color);
  font-size: 0.9em;
  color: var(--color-black-opacity);
  align-self: center;
  width: 100%;
  height: 505px;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
  .terms {
    width: 75%;
  }
}

@media screen and (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .logo {
    width: 80px;
    height: 40px;
    left: 15px;
    top: 15px;
  }

  .terms {
    width: 85%;
    padding: 20px;
  }

  .terms .tou ul {
    columns: 1;
  }

  .terms .tou {
    padding: 15px;
  }

  .section {
    padding: 15px;
  }
}

@media screen and (max-width: 480px) {
  body {
    padding-top: 60px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .logo {
    width: 60px;
    height: 30px;
    left: 10px;
    top: 10px;
  }

  .terms {
    width: 100%;
    padding: 10px;
  }

  .terms h1 {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .terms h2 {
    font-size: 1.2rem;
    margin-top: 25px;
  }

  .terms h3 {
    font-size: 1rem;
  }

  .terms ul,
  .terms ol {
    padding-left: 20px;
  }

  .terms li {
    font-size: 0.9rem;
  }

  .terms .tou {
    padding: 12px;
  }

  .terms .tou li {
    font-size: 0.9rem;
  }

  .section {
    padding: 10px;
    margin-bottom: 20px;
  }

  .footer {
    margin-top: 30px;
    font-size: 0.8rem;
    text-align: center;
  }
}

/* Landscape mode for mobile */
@media screen and (max-width: 896px) and (orientation: landscape) {
  body {
    padding-top: 60px;
  }

  .logo {
    width: 70px;
    height: 35px;
  }

  .terms {
    width: 80%;
  }

  .terms h1 {
    font-size: 2.5rem;
  }
}

/* Print styles */
@media print {
  .logo,
  .footer {
    display: none;
  }

  body {
    padding: 0;
  }

  .terms {
    width: 100%;
  }

  .terms .tou {
    background: none;
    border: 1px solid #ddd;
  }
}
