.legal-page,
.video-detail-page {
  background: #fff;
}

.legal-shell,
.language-shell,
.video-detail-shell {
  min-height: 100vh;
  background: #fff;
}

.legal-main {
  padding: 14px 15px 28px;
}

.legal-main h1 {
  margin-bottom: 22px;
  color: #212121;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.legal-main h2 {
  margin: 22px 0 10px;
  color: #212121;
  font-size: 15px;
  line-height: 21px;
  font-weight: 600;
}

.legal-main p,
.legal-main li {
  color: #8c9198;
  font-size: 14px;
  line-height: 1.72;
}

.legal-main ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.legal-main p + p {
  margin-top: 14px;
}

.language-page {
  background: #fff;
}

.language-page .language-header {
  background: #f5f6f8;
}

.language-page .language-header__top {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 12px;
  min-height: calc(74px + env(safe-area-inset-top, 0px));
  padding: calc(8px + env(safe-area-inset-top, 0px)) 20px 12px;
}

.language-page .language-header__back,
.language-page .language-header__search {
  position: relative;
  width: 40px;
  height: 40px;
  color: transparent;
  font-size: 0;
}

.language-page .language-header__back::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 14px;
  height: 14px;
  border-left: 2px solid #2b2b2b;
  border-bottom: 2px solid #2b2b2b;
  transform: rotate(45deg);
}

.language-page .language-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2e2e2e;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
}

.language-page .language-header__brand img {
  width: 144px;
  height: auto;
  filter: brightness(0) saturate(100%);
}

.language-page .language-header__search::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 20px;
  height: 20px;
  border: 2px solid #2f2f2f;
  border-radius: 50%;
}

.language-page .language-header__search::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 8px;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: #2f2f2f;
  transform: rotate(45deg);
}

.language-page .language-main {
  padding-bottom: 28px;
}

.language-page .language-region {
  padding: 0;
}

.language-page .language-region__title {
  padding: 0 30px;
  background: #f0f2f5;
  color: #262626;
  font-size: 20px;
  line-height: 78px;
  font-weight: 600;
}

.language-page .language-list {
  background: #fff;
}

.language-page .language-option {
  display: block;
  padding: 0 30px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  color: #2f2f2f;
  font-size: 18px;
  line-height: 1.4;
}

.language-page .language-option span {
  display: block;
  padding: 28px 0 30px;
}

.language-page .language-option.is-active {
  color: #007b4e;
}

.video-detail-header .sub-header {
  min-height: 60px;
  padding-top: 0;
  background: #fff;
  box-shadow: none;
}

.video-detail-header .sub-header__back {
  position: relative;
  width: 28px;
  height: 28px;
  margin-left: 8px;
  color: transparent;
  font-size: 0;
}

.video-detail-header .sub-header__back::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-left: 2px solid #2b2b2b;
  border-bottom: 2px solid #2b2b2b;
  transform: rotate(45deg);
}

.video-detail-main {
  padding-bottom: 28px;
}

.video-player-card {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
}

.video-player-card img {
  width: 100%;
  aspect-ratio: 375 / 240;
  object-fit: cover;
}

.video-player-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
}

.video-player-card__play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #fff;
}

.video-detail-copy {
  padding: 18px 15px 0;
}

.video-detail-copy h1 {
  color: #212121;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.video-detail-meta {
  color: #007b4e;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

.video-detail-copy p {
  margin-top: 16px;
  color: #8c9198;
  font-size: 14px;
  line-height: 1.68;
}

.video-detail-links {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.video-detail-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f1f5f3;
  color: #006843;
  font-size: 14px;
  font-weight: 600;
}

.learn-shell {
  min-height: 100vh;
  background: #262626;
  color: #fff;
}

.learn-shell .catalog-header {
  background: rgba(255, 255, 255, 0.98);
}

.learn-main {
  padding: 0 16px 40px;
}

.learn-hero {
  position: relative;
  overflow: hidden;
  padding: 30px 22px 26px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 28%),
    linear-gradient(180deg, #a9b29c 0%, #9eab93 100%);
}

.learn-hero__eyebrow {
  color: rgba(33, 33, 33, 0.7);
  font-size: 15px;
  line-height: 21px;
}

.learn-hero h1 {
  margin-top: 14px;
  color: #282828;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.learn-hero__actions {
  display: flex;
  gap: 28px;
  margin-top: 18px;
}

.learn-hero__actions a {
  color: #2f2f2f;
  font-size: 16px;
  line-height: 22px;
}

.learn-hero__machine {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.learn-hero__machine img {
  width: min(64vw, 248px);
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.18));
}

.learn-section {
  margin-top: 24px;
}

.learn-section h2 {
  color: #fff;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
}

.learn-section p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.7;
}

.learn-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.learn-gallery__tall,
.learn-gallery__card,
.learn-banner,
.learn-reason {
  overflow: hidden;
  border-radius: 16px;
}

.learn-gallery__tall img,
.learn-gallery__card img,
.learn-banner img,
.learn-reason img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.learn-gallery__tall {
  grid-row: span 2;
  aspect-ratio: 1 / 1.5;
}

.learn-gallery__card {
  aspect-ratio: 1 / 0.62;
}

.learn-banner {
  margin-top: 26px;
  aspect-ratio: 343 / 145;
}

.learn-reasons {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.learn-reason {
  background: #3a3a3a;
}

.learn-reason__copy {
  padding: 18px 16px 22px;
}

.learn-reason__copy h3 {
  color: #fff;
  font-size: 18px;
  line-height: 25px;
  font-weight: 600;
}

.learn-reason__copy p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.65;
}

.docs-shell .segment-tabs {
  gap: 34px;
}

.docs-main {
  padding: 18px 16px 32px;
}

.docs-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.docs-section {
  margin-top: 26px;
}

.docs-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.docs-section__head h2 {
  color: #212121;
  font-size: 18px;
  line-height: 25px;
  font-weight: 700;
}

.docs-section__head a {
  color: #007b4e;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.docs-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 24px 18px 24px 28px;
  border-radius: 18px;
  background: #f7f8fb;
}

.docs-item h2 {
  color: #2b2b2b;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 500;
}

.docs-item__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #007b4e;
  font-size: 18px;
  line-height: 25px;
  font-weight: 500;
}

.docs-item__icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.docs-item__icon::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 1px;
  width: 2px;
  height: 12px;
  background: #007b4e;
}

.docs-item__icon::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #007b4e;
  border-bottom: 2px solid #007b4e;
  transform: rotate(45deg);
}

.docs-item__line {
  position: relative;
  width: 18px;
  height: 18px;
}

.docs-item__line::before {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 1px;
  width: 16px;
  height: 2px;
  background: #007b4e;
}

@media (max-width: 430px) {
  .language-header__brand img {
    width: 102px;
  }

  .language-option {
    padding-inline: 20px;
    font-size: 15px;
  }

  .language-region__title {
    padding-inline: 16px;
    font-size: 17px;
    line-height: 52px;
  }

  .video-detail-copy {
    padding-top: 18px;
  }

  .video-detail-links {
    flex-wrap: wrap;
  }

  .learn-main {
    padding-inline: 16px;
  }

  .learn-hero h1 {
    font-size: 24px;
  }

  .learn-section h2 {
    font-size: 18px;
  }

  .learn-section p,
  .learn-reason__copy p {
    font-size: 14px;
  }

  .docs-item {
    padding: 18px 16px 18px 18px;
  }

  .docs-item h2 {
    font-size: 16px;
  }

  .docs-item__action {
    font-size: 16px;
  }
}
