/* Terms of Service page – EASIFY-39 */

.eas26-page--terms .eas26-nav__more-menu a.is-current,
.eas26-page--terms .eas26-nav__more-menu a.is-current:hover,
.eas26-page--terms .eas26-nav__more-menu a.is-current:focus-visible {
  background: #efe7ff;
  color: #000;
}

.eas26-page--terms .eas26-terms__progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 0;
  height: 3px;
  background: var(--eas-hover);
  pointer-events: none;
}

.eas26-page--terms .eas26-terms__hero,
.eas26-page--terms .eas26-terms__document,
.eas26-page--terms .eas26-terms__related {
  position: relative;
  z-index: 2;
  background: var(--eas-black);
}

.eas26-page--terms .eas26-terms__hero {
  padding: clamp(150px, 20vh, 190px) 0 clamp(56px, 7vw, 88px);
  overflow: hidden;
}

.eas26-page--terms .eas26-terms__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#262626 1px, transparent 1px),
    linear-gradient(90deg, #262626 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.75;
  mask-image: radial-gradient(120% 90% at 50% 20%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 20%, #000 40%, transparent 100%);
  pointer-events: none;
}

.eas26-page--terms .eas26-terms__grid-bg--document {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  opacity: 1;
  mask-image: none;
  -webkit-mask-image: none;
}

.eas26-page--terms .eas26-terms__hero-inner,
.eas26-page--terms .eas26-terms__document-inner,
.eas26-page--terms .eas26-terms__related-inner {
  position: relative;
  width: 100%;
  max-width: var(--eas-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 80px);
}

.eas26-page--terms .eas26-terms__hero-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.eas26-page--terms .eas26-terms__title {
  margin: 0;
  color: var(--eas-white);
  font-size: clamp(44px, 6.4vw, 96px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  animation: eas26TermsRise 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eas26-page--terms .eas26-terms__intro {
  max-width: 820px;
  margin: 0;
  color: #d8d8d8;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  animation: eas26TermsRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

@keyframes eas26TermsRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.eas26-page--terms .eas26-terms__document {
  padding: clamp(24px, 4vw, 48px) 0 clamp(120px, 13vw, 180px);
}

.eas26-page--terms .eas26-terms__layout {
  display: grid;
  grid-template-columns: clamp(232px, 21vw, 300px) minmax(0, 1fr);
  gap: clamp(20px, 3.2vw, 56px);
  align-items: start;
}

.eas26-page--terms .eas26-terms__toc {
  position: sticky;
  top: 120px;
  display: flex;
  max-height: calc(100vh - 160px);
  min-width: 0;
  overflow: auto;
  flex-direction: column;
  gap: 10px;
  overscroll-behavior: contain;
  scrollbar-color: #696969 #292929;
  scrollbar-width: thin;
}

.eas26-page--terms .eas26-terms__toc::-webkit-scrollbar,
.eas26-page--terms .eas26-terms__toc-list::-webkit-scrollbar {
  width: 14px;
}

.eas26-page--terms .eas26-terms__toc::-webkit-scrollbar-track,
.eas26-page--terms .eas26-terms__toc-list::-webkit-scrollbar-track {
  background: #292929;
}

.eas26-page--terms .eas26-terms__toc::-webkit-scrollbar-thumb,
.eas26-page--terms .eas26-terms__toc-list::-webkit-scrollbar-thumb {
  border: 3px solid #292929;
  border-radius: 999px;
  background: #696969;
}

.eas26-page--terms .eas26-terms__toc-kicker {
  color: var(--eas-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eas26-page--terms .eas26-terms__toc-toggle {
  display: none;
}

.eas26-page--terms .eas26-terms__toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eas26-page--terms .eas26-terms__toc-list a {
  padding: 9px 12px;
  border-radius: 10px;
  color: #a3a3a3;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.16s ease-out, color 0.16s ease-out;
}

.eas26-page--terms .eas26-terms__toc-list a:hover {
  background: #1a1a1a;
  color: var(--eas-white);
}

.eas26-page--terms .eas26-terms__toc-list a.is-active {
  background: var(--eas-white);
  color: var(--eas-black);
  font-weight: 500;
}

.eas26-page--terms .eas26-terms__card {
  display: flex;
  min-width: 0;
  padding: clamp(28px, 3.6vw, 56px);
  border: 1px solid var(--eas-black);
  border-radius: 24px;
  background: var(--eas-white);
  color: #1a1a1a;
  flex-direction: column;
  gap: 40px;
}

.eas26-page--terms .eas26-terms__updated {
  display: flex;
  padding: 10px 16px;
  border-radius: var(--eas-radius-pill);
  background: #fffbb1;
  box-shadow: inset 0 0 0 2px #e0d500;
  color: #2e2b00;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}

.eas26-page--terms .eas26-terms__updated svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.75;
  stroke-linecap: round;
  flex: 0 0 auto;
}

.eas26-page--terms .eas26-terms__section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eas26-page--terms .eas26-terms__section:has(.eas26-terms__subsection) {
  gap: 24px;
}

.eas26-page--terms .eas26-terms__section h2 {
  margin: 0;
  color: var(--eas-black);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
  scroll-margin-top: 120px;
}

.eas26-page--terms .eas26-terms__section h3 {
  margin: 0;
  color: var(--eas-black);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

.eas26-page--terms .eas26-terms__section p,
.eas26-page--terms .eas26-terms__list-item {
  max-width: 72ch;
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  text-wrap: pretty;
}

.eas26-page--terms .eas26-terms__section a {
  color: var(--eas-black);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.eas26-page--terms .eas26-terms__section a:hover {
  color: var(--eas-hover);
}

.eas26-page--terms .eas26-terms__subsection {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eas26-page--terms .eas26-terms__list {
  display: flex;
  max-width: 72ch;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-direction: column;
  gap: 12px;
}

.eas26-page--terms .eas26-terms__list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.eas26-page--terms .eas26-terms__bullet {
  width: 8px;
  height: 8px;
  margin-top: 11px;
  border-radius: 50%;
  background: var(--eas-hover);
  flex: 0 0 auto;
}

.eas26-page--terms .eas26-terms__section strong {
  color: var(--eas-black);
  font-weight: 600;
}

.eas26-page--terms .eas26-terms__divider {
  width: 100%;
  height: 1px;
  background: #eaeaea;
}

.eas26-page--terms .eas26-terms__contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.eas26-page--terms .eas26-terms__contact-link {
  display: flex;
  min-width: 0;
  padding: 16px 20px;
  border-radius: var(--eas-radius-card);
  color: #2e2b00;
  flex: 1 1 260px;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.eas26-page--terms .eas26-terms__contact-link--email {
  background: #fffbb1;
  box-shadow: inset 0 0 0 2px #e0d500;
}

.eas26-page--terms .eas26-terms__contact-link--email:hover {
  background: #fff88f;
  color: #2e2b00;
}

.eas26-page--terms .eas26-terms__contact-link--site {
  background: #efe7ff;
  box-shadow: inset 0 0 0 2px #c7b4ff;
  color: #2a1b4d;
}

.eas26-page--terms .eas26-terms__contact-link--site:hover {
  background: #e3d7ff;
  color: #2a1b4d;
}

.eas26-page--terms .eas26-terms__contact-link > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.eas26-page--terms .eas26-terms__contact-link > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eas26-page--terms .eas26-terms__contact-link > span > span:first-child {
  font-size: 14px;
  opacity: 0.75;
}

.eas26-page--terms .eas26-terms__contact-link > span > span:last-child {
  font-size: 17px;
  font-weight: 500;
}

.eas26-page--terms .eas26-terms__related {
  padding: 0 clamp(20px, 6vw, 80px) clamp(96px, 11vw, 150px);
  overflow: hidden;
}

.eas26-page--terms .eas26-terms__related-gradient {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 360px;
  background: linear-gradient(180deg, rgba(53, 0, 26, 0) 0, var(--eas-footer-top) 100%);
  pointer-events: none;
}

.eas26-page--terms .eas26-terms__related-inner {
  display: flex;
  padding: 0;
  flex-direction: column;
  gap: 32px;
}

.eas26-page--terms .eas26-terms__related h2 {
  margin: 0;
  color: var(--eas-white);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.eas26-page--terms .eas26-terms__related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
  align-items: stretch;
}

.eas26-page--terms .eas26-terms__related-card {
  display: flex;
  min-width: 0;
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--eas-black);
  border-radius: 24px;
  background: var(--eas-white);
  color: var(--eas-black);
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  transition: background 0.2s ease-out, transform 0.2s ease-out;
}

.eas26-page--terms .eas26-terms__related-card:hover {
  background: #efe7ff;
  color: var(--eas-black);
  transform: translateY(-3px);
}

.eas26-page--terms .eas26-terms__related-card > strong {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.eas26-page--terms .eas26-terms__related-card > span {
  color: #404040;
  font-size: 16px;
  line-height: 1.5;
}

.eas26-page--terms .eas26-terms__related-card--contact,
.eas26-page--terms .eas26-terms__related-card--contact:hover {
  background: #fffbb1;
  box-shadow: inset 0 0 0 2px #e0d500;
  color: #2e2b00;
}

.eas26-page--terms .eas26-terms__related-card--contact:hover {
  background: #fff88f;
}

.eas26-page--terms .eas26-terms__related-card--contact > span {
  color: #2e2b00;
}

.eas26-page--terms .eas26-terms__related-cta {
  display: flex;
  min-height: 56px;
  margin-top: 8px;
  padding: 8px 8px 8px 22px;
  border-radius: 14px;
  background: var(--eas-black);
  color: var(--eas-white) !important;
  align-self: flex-start;
  align-items: center;
  gap: 14px;
  font-size: 18px !important;
  font-weight: 500;
  line-height: 1.2 !important;
}

.eas26-page--terms .eas26-terms__related-arrow {
  display: grid;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--eas-white);
  place-items: center;
}

.eas26-page--terms .eas26-terms__related-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--eas-black);
  stroke-width: 2;
  stroke-linecap: round;
}

@media (min-width: 1025px) and (max-width: 1240px) {
  .eas26-page--terms .eas26-terms__card {
    padding: 36px;
  }
}

@media (max-width: 1024px) {
  .eas26-page--terms .eas26-terms__title,
  .eas26-page--terms .eas26-terms__intro {
    animation: none;
  }

  .eas26-page--terms .eas26-terms__hero {
    padding: calc(104px + env(safe-area-inset-top)) 0 64px;
  }

  .eas26-page--terms .eas26-terms__title {
    font-size: 4.5rem;
    line-height: 1.06;
  }

  .eas26-page--terms .eas26-terms__intro {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .eas26-page--terms .eas26-terms__document {
    padding: 64px 0 96px;
  }

  .eas26-page--terms .eas26-terms__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .eas26-page--terms .eas26-terms__toc {
    top: calc(88px + env(safe-area-inset-top));
    z-index: 60;
    max-height: none;
    overflow: visible;
    align-items: flex-start;
    pointer-events: none;
  }

  .eas26-page--terms .eas26-terms__toc > * {
    pointer-events: auto;
  }

  .eas26-page--terms .eas26-terms__toc-kicker {
    display: none;
  }

  .eas26-page--terms .eas26-terms__toc-toggle {
    display: flex;
    width: auto;
    max-width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--eas-radius-pill);
    background: #0a0a0a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    color: var(--eas-white);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
  }

  .eas26-page--terms .eas26-terms__toc-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentcolor;
    stroke-width: 2;
    transition: transform 0.2s ease;
  }

  .eas26-page--terms .eas26-terms__toc-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  .eas26-page--terms .eas26-terms__toc-list {
    display: none;
    max-height: min(58vh, 420px);
    padding: 8px;
    border-radius: 14px;
    background: #0a0a0a;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
    overflow: auto;
    align-self: stretch;
    overscroll-behavior: contain;
    scrollbar-color: #696969 #292929;
    scrollbar-width: thin;
  }

  .eas26-page--terms .eas26-terms__toc-list.is-open {
    display: flex;
  }

  .eas26-page--terms .eas26-terms__card {
    padding: 28px 24px;
    border-radius: 20px;
    gap: 32px;
  }

  .eas26-page--terms .eas26-terms__section h2 {
    scroll-margin-top: 156px;
  }

  .eas26-page--terms .eas26-terms__section p,
  .eas26-page--terms .eas26-terms__list-item {
    font-size: 1.125rem;
    line-height: 1.6;
  }

  .eas26-page--terms .eas26-terms__related-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .eas26-page--terms .eas26-terms__hero {
    padding: calc(96px + env(safe-area-inset-top)) 0 48px;
  }

  .eas26-page--terms .eas26-terms__title {
    font-size: clamp(2rem, 10.4vw, 2.625rem);
    line-height: 1.08;
  }

  .eas26-page--terms .eas26-terms__intro {
    font-size: 1.125rem;
  }

  .eas26-page--terms .eas26-terms__document {
    padding: 48px 0 72px;
  }

  .eas26-page--terms .eas26-terms__card {
    padding: 24px 18px;
    gap: 28px;
  }

  .eas26-page--terms .eas26-terms__section h2 {
    font-size: 1.75rem;
  }

  .eas26-page--terms .eas26-terms__section h3 {
    font-size: 1.125rem;
  }

  .eas26-page--terms .eas26-terms__section p,
  .eas26-page--terms .eas26-terms__list-item {
    font-size: 1.0625rem;
  }

  .eas26-page--terms .eas26-terms__related {
    padding: 0 20px 96px;
  }

  .eas26-page--terms .eas26-terms__related-cta {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 479px) {
  .eas26-page--terms .eas26-terms__card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .eas26-page--terms .eas26-terms__section h2 {
    font-size: 1.5rem;
  }

  .eas26-page--terms .eas26-terms__section p,
  .eas26-page--terms .eas26-terms__list-item {
    font-size: 1rem;
  }

  .eas26-page--terms .eas26-terms__updated {
    padding: 9px 13px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eas26-page--terms .eas26-terms__title,
  .eas26-page--terms .eas26-terms__intro {
    animation: none;
  }

  .eas26-page--terms .eas26-terms__related-card,
  .eas26-page--terms .eas26-terms__toc-list a,
  .eas26-page--terms .eas26-terms__toc-toggle svg {
    transition-duration: 0s;
  }
}
