* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  justify-content: space-between;
  font-family: "DM Sans", -apple-system, system-ui, sans-serif;
  font-weight: 300;
  color: #444;
}

.stuck {
  min-width: 240px;
  position: sticky;
  top: 0;
  max-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.outer-content {
  min-height: 100vh;
  display: flex;
  gap: 20px;
  padding-top: 100px;
  align-items: center;
  flex-direction: column;
  /*    text-align: center;*/
  font-family: "DM Sans", -apple-system, system-ui, sans-serif;
}

h1 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

h3 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
}

.content,
.intro,
.outro {
  font-size: 16px;
  letter-spacing: 0.01em;
}

.home {
  background: url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%22160%22%20height%3D%2215%22%20viewBox%3D%220%200%20160%2015%22%20preserveAspectRatio%3D%22xMinYMin%22%3E%3Cpath%20fill%3D%22none%22%20stroke%3D%22%23FFFFFF%22%20stroke-opacity%3D%220.3%22%20stroke-miterlimit%3D%2210%22%20d%3D%22M0%200.5c26.7%200%2053.3%2014%2080%2014%2026.7%200%2053.3-14%2080-14M0-4.5c26.7%200%2053.3%2014%2080%2014%2026.7%200%2053.3-14%2080-14M0-9.5c26.7%200%2053.3%2014%2080%2014%2026.7%200%2053.3-14%2080-14M0%205.5c26.7%200%2053.3%2014%2080%2014%2026.7%200%2053.3-14%2080-14M0%2010.5c26.7%200%2053.3%2014%2080%2014%2026.7%200%2053.3-14%2080-14%22%2F%3E%3C%2Fsvg%3E),
    linear-gradient(to bottom, #fefefe 0, #eeeeee 100%) fixed;
  gap: 25px;
}

.type {
  transform: perspective(1000px) rotateY(4deg);
  padding: 25px;
  gap: 25px;
  border: 1px solid #e8e8e8;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.type-wrap:nth-child(even) .type {
  transform: perspective(1000px) rotateY(-4deg);
  flex-direction: row-reverse;
}

.type-wrap:hover .type {
  transform: perspective(1000px) rotateY(0deg) translateY(-4px);
  box-shadow: 0 8px 40px rgb(0 0 0 / 15%);
}

.logo {
  width: 120px;
  height: 120px;
  padding: 30px;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgb(0 0 0 / 10%);
  background-color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: block;
}

.logo:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 8px 32px rgb(0 0 0 / 18%);
}

.logo img {
  width: 100%;
  height: 100%;
}



.content-header {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  font-size: 22px;
  padding-bottom: 10px;
  color: #222;
  letter-spacing: -0.01em;
}

.intro,
.outro {
  max-width: 520px;
  font-size: 17px;
  text-align: center;
}

.intro {
  padding: 25px;
  line-height: 1.6;
  color: #555;
}

.intro h1 {
  margin-bottom: 14px;
  color: #222;
  font-size: 2.4em;
}

.outro {
  padding-bottom: 50px;
  color: #666;
}

.outro a {
  color: #333;
  font-weight: bold;
  transition: color 0.2s ease;
}

.outro a:hover {
  color: #000;
}

.type {
  width: 650px;
  flex-direction: row;
  display: flex;
  min-height: 160px;
  margin-bottom: 35px;
  line-height: 1.3;
  font-size: 16px;
  background: white;
  box-shadow: 0 4px 24px rgb(0 0 0 / 8%);
  border-radius: 8px;
  overflow: hidden;
}

.type-wrap {
  text-decoration: none;
  color: #444;
}

.left img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
}

.type .left,
.type .right {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.legal {
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.legal-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #333;
  padding-top: 60px;
}

.legal article {
  max-width: 800px;
  padding: 40px;
  flex: 1;
}

.legal .outro {
  width: 100%;
  padding: 30px 0 50px;
}

article {
  max-width: 600px;
  margin: auto;
  padding-bottom: 5px;
  padding-top: 50px;
}

.mob-ad {
  display: none;
}

@media screen and (max-width: 1250px) {

  .type {
    flex-direction: column;
    width: 100%;
  }

  .type-wrap:nth-child(even) .type {
    flex-direction: column;
    width: 100%;
  }

  .type .left,
  .type .right {
    width: 100%;
  }

  .type-wrap {
    padding: 0 20px;
    width: 100%;
    display: block;
  }

}

@media screen and (max-width: 700px) {
  .type {
    flex-direction: column;
    width: 100%;
  }

  .type-wrap:nth-child(even) .type {
    flex-direction: column;
    width: 100%;
  }

  .type .left,
  .type .right {
    width: 100%;
  }

  .type-wrap {
    padding: 0 20px;
    width: 100%;
    display: block;
  }

  .stuck {
    display: none;
  }

  .mob-ad {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    margin-bottom: 10px;
  }

  .type-wrap + .mob-ad {
    min-height: 130px;
    margin-top: -30px;
    margin-bottom: 5px;
  }
}
