/* Legal / licenses page — readable policy layout aligned with contact + article pages */

.licenses-page {
  position: relative;
  padding: 120px 5% 140px;
}

.licenses-page__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin: 0 0 48px;
}

.licenses-page__eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #6d6d6d;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.licenses-page__eyebrow::before {
  display: block;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--accent, #c2b067);
  border-radius: 50%;
}

.licenses-page__title {
  margin: 0;
  font-family: Lufga, Arial, sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.08;
  color: #141414;
  letter-spacing: -0.03em;
}

.licenses-page__intro {
  max-width: 54ch;
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #454545;
}

.licenses-page__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.licenses-page__nav {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--marketing-card-border, #edeff3);
  border-radius: 18px;
  box-shadow: var(--marketing-card-shadow, 0 1px 2px rgb(0 0 0 / 4%));
}

.licenses-page__nav-link {
  display: block;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: #5c5c5c;
  text-decoration: none;
  border-radius: 12px;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.licenses-page__nav-link:hover {
  color: #141414;
  background: #f4f4f2;
}

.licenses-page__nav-link.is-active,
.licenses-page__nav-link:focus-visible {
  font-weight: 600;
  color: #141414;
  outline: none;
  background: #f0eee6;
}

.licenses-page__content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.licenses-doc {
  padding: 40px 44px 48px;
  scroll-margin-top: 112px;
  background: #fff;
  border: 1px solid var(--marketing-card-border, #edeff3);
  border-radius: 24px;
  box-shadow: var(--marketing-card-shadow, 0 1px 2px rgb(0 0 0 / 4%));
}

.licenses-doc__title {
  margin: 0 0 8px;
  font-family: Lufga, Arial, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.15;
  color: #141414;
  letter-spacing: -0.025em;
}

.licenses-doc__meta {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  margin: 0 0 28px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: #6d6d6d;
  letter-spacing: 0.02em;
  background: #f7f7f5;
  border: 1px solid #ebebe8;
  border-radius: 999px;
}

.licenses-doc .w-richtext {
  max-width: 68ch;
}

.licenses-doc .w-richtext > *:first-child {
  margin-top: 0;
}

.licenses-doc .w-richtext h2,
.licenses-doc .w-richtext h3,
.licenses-doc .w-richtext h4,
.licenses-doc .w-richtext .heading-4 {
  margin: 2rem 0 0.7rem;
  font-family: Lufga, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: #141414;
  letter-spacing: -0.015em;
}

.licenses-doc .w-richtext h2,
.licenses-doc .w-richtext .heading-4 {
  padding-top: 0.35rem;
  font-size: 1.2rem;
  border-top: 1px solid #efefec;
}

.licenses-doc .w-richtext h2:first-child,
.licenses-doc .w-richtext .heading-4:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.licenses-doc .w-richtext h3 {
  margin-top: 1.75rem;
  font-size: 1.05rem;
}

.licenses-doc .w-richtext h4 {
  margin-top: 1.35rem;
  font-size: 0.98rem;
}

.licenses-doc .w-richtext p,
.licenses-doc .w-richtext li {
  font-size: 15.5px;
  line-height: 1.7;
  color: #3f3f3f;
}

.licenses-doc .w-richtext p {
  margin: 0 0 1rem;
}

.licenses-doc .w-richtext ul,
.licenses-doc .w-richtext ol {
  padding-left: 1.25rem;
  margin: 0 0 1.15rem;
}

.licenses-doc .w-richtext li {
  padding-left: 0.15rem;
  margin: 0 0 0.45rem;
}

.licenses-doc .w-richtext li::marker {
  color: #b7b7b0;
}

.licenses-doc .w-richtext strong {
  font-weight: 600;
  color: #1c1c1c;
}

.licenses-doc .w-richtext a {
  color: var(--accent, #c2b067);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.licenses-doc .w-richtext a:hover {
  color: #a8944f;
}

.licenses-doc .w-richtext code {
  padding: 0.12em 0.4em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.86em;
  color: #1c1c1c;
  background: #f4f4f2;
  border-radius: 6px;
}

.licenses-doc .divider {
  display: none;
}

.licenses-doc .mg-bottom-24px {
  margin-bottom: 0 !important;
}

@media (max-width: 991px) {
  .licenses-page {
    padding: 104px 5% 112px;
  }

  .licenses-page__layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .licenses-page__nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
  }

  .licenses-page__nav-link {
    padding: 10px 12px;
  }

  .licenses-doc {
    padding: 28px 22px 36px;
    border-radius: 20px;
  }
}

@media (max-width: 767px) {
  .licenses-page__header {
    margin-bottom: 32px;
  }

  .licenses-page__intro {
    font-size: 16px;
  }

  .licenses-doc .w-richtext p,
  .licenses-doc .w-richtext li {
    font-size: 15px;
  }
}
