*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========== Home ========== */
.home-page {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  background: no-repeat url("../assets/home-bg.webp");
  background-size: cover;
  background-position: center;
}

.header {
  position: absolute;
  top: 75px;
  left: 0;
}

.header .title {
  display: flex;
  align-items: center;
  margin-left: 85px;
  color: #fff;
  font-weight: 600;
  font-size: 30px;
}

.header .logo {
  width: 351px;
  height: 40px;
  object-fit: contain;
}

.main {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate3d(0, -50%, 0);
  color: #fff;
}

.main-wrap {
  margin-left: 213px;
}

.main-h1 {
  margin-bottom: 15px;
  font-size: 64px;
  font-weight: 700;
}

.main-h2 {
  margin-bottom: 60px;
  font-size: 40px;
  font-weight: 400;
}

.footer {
  position: absolute;
  bottom: 82px;
  left: 0;
  color: #fff;
}

.footer-wrap {
  margin-left: 213px;
  font-size: 20px;
  font-weight: 500;
}

.contact-row {
  display: flex;
  align-items: center;
}

.icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-right: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.email-icon {
  width: 28px;
  height: 22px;
}

.contact-us {
  margin-bottom: 8px;
}

.email-text {
  display: inline-block;
  margin-bottom: 0;
  transition: opacity 0.2s;
}

.email-text:hover {
  opacity: 0.8;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  margin-left: 66px;
  font-size: 16px;
  font-weight: 400;
  opacity: 0.85;
}

.legal-links a {
  transition: opacity 0.2s;
}

.legal-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.legal-links .divider {
  opacity: 0.5;
}

/* ========== Legal pages ========== */
.legal-page {
  min-height: 100vh;
  background: #fff;
  color: #222;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

.legal-page a {
  color: #1a0dab;
  text-decoration: underline;
}

.legal-header,
.legal-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 48px 0;
  box-sizing: border-box;
}

.legal-content {
  padding: 8px 48px 80px;
}

.legal-header h1 {
  margin: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  color: #111;
}

.legal-content h2 {
  margin: 36px 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
}

.legal-content h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 14px;
  padding-left: 1.25em;
}

.legal-content li {
  margin: 0 0 6px;
  padding-left: 0.15em;
}

@media (max-width: 768px) {
  .legal-header,
  .legal-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .legal-header {
    padding-top: 28px;
  }

  .legal-header h1 {
    font-size: 22px;
  }

  .legal-content h2 {
    font-size: 18px;
  }
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
  .header .title {
    margin-left: 40px;
  }

  .main-wrap,
  .footer-wrap {
    margin-left: 40px;
  }

  .main-h1 {
    font-size: 48px;
  }

  .main-h2 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .header {
    top: 32px;
  }

  .header .title {
    margin-left: 24px;
  }

  .header .logo {
    width: 220px;
    height: auto;
  }

  .main-wrap,
  .footer-wrap {
    margin-left: 24px;
    margin-right: 24px;
  }

  .main-h1 {
    font-size: 36px;
  }

  .main-h2 {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .footer {
    bottom: 40px;
  }

  .footer-wrap {
    font-size: 16px;
  }

  .legal-links {
    margin-left: 0;
    font-size: 14px;
  }
}
