body {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
}

header {
  border-bottom: 1px solid rgb(235, 235, 235);
  padding: 2rem 1rem;
}

main {
  overflow-x: hidden;
}

footer {
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid rgb(235, 235, 235);
}

.legal-page footer {
  margin-top: 50px;
}

body {
  font-family: system-ui, sans-serif;
}

Header{
  text-align: center;
}
h1{
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 10vw, 60px);
  line-height: 1.2;
}
.subtextH1{
  font-family: 'Exo 2', sans-serif;
  font-weight: 300;
  font-size: 25px;
}
h2{
  font-family: 'Exo 2', sans-serif;
  font-weight: 300;
  font-size: x-large;
  margin-bottom: 5px;
}
h3{
  font-family: 'Exo 2', sans-serif;
  font-size: small;
  margin-top: 5px;
}

.subtitle-pt {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
}
footer{
  font-family: 'Exo 2', sans-serif;
  font-size: smaller;
}
.layoutBoxLine{
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-gap: 20px;
  width: 1000px;
  height: 452px;
}
.layoutBoxLineInverted{
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-gap: 20px;
  width: 1000px;
  height: 452px;
}
.layoutLineGray{
  background-color: rgb(250, 250, 250);
  padding: 80px 0;
}
.layoutLineWhite{
  background-color: rgb(255, 255, 255);
  padding: 80px 0;
}
code{
  font-size: 0.8em;
  background-color: bisque;
}
p{
  font-family: 'Dosis', sans-serif;
  font-size: 17px;
}
button{
  display: block;
  margin: 0 auto;
}

footer a {
  color: inherit;
  margin: 0 5px;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.header-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.header-link:hover {
  color: inherit;
  text-decoration: none;
}

.header-link:visited {
  color: inherit;
}

.legal-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.legal-content {
  line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: clamp(1.8rem, 8vw, 40px);
  }

  h2 {
    font-size: 1.3rem;
  }

  .subtitle-pt {
    font-size: 0.85rem;
  }

  .layoutBoxLine,
  .layoutBoxLineInverted {
    grid-template-columns: 1fr;
    width: 100%;
    height: auto;
    padding: 0 1rem;
  }

  .codepen {
    order: 1;
  }

  article {
    padding: 1rem 0;
  }

  .layoutLineGray,
  .layoutLineWhite {
    padding: 2rem 0;
  }

  p {
    font-size: 15px;
  }

  code {
    font-size: 0.75em;
  }

  button {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  footer {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  body {
    grid-template-rows: auto 1fr auto;
  }

  header {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid rgb(235, 235, 235);
  }

  h1 {
    font-size: clamp(1.5rem, 6vw, 32px);
  }

  h2 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  .subtitle-pt {
    font-size: 0.75rem;
    margin-top: 0.25rem;
  }

  h1,
  h2,
  p {
    margin-left: 0;
    margin-right: 0;
  }

  .layoutBoxLine,
  .layoutBoxLineInverted {
    padding: 0 0.75rem;
    grid-gap: 1rem;
  }

  article {
    padding: 0.75rem 0;
  }

  .codepen {
    display: none;
  }

  p {
    font-size: 14px;
    line-height: 1.5;
  }

  .text-center {
    text-align: center;
  }

  button {
    width: 100%;
    font-size: 0.85rem;
  }

  footer {
    padding: 1rem 0.75rem;
    font-size: 0.65rem;
  }

  footer a {
    margin: 0 2px;
  }
}