/* Document pages for Privacy and Terms. */

.doc-page {
  background: #ffffff;
  color: #3a3a44;
  min-width: 320px;
}

.doc-hero {
  position: relative;
  overflow: hidden;
  background: #5439f2;
  padding: 32px 0 86px;
}

.doc-hero::before {
  content: "";
  position: absolute;
  width: min(1180px, 120vw);
  aspect-ratio: 1;
  left: 50%;
  bottom: -78%;
  transform: translateX(-50%) rotate(-5deg);
  border: 74px solid rgba(255, 255, 255, 0.06);
  border-radius: 28%;
  pointer-events: none;
}

.doc-nav,
.doc-heading {
  position: relative;
  z-index: 1;
}

.doc-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 4;
}

.doc-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: #ffffff;
  text-decoration: none;
}

.doc-logo:hover {
  color: #ffffff;
  text-decoration: none;
}

.doc-logo img {
  display: block;
  width: 150px;
  height: auto;
  flex: none;
}

.doc-logo span {
  display: block;
  color: #ffffff;
  border-left: 1px solid #6e65ff;
  font-family: "Pulp-Display";
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1em;
  margin-left: 18px;
  margin-top: 0;
  padding-left: 22px;
}

.doc-logo span p {
  display: inline-block;
  margin: 0;
  line-height: 1em;
  white-space: nowrap;
}

.doc-menu-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.doc-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.doc-menu a {
  color: rgba(255, 255, 255, 0.86);
  font-family: "Pulp-Display";
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  transition: color 0.2s ease;
}

.doc-menu a:hover,
.doc-menu a:focus,
.doc-menu a.active {
  color: #ffffff;
  text-decoration: none;
}

.doc-menu a.active {
  font-weight: 600;
}

.doc-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  flex: none;
  background: url(../images/social-button.svg) no-repeat center center transparent;
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1;
  text-decoration: none;
}

.doc-linkedin:hover,
.doc-linkedin:focus {
  color: #ffffff;
  text-decoration: none;
}

.doc-hamburger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  outline: 0;
  padding: 0;
  transition: background-color 0.65s ease, border-color 0.65s ease, box-shadow 0.8s ease;
}

.doc-hamburger:focus {
  outline: 0;
}

.doc-hamburger:focus-visible {
  border-color: #ffd75e;
  box-shadow: 0 0 0 3px rgba(255, 215, 94, 0.28);
}

.doc-hamburger.is-tapped {
  border-color: #ffd75e;
  background: rgba(255, 215, 94, 0.16);
  box-shadow: 0 0 0 4px rgba(255, 215, 94, 0);
}

.doc-hamburger ion-icon {
  color: #ffffff;
  font-size: 1.55rem;
  line-height: 1;
}

.doc-heading {
  margin-top: 74px;
  color: #ffffff;
}

.doc-page-title {
  max-width: 820px;
  margin: 0 0 24px;
  color: #ffffff;
  font-family: "Pulp-Display";
  font-size: clamp(2.3rem, 4.5vw, 4.1rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
}

.doc-on-page {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  max-width: 920px;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Pulp-Display";
  font-size: 1rem;
  line-height: 1.4;
}

.doc-on-page span {
  flex: none;
  font-weight: 600;
}

.doc-on-page div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  min-width: 0;
}

.doc-on-page a {
  display: inline;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.82);
  border-radius: 0;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.doc-on-page a:hover,
.doc-on-page a:focus {
  border-bottom-style: solid;
  color: #ffffff;
  text-decoration: none;
}

.doc-panel {
  position: relative;
  z-index: 2;
  margin-top: -38px;
  background: #ffffff;
  border-radius: 28px 28px 0 0;
  padding: 54px 0 76px;
  min-height: 54vh;
}

.doc-content {
  max-width: 900px;
  color: #3a3a44;
  overflow-wrap: break-word;
}

.doc-content > p:first-child,
.doc-content > p:first-child strong {
  color: #594eee;
  font-weight: 600;
}

.doc-content h2 {
  margin: 2.55rem 0 0.85rem;
  color: #1b1b21;
  font-family: "Pulp-Display";
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.22;
}

.doc-content h3 {
  margin: 1.85rem 0 0.6rem;
  color: #1b1b21;
  font-family: "Pulp-Display";
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

.doc-content p {
  margin: 0 0 1.05rem;
  font-size: 1.05rem;
  line-height: 1.72;
}

.doc-content a {
  color: #594eee;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-content a:hover,
.doc-content a:focus {
  color: #4f45eb;
}

.doc-content strong {
  color: #1b1b21;
  font-weight: 600;
}

.doc-content ul,
.doc-content ol {
  margin: 0 0 1.08rem;
  padding-left: 1.35rem;
}

.doc-content li {
  margin: 0.42rem 0;
  font-size: 1.05rem;
  line-height: 1.65;
}

.doc-content hr {
  margin: 2.25rem 0;
  border: 0;
  border-top: 1px solid #e7e6f0;
}

.doc-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
  overflow-x: auto;
  font-size: 0.98rem;
}

.doc-content thead,
.doc-content tbody,
.doc-content tr {
  width: 100%;
}

.doc-content th,
.doc-content td {
  border: 1px solid #e7e6f0;
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
}

.doc-content th {
  background: #f4f3fb;
  color: #1b1b21;
  font-weight: 600;
}

.doc-content code {
  background: #f1f0f8;
  border-radius: 6px;
  padding: 2px 6px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
}

.doc-footer {
  background: #594eee;
  border-top: 1px solid rgba(229, 229, 229, 0.15);
  padding: 24px 0;
}

.doc-footer .container {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  align-items: center;
  color: #c3bfff;
  font-family: "Pulp-Display";
  font-size: 0.9rem;
  line-height: 1.35;
}

.doc-footer-logo {
  line-height: 0;
}

.doc-footer-logo img {
  width: 112px;
  height: auto;
}

.doc-footer-copy {
  margin-right: auto;
  text-align: left;
}

.doc-footer a {
  color: #ffffff;
  text-decoration: none;
}

.doc-footer a:hover,
.doc-footer a:focus {
  text-decoration: underline;
}

.doc-footer-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.86);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.doc-footer-top:hover,
.doc-footer-top:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
  text-decoration: none;
}

.doc-footer-top ion-icon {
  font-size: 1.15rem;
}

@media (max-width: 767.98px) {
  .doc-hero {
    padding-top: 22px;
    padding-bottom: 72px;
  }

  .doc-nav {
    flex-wrap: wrap;
  }

  .doc-logo img {
    width: 110px;
  }

  .doc-logo span {
    display: block;
    margin-left: 10px;
    padding-left: 10px;
    font-size: 0.875rem;
  }

  .doc-logo span p {
    width: 100px;
    white-space: normal;
  }

  .doc-hamburger {
    display: inline-flex;
  }

  .doc-menu-wrap {
    display: none;
    position: absolute;
    z-index: 20;
    top: calc(100% + 12px);
    right: 0;
    width: min(240px, calc(100vw - 56px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    background: #5439f2;
    box-shadow: 0 18px 42px rgba(27, 27, 33, 0.28);
  }

  .doc-menu-wrap.open {
    display: flex;
  }

  .doc-menu {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .doc-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .doc-menu a:hover,
  .doc-menu a:focus,
  .doc-menu a.active {
    background: rgba(255, 255, 255, 0.12);
  }

  .doc-linkedin {
    margin: 10px 0 0 10px;
  }

  .doc-heading {
    margin-top: 46px;
  }

  .doc-on-page {
    gap: 8px 10px;
    font-size: 0.95rem;
  }

  .doc-on-page div {
    gap: 5px 14px;
  }

  .doc-on-page a {
    padding: 0 0 2px;
    font-size: 0.86rem;
  }

  .doc-panel {
    padding-top: 44px;
    padding-bottom: 58px;
  }

  .doc-content p,
  .doc-content li {
    font-size: 1rem;
  }

  .doc-footer .container {
    gap: 12px;
    text-align: left;
  }

  .doc-footer-copy {
    text-align: left;
    font-size: 0.82rem;
  }
}
