:root {
    --bg: #08090b;
    --surface: #0f1014;
    --surface-raised: #14151b;
    --surface-accent: #15182b;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text: #f5f5f8;
    --muted: #858791;
    --soft: #a2a3ad;
    --accent: #8c96ff;
    --accent-cyan: #72d9ef;
    --font-display: "Comfortaa";
    --font-body: "Nunito";
    --font-mono: "Nunito";
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #7e88ff #08090b;
}

html::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html::-webkit-scrollbar-track {
    background: #08090b;
}

html::-webkit-scrollbar-thumb {
    min-height: 54px;
    border: 3px solid #08090b;
    border-radius: 999px;
    background: linear-gradient(180deg, #8c95ff, #5867d8);
}

html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a8afff, #7180f1);
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(ellipse 58rem 35rem at 82% -8%, rgba(73, 89, 210, 0.18), transparent 66%),
        radial-gradient(ellipse 42rem 28rem at 4% 32%, rgba(37, 137, 162, 0.07), transparent 70%),
        var(--bg);
    font-family: var(--font-body);
    line-height: 1.65;
    color-scheme: dark;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 86px 86px;
    mask-image: linear-gradient(to bottom, #000, transparent 76%);
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible {
    outline: 2px solid #aeb6ff;
    outline-offset: 4px;
}

::selection {
    background: #aeb6ff;
    color: #09090b;
}

.legal-shell {
    width: min(1260px, calc(100% - 40px));
    margin: 0 auto;
    padding: 18px 0 86px;
}

.legal-card {
    position: relative;
}

.legal-topbar {
    position: sticky;
    top: 14px;
    z-index: 20;
    min-height: 66px;
    margin-bottom: 118px;
    padding: 8px 9px 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    background: rgba(9, 9, 12, 0.78);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(22px) saturate(1.08);
    -webkit-backdrop-filter: blur(22px) saturate(1.08);
}

.legal-home {
    min-height: 46px;
    padding: 0 15px 0 7px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    color: #e5e5ea;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    transition: color 180ms ease, background-color 180ms ease;
}

.legal-home::before {
    content: "NP";
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #aeb6ff;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.04em;
}

.legal-home:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.legal-navlinks {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #92939d;
    font-size: 12px;
}

.legal-navlinks a,
.legal-badge {
    min-height: 40px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    transition: color 180ms ease, background-color 180ms ease;
}

.legal-navlinks a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.055);
}

.legal-badge {
    margin-left: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.045);
    color: #c8cad4;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.legal-kicker {
    width: max-content;
    min-height: 34px;
    margin-bottom: 26px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    color: #a5a6af;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.legal-kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #75e5c3;
    box-shadow: 0 0 10px rgba(117, 229, 195, 0.75);
}

h1 {
    max-width: 1080px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(64px, 8vw, 116px);
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: -0.064em;
    text-wrap: balance;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.legal-lead {
    max-width: 780px;
    margin: 37px 0 0;
    color: var(--soft);
    font-size: 17px;
    line-height: 1.75;
    text-wrap: pretty;
}

.legal-summary {
    margin: 92px 0 105px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.legal-summary-item {
    min-height: 220px;
    padding: 30px 34px 34px 0;
    display: flex;
    flex-direction: column;
}

.legal-summary-item + .legal-summary-item {
    padding-left: 34px;
    border-left: 1px solid var(--border);
}

.legal-summary-item span {
    color: #777985;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.legal-summary-item strong {
    max-width: 340px;
    margin-top: auto;
    color: #e8e8ed;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.22;
    letter-spacing: -0.03em;
}

.legal-sections {
    border-top: 1px solid var(--border);
}

.legal-section {
    padding: 42px 0;
    display: grid;
    grid-template-columns: minmax(240px, 0.35fr) minmax(0, 1fr);
    gap: clamp(46px, 8vw, 120px);
    border-bottom: 1px solid var(--border);
}

.legal-section h2 {
    margin: 0;
    color: #f2f2f6;
    font-family: var(--font-display);
    font-size: clamp(24px, 2.3vw, 34px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.legal-section p {
    max-width: 790px;
    margin: 0;
    color: #9b9ca6;
    font-size: 15px;
    line-height: 1.85;
    text-wrap: pretty;
}

.legal-section a,
.tariff-note a {
    color: #bdc4ff;
    text-decoration: underline;
    text-decoration-color: rgba(189, 196, 255, 0.35);
    text-underline-offset: 4px;
}

.legal-footer {
    margin-top: 48px;
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #777985;
    font-size: 13px;
}

.legal-footer a {
    color: #e7e7ec;
    font-weight: 600;
    transition: color 180ms ease;
}

.legal-footer a:hover {
    color: #fff;
}

/* Tariffs */
.tariff-grid {
    margin: 92px 0 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.tariff-plan {
    position: relative;
    min-height: 440px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 30px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 42%),
        var(--surface);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.tariff-plan:nth-child(2) {
    border-color: rgba(154, 164, 255, 0.25);
    background:
        radial-gradient(circle at 95% -8%, rgba(96, 111, 232, 0.3), transparent 42%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 44%),
        #11131e;
}

.tariff-plan::after {
    content: "";
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(149, 160, 255, 0.85), transparent);
}

.tariff-label {
    color: #858791;
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.tariff-plan h2 {
    margin: 22px 0 0;
    font-family: var(--font-display);
    font-size: clamp(30px, 3.6vw, 48px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.045em;
}

.tariff-price {
    margin: auto 0 32px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.tariff-price strong {
    color: #f6f6f9;
    font-family: var(--font-display);
    font-size: clamp(72px, 7vw, 104px);
    font-weight: 500;
    line-height: 0.78;
    letter-spacing: -0.06em;
}

.tariff-price span {
    padding-bottom: 4px;
    color: #858791;
    font-family: var(--font-mono);
    font-size: 10px;
}

.tariff-features {
    margin: 0;
    padding: 22px 0 0;
    display: grid;
    gap: 12px;
    border-top: 1px solid var(--border);
    color: #9b9ca6;
    font-size: 14px;
    list-style: none;
}

.tariff-features li {
    position: relative;
    padding-left: 18px;
}

.tariff-features li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #929cff;
    box-shadow: 0 0 12px rgba(146, 156, 255, 0.55);
}

.tariff-note {
    margin: 0 0 105px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: #8e909a;
    font-size: 14px;
    line-height: 1.78;
}

@media (max-width: 900px) {
    .legal-topbar {
        margin-bottom: 82px;
    }

    .legal-summary,
    .tariff-grid {
        grid-template-columns: 1fr;
    }

    .legal-summary-item {
        min-height: 170px;
        padding: 28px 0;
    }

    .legal-summary-item + .legal-summary-item {
        padding-left: 0;
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .legal-section {
        grid-template-columns: 1fr;
        gap: 17px;
    }
}

@media (max-width: 700px) {
    .legal-shell {
        width: min(100% - 24px, 1260px);
        padding-top: 12px;
        padding-bottom: 54px;
    }

    .legal-topbar {
        position: relative;
        top: 0;
        min-height: auto;
        margin-bottom: 64px;
        padding: 10px;
        align-items: flex-start;
        flex-direction: column;
        border-radius: 24px;
    }

    .legal-home {
        width: 100%;
    }

    .legal-navlinks {
        width: 100%;
        padding-top: 9px;
        flex-wrap: wrap;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .legal-navlinks a,
    .legal-badge {
        min-height: 38px;
    }

    h1 {
        font-size: clamp(40px, 10.8vw, 58px);
        line-height: 0.94;
    }

    .legal-lead {
        margin-top: 28px;
        font-size: 15px;
    }

    .legal-summary,
    .tariff-grid {
        margin-top: 68px;
        margin-bottom: 78px;
    }

    .legal-section {
        padding: 32px 0;
    }

    .legal-section h2 {
        font-size: 28px;
    }

    .legal-section p {
        font-size: 14px;
        line-height: 1.78;
    }

    .tariff-plan {
        min-height: 390px;
        padding: 25px;
        border-radius: 24px;
    }

    .tariff-plan::after {
        left: 25px;
        right: 25px;
    }

    .tariff-price strong {
        font-size: 74px;
    }

    .tariff-note {
        margin-bottom: 78px;
    }

    .legal-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
