:root {
    --license-ink: #111a2e;
    --license-muted: #667085;
    --license-line: #dce5f2;
    --license-soft: #f4f7fc;
    --license-blue: #2468ee;
    --license-blue-dark: #174ebd;
    --license-green: #11845b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.license-install-body {
    min-height: 100vh;
    margin: 0;
    color: var(--license-ink);
    background:
        radial-gradient(circle at 8% 0%, rgba(61, 119, 246, .15), transparent 30rem),
        radial-gradient(circle at 100% 15%, rgba(80, 209, 171, .12), transparent 26rem),
        #f3f6fb;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.license-agreement-shell {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0 56px;
}

.license-agreement-card {
    overflow: hidden;
    border: 1px solid rgba(187, 201, 222, .72);
    border-radius: 32px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 28px 80px rgba(24, 49, 91, .12);
}

.license-agreement-hero {
    position: relative;
    overflow: hidden;
    padding: 30px 42px 42px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 30%, rgba(103, 224, 192, .3), transparent 22rem),
        linear-gradient(135deg, #101a32 0%, #183b82 56%, #2468ee 100%);
}

.license-agreement-hero::after {
    position: absolute;
    right: -95px;
    bottom: -170px;
    width: 390px;
    height: 390px;
    border: 55px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
    content: "";
}

.license-agreement-hero__top,
.license-agreement-hero__grid {
    position: relative;
    z-index: 1;
}

.license-agreement-hero__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 44px;
}

.license-agreement-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: #fff;
    text-decoration: none;
}

.license-agreement-brand .admin-brand__mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 15px;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24);
    font-size: 22px;
    font-weight: 800;
}

.license-agreement-brand > span:last-child {
    display: grid;
    gap: 3px;
}

.license-agreement-brand strong {
    font-size: 18px;
    letter-spacing: -.02em;
}

.license-agreement-brand small {
    color: rgba(255, 255, 255, .66);
    font-size: 12px;
}

.license-agreement-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.license-agreement-back:hover {
    background: rgba(255, 255, 255, .16);
    transform: translateY(-1px);
}

.license-agreement-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 60px;
    align-items: end;
}

.license-install-step {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: #bcd6ff;
    background: rgba(255, 255, 255, .08);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.license-agreement-hero h1 {
    max-width: 720px;
    margin: 18px 0 16px;
    color: #fff;
    font-size: clamp(38px, 5vw, 66px);
    line-height: .98;
    letter-spacing: -.055em;
}

.license-agreement-hero__content > p {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 17px;
    line-height: 1.65;
}

.license-agreement-facts {
    display: grid;
    gap: 1px;
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 20px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(18px);
}

.license-agreement-facts div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 17px;
    background: rgba(11, 25, 52, .28);
}

.license-agreement-facts dt {
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
}

.license-agreement-facts dd {
    margin: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    text-align: right;
}

.license-agreement-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 34px;
    padding: 40px 42px 46px;
}

.license-agreement-aside {
    min-width: 0;
}

.license-agreement-nav {
    position: sticky;
    top: 24px;
    padding: 22px;
    border: 1px solid var(--license-line);
    border-radius: 22px;
    background: var(--license-soft);
}

.license-agreement-nav__title {
    display: block;
    margin-bottom: 13px;
    color: var(--license-ink);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.license-agreement-nav ol {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: agreement;
}

.license-agreement-nav li {
    counter-increment: agreement;
}

.license-agreement-nav a {
    display: grid;
    grid-template-columns: 23px minmax(0, 1fr);
    gap: 7px;
    align-items: baseline;
    padding: 7px 8px;
    border-radius: 9px;
    color: #4d5b73;
    font-size: 12px;
    line-height: 1.35;
    text-decoration: none;
}

.license-agreement-nav a::before {
    color: #94a2b9;
    content: counter(agreement, decimal-leading-zero);
    font-size: 10px;
    font-weight: 800;
}

.license-agreement-nav a:hover {
    color: var(--license-blue);
    background: #fff;
}

.license-agreement-aside__note {
    display: flex;
    gap: 11px;
    margin-top: 16px;
    padding: 17px;
    border-radius: 18px;
    color: #126144;
    background: #e9f9f3;
}

.license-agreement-aside__note > span {
    display: grid;
    flex: 0 0 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--license-green);
    font-weight: 800;
}

.license-agreement-aside__note p {
    margin: 1px 0 0;
    font-size: 11px;
    line-height: 1.5;
}

.license-agreement-aside__note strong {
    display: block;
    margin-bottom: 3px;
    font-size: 12px;
}

.license-agreement-content {
    min-width: 0;
}

.license-agreement-intro {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid #cadeff;
    border-radius: 18px;
    color: #24406e;
    background: #edf4ff;
}

.license-agreement-intro > span {
    display: grid;
    flex: 0 0 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--license-blue);
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 700;
}

.license-agreement-intro p {
    margin: 1px 0 0;
    font-size: 13px;
    line-height: 1.6;
}

.license-agreement-intro strong {
    display: block;
    margin-bottom: 2px;
    color: var(--license-ink);
}

.license-agreement-sections {
    display: grid;
    gap: 12px;
}

.license-agreement-sections section {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 18px;
    scroll-margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--license-line);
    border-radius: 20px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.license-agreement-sections section:hover {
    border-color: #b7cdf5;
    box-shadow: 0 14px 34px rgba(31, 73, 143, .08);
    transform: translateY(-1px);
}

.license-agreement-section__number {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    color: var(--license-blue);
    background: #eaf1ff;
    font-size: 12px;
    font-weight: 850;
}

.license-agreement-sections h2 {
    margin: 3px 0 12px;
    color: var(--license-ink);
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -.025em;
}

.license-agreement-sections p {
    margin: 0 0 11px;
    color: #56647b;
    font-size: 14px;
    line-height: 1.75;
}

.license-agreement-sections p:last-child {
    margin-bottom: 0;
}

.license-agreement-control {
    display: grid;
    grid-template-columns: minmax(190px, .55fr) minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    margin-top: 18px;
    padding: 21px 23px;
    border-radius: 20px;
    color: #fff;
    background: var(--license-ink);
}

.license-agreement-control span,
.license-agreement-control strong {
    display: block;
}

.license-agreement-control span {
    margin-bottom: 4px;
    color: #93a5c3;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.license-agreement-control strong {
    font-size: 14px;
}

.license-agreement-control code {
    overflow-wrap: anywhere;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    color: #cbd9f3;
    background: rgba(255, 255, 255, .06);
    font-size: 11px;
    line-height: 1.6;
}

.license-agreement-disclaimer {
    margin: 14px 6px 0;
    color: #8793a7;
    font-size: 11px;
    line-height: 1.6;
}

.license-agreement-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 25px 42px;
    border-top: 1px solid var(--license-line);
    background: #f8faff;
}

.license-agreement-footer > div:first-child {
    display: grid;
    gap: 3px;
}

.license-agreement-footer strong {
    font-size: 15px;
}

.license-agreement-footer span {
    color: var(--license-muted);
    font-size: 12px;
}

.license-agreement-footer__actions {
    display: flex;
    gap: 10px;
}

.license-agreement-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 19px;
    border: 1px solid var(--license-blue);
    border-radius: 13px;
    color: #fff;
    background: var(--license-blue);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.license-agreement-footer .btn:hover {
    background: var(--license-blue-dark);
}

.license-agreement-footer .btn--outline {
    color: var(--license-blue);
    background: transparent;
}

.license-agreement-footer .btn--outline:hover {
    color: #fff;
}

@media (max-width: 920px) {
    .license-agreement-hero__grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .license-agreement-facts {
        grid-template-columns: repeat(3, 1fr);
    }

    .license-agreement-facts div {
        display: grid;
        gap: 4px;
        align-content: start;
    }

    .license-agreement-facts dd {
        text-align: left;
    }

    .license-agreement-layout {
        grid-template-columns: 1fr;
    }

    .license-agreement-nav {
        position: static;
    }

    .license-agreement-nav ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .license-agreement-aside__note {
        display: none;
    }
}

@media (max-width: 640px) {
    .license-agreement-shell {
        width: 100%;
        padding: 0;
    }

    .license-agreement-card {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .license-agreement-hero {
        padding: 22px 20px 30px;
    }

    .license-agreement-hero__top {
        align-items: flex-start;
        padding-bottom: 32px;
    }

    .license-agreement-brand small,
    .license-agreement-back span {
        display: none;
    }

    .license-agreement-back {
        padding: 9px 11px;
        font-size: 11px;
    }

    .license-agreement-hero h1 {
        margin-top: 15px;
        font-size: 39px;
    }

    .license-agreement-hero__content > p {
        font-size: 14px;
        line-height: 1.6;
    }

    .license-agreement-facts {
        grid-template-columns: 1fr;
    }

    .license-agreement-facts div {
        display: flex;
    }

    .license-agreement-facts dd {
        text-align: right;
    }

    .license-agreement-layout {
        gap: 20px;
        padding: 22px 16px 30px;
    }

    .license-agreement-nav {
        padding: 17px;
        border-radius: 17px;
    }

    .license-agreement-nav ol {
        grid-template-columns: 1fr;
    }

    .license-agreement-nav li:nth-child(n+7) {
        display: none;
    }

    .license-agreement-sections section {
        grid-template-columns: 1fr;
        gap: 11px;
        padding: 19px;
        border-radius: 17px;
    }

    .license-agreement-section__number {
        width: 36px;
        height: 36px;
    }

    .license-agreement-sections h2 {
        margin-top: 0;
        font-size: 18px;
    }

    .license-agreement-sections p {
        font-size: 13px;
        line-height: 1.7;
    }

    .license-agreement-control {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 19px;
    }

    .license-agreement-footer {
        display: grid;
        padding: 22px 16px;
    }

    .license-agreement-footer__actions {
        display: grid;
        grid-template-columns: 1fr 1.35fr;
    }
}

@media print {
    body.license-install-body {
        background: #fff;
    }

    .license-agreement-shell {
        width: 100%;
        padding: 0;
    }

    .license-agreement-card {
        border: 0;
        box-shadow: none;
    }

    .license-agreement-hero {
        padding: 20px 0;
        color: #000;
        background: #fff;
    }

    .license-agreement-hero h1,
    .license-agreement-brand,
    .license-agreement-facts dd {
        color: #000;
    }

    .license-agreement-hero__content > p,
    .license-agreement-brand small,
    .license-agreement-facts dt {
        color: #555;
    }

    .license-agreement-back,
    .license-agreement-aside,
    .license-agreement-footer,
    .license-agreement-hero::after {
        display: none;
    }

    .license-agreement-layout {
        display: block;
        padding: 0;
    }

    .license-agreement-sections section {
        break-inside: avoid;
        border-color: #ddd;
        box-shadow: none;
    }
}
