.license-page {
  min-height: 100svh;
  background: #151619;
  color: #f1f2f8;
  --license-muted: #aeb3c3;
  --license-line: #ffffff16;
}

.license-shell { width: min(1136px, calc(100% - 64px)); margin-inline: auto; }
.license-header { border-bottom: 1px solid var(--license-line); background: #151619; }
.license-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 67px; }
.license-brand { width: 148px; flex: none; }
.license-nav { display: flex; align-items: center; gap: 10px; }
.license-nav a {
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #d5d8e4;
  font-size: 13px;
  text-decoration: none;
}
.license-nav .license-workspace { border-color: #ffffff26; background: #202127; }
.license-nav a:hover { color: white; background: #26346a; }
.license-nav .license-workspace span { margin-left: 5px; color: #9ab4ff; }
.license-main { padding: clamp(29px, 5vw, 63px) 0 70px; }

.license-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(300px, 34vw, 384px);
  overflow: hidden;
  padding: clamp(25px, 5.6vw, 72px);
  border: 1px solid #4658b95e;
  border-radius: 18px;
  background: radial-gradient(ellipse at 81% 45%, #2d44e9 0, #242f96 26%, #171e4c 57%, #151a36 100%);
}
.license-hero-model {
  position: absolute;
  z-index: -2;
  top: 48%;
  left: 46%;
  width: min(71vw, 805px);
  height: auto;
  transform: translateY(-50%) rotate(-8deg);
}
.license-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #14182fef, #151b38ad 41%, transparent 72%);
}
.license-hero-copy { max-width: 488px; }
.license-hero h1 { margin: 0 0 13px; font-size: clamp(58px, 8.1vw, 112px); font-weight: 680; line-height: .98; letter-spacing: -.073em; }
.license-hero p { max-width: 35ch; margin: 0 0 24px; color: #d6ddf3; font-size: clamp(15px, 1.65vw, 19px); }
.license-primary {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 43px;
  padding: 0 13px;
  border: 1px solid #899aff91;
  border-radius: 8px;
  background: #0001fc;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.license-primary:hover { background: #2935ff; }
.license-primary span { font-size: 17px; }

.license-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 15px 0 43px; }
.license-card {
  position: relative;
  display: block;
  padding: 17px 33px 18px 17px;
  border: 1px solid #32343e;
  border-radius: 10px;
  background: #1e1f24;
  text-decoration: none;
}
.license-card:hover { border-color: #5d74db; background: #21253a; }
.license-card h2 { margin: 0 0 5px; font-size: 15px; font-weight: 670; }
.license-card p { margin: 0; color: var(--license-muted); font-size: 13px; line-height: 1.48; }
.license-card > span { position: absolute; top: 15px; right: 13px; color: #a5b6ff; }

.license-document { display: grid; grid-template-columns: 185px minmax(0, 1fr); align-items: start; gap: clamp(22px, 4.1vw, 51px); }
.license-contents { position: sticky; top: 23px; display: grid; gap: 3px; padding: 0 12px 0 0; }
.license-contents p { margin: 0 0 6px 9px; color: var(--license-muted); font-size: 12px; font-weight: 650; }
.license-contents a { padding: 6px 9px; border-radius: 6px; color: #d7d9e3; text-decoration: none; font-size: 13px; }
.license-contents a:hover, .license-contents a:focus-visible { color: #f7f8ff; background: #24316a; }
.license-terms { max-width: 830px; padding: clamp(21px, 4vw, 38px); border: 1px solid #32343e; border-radius: 12px; background: #1a1b20; }
.license-terms > h2 { margin: 0 0 22px; font-size: clamp(26px, 4vw, 40px); line-height: 1.13; letter-spacing: -.04em; }
.license-terms .text { color: #c7cad8; font-size: 14px; line-height: 1.66; }
.license-terms p { margin: 0 0 13px; }
.license-terms .term-heading { margin: 24px 0 5px; color: #f1f3fb; font-size: 16px; line-height: 1.38; }
.license-terms .term-heading:first-child { margin-top: 0; }
.license-terms ol { margin: 8px 0 15px; padding-left: 24px; }
.license-terms li { margin-bottom: 7px; padding-left: 3px; }
.license-terms li::marker { color: #9ab4ff; }
.license-terms a { color: #a9bbff; text-underline-offset: 3px; }
.license-terms p:last-child { margin-bottom: 0; }
.license-document, .term-heading, #inputs { scroll-margin-top: 24px; }
.term-heading:target { color: #acbcff; }

@media (max-width: 780px) {
  .license-shell { width: calc(100% - 38px); }
  .license-hero-model { left: 44%; width: min(98vw, 680px); }
  .license-document { grid-template-columns: 1fr; gap: 10px; }
  .license-contents { display: flex; flex-wrap: wrap; position: static; padding: 0; }
  .license-contents p { width: 100%; margin-left: 8px; }
}

@media (max-width: 540px) {
  .license-shell { width: calc(100% - 28px); }
  .license-topbar { min-height: 56px; gap: 5px; }
  .license-brand { width: 106px; }
  .license-nav { gap: 2px; }
  .license-nav a { padding-inline: 6px; font-size: 11px; }
  .license-nav .license-workspace span { margin-left: 2px; }
  .license-hero { min-height: 290px; padding: 24px 17px; }
  .license-hero h1 { font-size: clamp(48px, 13vw, 66px); }
  .license-hero p { max-width: 28ch; }
  .license-hero-model { left: 36%; width: 118vw; top: 44%; }
  .license-hero::after { background: linear-gradient(90deg, #14182ff5, #151a37e3 45%, #14192855); }
  .license-overview { grid-template-columns: 1fr; gap: 7px; margin-bottom: 26px; }
  .license-card { padding-block: 12px; }
  .license-terms { padding: 17px; }
}
