:root {
  --navy: #0b1530;
  --navy-2: #111f42;
  --ink: #17223c;
  --muted: #67738d;
  --soft: #f3f6fb;
  --line: #e4e9f2;
  --teal: #51e1c0;
  --teal-dark: #0f887e;
  --teal-soft: #f0fbf8;
  --violet: #8d85ff;
  --white: #fff;
  --shadow: 0 14px 44px rgba(20,35,71,.08);
  --radius: 20px;
}

body.page-licensing {
  background: var(--soft);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 11px;
}

body.page-licensing h1,
body.page-licensing h2,
body.page-licensing h3,
body.page-licensing h4,
body.page-licensing h5,
body.page-licensing h6,
.licensing-hero h1,
.policy-title,
.nav-head h2,
.licensing-card h4,
.policy-body h2,
.policy-body h3 {
  font-family: var(--font-heading);
}

.licensing-hero {
  background: radial-gradient(circle at 78% 12%, rgba(141,133,255,.22), transparent 34%),
              radial-gradient(circle at 13% 98%, rgba(81,225,192,.14), transparent 33%),
              var(--navy);
  color: white;
  padding: 62px 30px 80px;
}
.licensing-hero-inner {
  max-width: 1380px;
  margin: auto;
}
.licensing-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #b2fbe8;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 850;
  margin-bottom: 0;
}
.licensing-hero .eyebrow:before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--teal);
  display: inline-block;
}
.licensing-hero h1 {
  max-width: 820px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -.045em;
  margin: 18px 0 18px;
  font-weight: 820;
  color: #fff;
}
.licensing-hero h1 span {
  color: var(--teal);
}
.licensing-hero p {
  max-width: 820px;
  color: #c5cee1;
  font-size: 11px;
  line-height: 1.75;
  margin: 0;
}
.licensing-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.licensing-hero-tag {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  color: #e6edf9;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.licensing-hero-tag strong {
  color: white;
  font-weight: 800;
}

.licensing-main {
  max-width: 1440px;
  margin: -34px auto 0;
  padding: 0 30px 64px;
  position: relative;
}
.workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}
.side-nav {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  position: sticky;
  top: 96px;
}
.nav-head {
  padding: 4px 7px 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.nav-head h2 {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0;
  color: #6c7891;
  font-weight: 800;
}
.nav-head p {
  font-size: 11px;
  color: #919bb0;
  margin: 6px 0 0;
}
.nav-group {
  margin-top: 14px;
}
.nav-group-label {
  color: #9ba5b7;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 850;
  font-size: 9.5px;
  padding: 0 8px;
  margin: 12px 0 7px;
  display: block;
}
.nav-tab {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 13px;
  padding: 10px 9px;
  color: var(--ink);
  transition: background .16s, border-color .16s, transform .16s;
  margin-bottom: 3px;
}
.nav-tab:hover {
  background: #f6f8fc;
}
.nav-tab.group-start {
  margin-top: 6px;
}
.nav-group-kicker {
  display: block;
  color: #96a1b5;
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 850;
  margin-bottom: 3px;
}
.nav-tab[aria-selected="true"] {
  background: #effcf8;
  border-color: #c7f4e7;
  box-shadow: inset 3px 0 0 var(--teal);
}
.nav-mark {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #f0f3f9;
  color: #65728d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
}
.nav-tab[aria-selected="true"] .nav-mark {
  background: var(--navy);
  color: var(--teal);
}
.nav-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
  flex: 1;
}
.nav-title {
  font-size: 11px;
  font-weight: 760;
  color: #202b46;
  line-height: 1.35;
}
.nav-subtitle {
  font-size: 10px;
  color: #8994a8;
  line-height: 1.35;
}
.nav-arrow {
  font-size: 20px;
  line-height: 1;
  color: #a8b2c5;
  opacity: 0;
  transform: translateX(-2px);
  transition: .16s;
}
.nav-tab:hover .nav-arrow,
.nav-tab[aria-selected="true"] .nav-arrow {
  opacity: 1;
  transform: translateX(0);
}
.sidebar-note {
  margin-top: 20px;
  padding: 13px;
  background: #f6f8fc;
  border: 1px solid #e9edf5;
  border-radius: 13px;
  color: #78849b;
  font-size: 11px;
  line-height: 1.65;
}
.sidebar-note strong {
  display: block;
  color: #4e5a74;
  font-size: 11px;
  margin-bottom: 4px;
}

.policy-shell {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}
.content-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 23px 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfcff);
}
.toolbar-kicker {
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #8793a9;
  font-weight: 850;
  margin: 0 0 4px;
}
.content-toolbar h2 {
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--navy);
  margin: 0;
  font-weight: 820;
}
.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  cursor: pointer;
  border: 1px solid #dce3ef;
  background: white;
  border-radius: 11px;
  padding: 9px 12px;
  color: #4d5c78;
  font-size: 11px;
  font-weight: 750;
  transition: border-color .15s, color .15s, background .15s;
}
.print-btn:hover {
  border-color: #91e7d3;
  color: var(--navy);
  background: #f3fffb;
}
.policy-panel {
  padding: 29px 34px 25px;
}
.policy-panel[hidden] {
  display: none !important;
}
.policy-meta {
  display: flex;
  align-items: center;
  gap: 8px 15px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid #edf0f6;
  color: #7b879d;
  font-size: 11px;
}
.policy-meta b {
  color: #4c5973;
  font-weight: 750;
}
.policy-type {
  background: #f0f3fa;
  color: #4e5e7b;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 850;
  border-radius: 999px;
  padding: 6px 9px;
}
.applies {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 17px 0 18px;
  border-bottom: 1px solid #edf0f6;
  font-size: 11px;
  color: #5d6982;
}
.applies-label {
  font-size: 9px;
  letter-spacing: .14em;
  color: #8793a9;
  font-weight: 900;
  white-space: nowrap;
  padding-top: 3px;
}
.verification-note {
  margin: 19px 0 25px;
  border-radius: 14px;
  border: 1px solid #ccece4;
  background: #f2fcf9;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #44675f;
  font-size: 11px;
  line-height: 1.75;
}
.verification-note p {
  margin: 0;
}
.verification-note strong {
  color: #24584c;
}
.notice-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border: 1px solid #7ad8c3;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  color: #187d67;
  margin-top: 1px;
}

/* Feature guarantee card */
.guarantee-card {
  background: linear-gradient(135deg, #f0fbf8, #e8f8f4);
  border: 1px solid #bcece1;
  border-radius: 16px;
  padding: 22px 24px;
  margin: 22px 0 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}
.guarantee-badge {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #18b39a, #0b806d);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(24, 179, 154, 0.25);
}
.guarantee-badge strong {
  font-size: 18px;
}
.guarantee-badge small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.guarantee-info h3 {
  margin: 0 0 5px;
  font-size: 13px;
  color: #0d463b;
  font-weight: 800;
}
.guarantee-info p {
  margin: 0;
  font-size: 11px;
  color: #38675d;
  line-height: 1.6;
}

/* Overview Summary Grid */
.licensing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0 28px;
}
.licensing-card {
  border: 1px solid #e2e8f4;
  background: #fafbfd;
  border-radius: 14px;
  padding: 18px 20px;
  transition: transform .18s, border-color .18s;
}
.licensing-card:hover {
  transform: translateY(-2px);
  border-color: #a7d0fa;
}
.licensing-card h4 {
  font-size: 13px;
  color: var(--navy);
  font-weight: 800;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.licensing-card p {
  font-size: 11px;
  color: #657490;
  line-height: 1.6;
  margin: 0;
}

.policy-body {
  padding-top: 22px;
}
.policy-body h2 {
  margin: 24px 0 10px;
  padding-top: 18px;
  border-top: 1px solid #edf0f6;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: -.01em;
  font-weight: 810;
  scroll-margin-top: 95px;
}
.policy-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.policy-body h3 {
  margin: 18px 0 8px;
  color: #34435f;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 790;
  scroll-margin-top: 95px;
}
.policy-body p {
  margin: 0 0 14px;
  font-size: 11px;
  color: #48556f;
  line-height: 1.75;
}
.policy-body ul, .policy-body ol {
  margin: 8px 0 19px;
  padding-left: 23px;
  color: #48556f;
  font-size: 11px;
}
.policy-body li {
  padding-left: 4px;
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.7;
}
.policy-body li::marker {
  color: #31b99a;
}
.policy-body code {
  font-family: var(--font-code);
  font-size: 11px;
  background: #f0f3f8;
  color: #35425c;
  border: 1px solid #e4e8f0;
  border-radius: 5px;
  padding: 2px 5px;
  overflow-wrap: anywhere;
}
.policy-body a {
  color: #3e52bd;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.policy-body a:hover {
  color: #28399a;
}
.legal-reference-block {
  margin: 28px 0 4px;
  background: #f7f9fd;
  border: 1px solid #e7ebf4;
  border-radius: 16px;
  padding: 20px;
}
.legal-reference-block h3 {
  margin: 0 0 9px;
  font-size: 13px;
}
.law-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.law-links a {
  font-size: 11px;
  text-decoration: none;
  background: white;
  border: 1px solid #dce3ef;
  border-radius: 9px;
  padding: 8px 10px;
  font-weight: 750;
  color: #34435f;
  transition: border-color .15s, color .15s;
}
.law-links a:hover {
  border-color: #63d9bf;
  color: var(--navy);
}
.notice-end {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #edf0f6;
  margin-top: 32px;
  padding-top: 17px;
  font-size: 11px;
  color: #9aa4b6;
}
.end-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #65d8bf;
}
.back-to-top {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #566887;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  padding: 4px;
}
.back-to-top:hover {
  color: #1f9c80;
}
.licensing-legal-warning {
  max-width: 1440px;
  margin: 24px auto 0;
  padding: 0 30px 10px;
  color: #8590a6;
  font-size: 11px;
  line-height: 1.7;
}

@media(max-width: 1050px) {
  .licensing-main {
    padding-left: 18px;
    padding-right: 18px;
  }
  .workspace {
    grid-template-columns: 255px minmax(0, 1fr);
    gap: 14px;
  }
  .side-nav {
    padding: 12px;
  }
  .policy-panel {
    padding: 24px;
  }
  .content-toolbar {
    padding: 20px 23px;
  }
  .licensing-hero {
    padding-left: 22px;
    padding-right: 22px;
  }
}

@media(max-width: 780px) {
  .licensing-hero {
    padding: 45px 18px 65px;
  }
  .licensing-main {
    margin-top: -28px;
    padding: 0 12px 32px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .side-nav {
    position: relative;
    top: auto;
    padding: 14px;
    overflow: hidden;
  }
  .nav-head {
    padding: 2px 4px 10px;
    margin-bottom: 8px;
  }
  .side-nav nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
  }
  .nav-group-label {
    display: none;
  }
  .nav-tab {
    width: auto;
    min-width: 155px;
    flex: 0 0 auto;
    padding: 8px;
    border-color: #e9edf4;
    background: #fff;
  }
  .nav-tab[aria-selected="true"] {
    border-color: #c7f4e7;
  }
  .nav-mark {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }
  .nav-subtitle {
    display: none;
  }
  .nav-group-kicker {
    font-size: 8px;
    margin-bottom: 1px;
  }
  .nav-tab.group-start {
    margin-top: 0;
  }
  .nav-arrow {
    display: none;
  }
  .sidebar-note {
    display: none;
  }
  .policy-shell {
    border-radius: 17px;
  }
  .content-toolbar {
    padding: 18px 16px;
    align-items: flex-start;
  }
  .content-toolbar h2 {
    font-size: 13px;
  }
  .print-btn {
    font-size: 0;
    padding: 10px;
    width: 40px;
    height: 40px;
    justify-content: center;
  }
  .print-btn svg {
    width: 17px;
    height: 17px;
  }
  .policy-panel {
    padding: 19px 17px 20px;
  }
  .policy-meta {
    gap: 7px 10px;
  }
  .applies {
    display: block;
    font-size: 11px;
  }
  .applies-label {
    display: block;
    margin-bottom: 5px;
  }
  .policy-body {
    padding-top: 18px;
  }
  .policy-body h2 {
    font-size: 13px;
    margin-top: 24px;
  }
  .policy-body p, .policy-body li {
    font-size: 11px;
  }
  .licensing-legal-warning {
    padding: 0 17px 20px;
  }
  .guarantee-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media(max-width: 420px) {
  .licensing-hero h1 {
    font-size: 35px;
  }
  .licensing-hero p {
    font-size: 11px;
  }
  .licensing-hero-tags {
    gap: 7px;
  }
  .licensing-hero-tag {
    font-size: 11px;
    padding: 7px 9px;
  }
  .nav-tab {
    min-width: 140px;
  }
  .policy-body h2 {
    font-size: 13px;
  }
  .policy-body h3 {
    font-size: 13px;
  }
  .legal-reference-block {
    padding: 14px;
  }
}

@media(prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
  }
}

@media print {
  @page {
    margin: 17mm;
  }
  body {
    background: white;
    color: #111;
  }
  .site-header,
  .licensing-hero,
  .side-nav,
  .content-toolbar,
  .site-footer,
  .licensing-legal-warning {
    display: none !important;
  }
  .licensing-main {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .workspace {
    display: block;
  }
  .policy-shell {
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }
  .policy-panel {
    display: none !important;
    padding: 0;
  }
  .policy-panel.print-active {
    display: block !important;
  }
  .policy-meta {
    color: #444;
  }
  .policy-body h2 {
    break-after: avoid;
  }
  .policy-body p, .policy-body li {
    color: #222;
    font-size: 10pt;
  }
  .verification-note, .guarantee-card {
    background: white;
  }
  a {
    color: #222;
    text-decoration: none;
  }
  .notice-end {
    display: none;
  }
}
