* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.legal-page,
body.site-page {
    margin: 0;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.legal-page {
    min-height: 100vh;
    padding: 34px 20px 64px;
    color: #25304a;
    background:
        radial-gradient(circle at 8% 8%, rgba(80, 110, 255, 0.18), transparent 28rem),
        radial-gradient(circle at 92% 22%, rgba(28, 200, 173, 0.14), transparent 24rem),
        linear-gradient(180deg, #eef1ff 0, #f7f8fc 22rem, #eef2f7 100%);
    line-height: 1.76;
}

.legal-page .page {
    width: min(1040px, 100%);
    margin: 0 auto;
    padding: 0;
    counter-reset: legal-section;
}

.legal-page .hero {
    position: relative;
    display: block;
    margin: 0 0 24px;
    padding: 52px 54px 46px;
    color: #f8faff;
    background:
        linear-gradient(130deg, rgba(15, 24, 54, 0.98), rgba(30, 44, 88, 0.96)),
        #101936;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0 28px 80px rgba(21, 31, 67, 0.26);
    overflow: hidden;
}

.legal-page .hero::before,
.legal-page .hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
}

.legal-page .hero::before {
    width: 300px;
    height: 300px;
    top: -185px;
    right: -80px;
    background: linear-gradient(140deg, #7c8dff, #29d9bd);
    opacity: 0.55;
}

.legal-page .hero::after {
    width: 190px;
    height: 190px;
    right: 105px;
    bottom: -145px;
    border: 28px solid rgba(255, 214, 102, 0.25);
}

.legal-page .eyebrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 0 0 20px;
    padding: 0 13px;
    color: #17213f;
    background: #ffd96a;
    border: 0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.legal-page h1 {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 0 16px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.legal-page .summary {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0;
    color: rgba(239, 244, 255, 0.78);
    font-size: 16px;
}

.legal-page .meta-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 34px 0 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.legal-page .meta-card {
    min-height: 86px;
    padding: 15px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    backdrop-filter: blur(8px);
}

.legal-page .meta-card:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.legal-page .meta-label {
    display: block;
    margin: 0 0 7px;
    color: rgba(222, 230, 255, 0.58);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-page .meta-value {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.36;
    overflow-wrap: anywhere;
}

.legal-page .section {
    position: relative;
    margin: 0 0 14px;
    padding: 30px 34px 30px 94px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(189, 199, 224, 0.62);
    border-radius: 22px;
    box-shadow: 0 12px 36px rgba(31, 43, 75, 0.07);
    counter-increment: legal-section;
}

.legal-page .section::before,
.legal-page .section:nth-of-type(3n + 1)::before,
.legal-page .section:nth-of-type(3n + 2)::before {
    content: counter(legal-section, decimal-leading-zero);
    position: absolute;
    top: 30px;
    left: 30px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(140deg, #536dfe, #7357d9);
    border-radius: 13px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 9px 18px rgba(83, 109, 254, 0.24);
}

.terms-page .section::before,
.terms-page .section:nth-of-type(3n + 1)::before,
.terms-page .section:nth-of-type(3n + 2)::before {
    background: linear-gradient(140deg, #0bb79d, #197db7);
    box-shadow: 0 9px 18px rgba(17, 152, 164, 0.22);
}

.legal-page h2 {
    margin: 0 0 12px;
    color: #17213e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    line-height: 1.25;
}

.legal-page p,
.legal-page li {
    color: #4f5c77;
}

.legal-page p {
    margin: 0 0 14px;
}

.legal-page p:last-child,
.legal-page ul:last-child {
    margin-bottom: 0;
}

.legal-page ul {
    margin: 0 0 15px;
    padding-left: 21px;
}

.legal-page li + li {
    margin-top: 8px;
}

.legal-page li::marker {
    color: #5a70ef;
}

.legal-page a {
    color: #3157c8;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(49, 87, 200, 0.24);
    overflow-wrap: anywhere;
}

.legal-page .note {
    margin: 18px 0;
    padding: 18px 20px;
    background: #edf2ff;
    border: 1px solid #cfdbff;
    border-left: 5px solid #5b73ef;
    border-radius: 15px;
}

.legal-page .contact-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 18px 0;
    padding: 1px;
    background: #dce3f2;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
}

.legal-page .contact-card p,
.legal-page .contact-card p:last-child {
    min-height: 72px;
    margin: 0;
    padding: 16px 18px;
    background: #f7f9ff;
    border: 0;
}

.legal-page .contact-card strong {
    display: block;
    margin-bottom: 4px;
    color: #273a7c;
}

.legal-page hr {
    height: 1px;
    margin: 24px 0 0;
    border: 0;
    background: #dce3f2;
}

body.site-page {
    min-height: 100vh;
    color: #dfe8ff;
    background: #070b17;
    line-height: 1.62;
}

.site-page a {
    color: inherit;
    text-decoration: none;
}

.site-page .wrap {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.site-page .topbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    background: rgba(7, 11, 23, 0.76);
    border-bottom: 1px solid rgba(142, 166, 224, 0.14);
    backdrop-filter: blur(18px);
}

.site-page .nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-page .brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.site-page .brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #07101d;
    background: linear-gradient(135deg, #65fbd2, #7b88ff);
    border-radius: 13px;
    box-shadow: 0 9px 26px rgba(101, 251, 210, 0.22);
}

.site-page .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #aebada;
    font-size: 14px;
    font-weight: 800;
}

.site-page .nav-links a:hover {
    color: #65fbd2;
}

.site-page .nav-button {
    min-height: 42px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    color: #07101d;
    background: #65fbd2;
    border-radius: 999px;
}

.site-page .hero {
    position: relative;
    min-height: 760px;
    padding: 150px 0 100px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 76% 24%, rgba(113, 95, 255, 0.42), transparent 24rem),
        radial-gradient(circle at 18% 70%, rgba(20, 220, 181, 0.28), transparent 28rem),
        linear-gradient(145deg, #070b17 0%, #0d1430 50%, #081320 100%);
    overflow: hidden;
}

.site-page .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(122, 143, 197, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 143, 197, 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.site-page .hero::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -260px;
    width: 560px;
    height: 560px;
    border: 80px solid rgba(101, 251, 210, 0.09);
    border-radius: 50%;
}

.site-page .hero-inner {
    position: relative;
    z-index: 1;
    padding: 0;
}

.site-page .kicker {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    margin: 0 0 24px;
    padding: 0 14px;
    color: #65fbd2;
    background: rgba(101, 251, 210, 0.08);
    border: 1px solid rgba(101, 251, 210, 0.26);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-page h1 {
    max-width: 880px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(58px, 10vw, 112px);
    font-weight: 950;
    line-height: 0.92;
    letter-spacing: -0.065em;
    background: linear-gradient(110deg, #ffffff 8%, #a9b9ff 48%, #65fbd2 92%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-page .hero-copy {
    max-width: 690px;
    margin: 28px 0 0;
    color: #aebada;
    font-size: 19px;
}

.site-page .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.site-page .button {
    min-height: 52px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
}

.site-page .button-primary {
    color: #07101d;
    background: #65fbd2;
    box-shadow: 0 14px 34px rgba(101, 251, 210, 0.18);
}

.site-page .button-ghost {
    color: #dfe8ff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(176, 193, 235, 0.22);
}

.site-page .summary-band {
    position: relative;
    z-index: 3;
    margin-top: -64px;
}

.site-page .summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(16, 24, 51, 0.92);
    border: 1px solid rgba(141, 163, 219, 0.18);
    border-radius: 22px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.site-page .summary-item {
    padding: 25px 27px;
    border-right: 1px solid rgba(141, 163, 219, 0.16);
}

.site-page .summary-item:last-child {
    border-right: 0;
}

.site-page .label {
    display: block;
    margin-bottom: 9px;
    color: #7585af;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.site-page .value {
    color: #f6f8ff;
    font-size: 20px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.site-page .section {
    padding: 92px 0 0;
}

.site-page .section-header {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.3fr);
    gap: 42px;
    align-items: end;
    margin-bottom: 30px;
}

.site-page h2 {
    margin: 0;
    color: #f5f7ff;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.site-page .section-note {
    margin: 0;
    color: #8491b5;
}

.site-page .product-panel,
.site-page .info-panel {
    background: #0f1730;
    border: 1px solid rgba(137, 160, 220, 0.17);
    border-radius: 22px;
    overflow: hidden;
}

.site-page .product-lead {
    padding: 38px 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
    gap: 34px;
    align-items: end;
    background: linear-gradient(135deg, rgba(116, 94, 255, 0.13), rgba(101, 251, 210, 0.06));
    border-bottom: 1px solid rgba(137, 160, 220, 0.16);
}

.site-page .product-lead p {
    margin: 0;
    color: #aab5d3;
    font-size: 17px;
}

.site-page .product-note {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
}

.site-page .metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(137, 160, 220, 0.15);
    border: 0;
    border-radius: 0;
    overflow: hidden;
}

.site-page .metric,
.site-page .metric:nth-child(2),
.site-page .metric:nth-child(3) {
    padding: 22px 24px;
    background: #0c1429;
}

.site-page .metric strong {
    display: block;
    color: #65fbd2;
    font-size: 20px;
}

.site-page .metric span {
    color: #7f8cad;
}

.site-page .info-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.site-page .info-title {
    padding: 21px 23px;
    color: #07101d;
    background: linear-gradient(110deg, #65fbd2, #9ba5ff);
    font-size: 18px;
    font-weight: 950;
}

.site-page .info-row {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 18px;
    padding: 17px 22px;
    border-top: 1px solid rgba(137, 160, 220, 0.13);
}

.site-page .info-row span {
    color: #7180aa;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-page .info-row strong,
.site-page .info-row a {
    color: #dce5ff;
    overflow-wrap: anywhere;
}

.site-page .legal-list {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.site-page .legal-link {
    padding: 18px 19px;
    display: block;
    background: #0b1329;
    border: 1px solid rgba(137, 160, 220, 0.15);
    border-left: 4px solid #65fbd2;
    border-radius: 14px;
}

.site-page .legal-link:nth-child(2) {
    border-left-color: #9b8cff;
}

.site-page .legal-link strong {
    display: block;
    margin-bottom: 6px;
    color: #f5f7ff;
}

.site-page .legal-link span {
    color: #7785a9;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.site-page .contact-panel {
    margin-top: 20px;
    padding: 28px 30px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    color: #07101d;
    background: linear-gradient(110deg, #65fbd2, #8d9bff);
    border-radius: 22px;
}

.site-page .contact-panel strong {
    display: block;
    font-size: 23px;
}

.site-page .contact-panel span {
    color: rgba(7, 16, 29, 0.7);
}

.site-page .contact-panel a {
    min-height: 48px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #eaf0ff;
    background: #0a1124;
    border-radius: 999px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.site-page .footer {
    padding: 54px 0 44px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #68769b;
    font-size: 14px;
}

.site-page .footer a {
    color: #65fbd2;
    font-weight: 900;
}

@media (max-width: 860px) {
    .legal-page .meta-grid,
    .site-page .summary-grid,
    .site-page .product-lead,
    .site-page .section-header,
    .site-page .info-layout,
    .site-page .contact-panel {
        grid-template-columns: 1fr;
    }

    .site-page .summary-item {
        border-right: 0;
        border-bottom: 1px solid rgba(141, 163, 219, 0.16);
    }

    .site-page .summary-item:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 640px) {
    body.legal-page {
        padding: 12px 10px 36px;
    }

    .legal-page .hero {
        padding: 34px 23px 28px;
        border-radius: 22px;
    }

    .legal-page .section {
        padding: 82px 22px 25px;
        border-radius: 18px;
    }

    .legal-page .section::before,
    .legal-page .section:nth-of-type(3n + 1)::before,
    .legal-page .section:nth-of-type(3n + 2)::before {
        top: 22px;
        left: 22px;
    }

    .legal-page .contact-card {
        grid-template-columns: 1fr;
    }

    .site-page .wrap {
        width: min(100% - 24px, 1160px);
    }

    .site-page .nav {
        min-height: 66px;
    }

    .site-page .nav-links a:not(.nav-button) {
        display: none;
    }

    .site-page .nav-button {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-page .hero {
        min-height: 690px;
        padding: 116px 0 90px;
    }

    .site-page .hero-copy {
        font-size: 16px;
    }

    .site-page .hero-actions {
        flex-direction: column;
    }

    .site-page .button {
        width: 100%;
    }

    .site-page .section {
        padding-top: 66px;
    }

    .site-page .product-lead {
        padding: 26px 22px;
    }

    .site-page .metric-row,
    .site-page .info-row {
        grid-template-columns: 1fr;
    }

    .site-page .footer {
        flex-direction: column;
    }
}
