/* ============================================================
   JSV TECHGROUP
   TERMS & CONDITIONS PAGE
   File: terms.css
   ============================================================ */

:root {
    --terms-bg: #f5f8fc;
    --terms-white: #ffffff;
    --terms-dark: #07111f;
    --terms-dark-2: #0d1b2d;
    --terms-text: #243247;
    --terms-muted: #68778d;
    --terms-border: #dfe7f0;
    --terms-blue: #00b4d8;
    --terms-blue-2: #00d4ff;
    --terms-purple: #7a5cff;
    --terms-green: #20c997;
    --terms-orange: #ffb020;
    --terms-shadow: 0 18px 50px rgba(7, 17, 31, 0.08);
}


/* ============================================================
   RESET
   ============================================================ */

.terms-page {
    background: var(--terms-bg);
    color: var(--terms-text);
    overflow-x: hidden;
}

.terms-page *,
.terms-page *::before,
.terms-page *::after {
    box-sizing: border-box;
}


/* ============================================================
   SCROLL PROGRESS
   ============================================================ */

.terms-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    z-index: 99999;
    background: linear-gradient(
            90deg,
            var(--terms-blue),
            var(--terms-purple)
    );
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.45);
}


/* ============================================================
   CONTAINER
   ============================================================ */

.terms-container {
    width: min(1400px, 92%);
    margin: 0 auto;
}


/* ============================================================
   HERO
   ============================================================ */

.terms-hero {
    position: relative;
    min-height: 590px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
            radial-gradient(
                    circle at 15% 20%,
                    rgba(0, 180, 216, 0.15),
                    transparent 28%
            ),
            radial-gradient(
                    circle at 85% 75%,
                    rgba(122, 92, 255, 0.18),
                    transparent 32%
            ),
            linear-gradient(
                    135deg,
                    #06101d 0%,
                    #0a1829 55%,
                    #101a31 100%
            );
    color: #fff;
}

.terms-hero-content {
    position: relative;
    z-index: 5;
    width: min(1100px, 92%);
    margin: 0 auto;
    padding: 120px 0 90px;
}

.terms-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 15px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    background: rgba(255,255,255,0.055);
    backdrop-filter: blur(10px);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
}

.terms-label-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--terms-blue-2);
    box-shadow:
            0 0 0 5px rgba(0,212,255,0.10),
            0 0 20px rgba(0,212,255,0.7);
    animation: termsPulse 2s infinite;
}

.terms-hero h1 {
    margin: 28px 0 20px;
    max-width: 850px;
    font-size: clamp(3rem, 7vw, 6.8rem);
    line-height: 0.94;
    letter-spacing: -0.065em;
    font-weight: 850;
}

.terms-hero h1 span {
    background: linear-gradient(
            90deg,
            var(--terms-blue-2),
            #9d8aff
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.terms-hero-description {
    max-width: 780px;
    margin: 0;
    color: rgba(255,255,255,0.70);
    font-size: clamp(1rem, 1.6vw, 1.22rem);
    line-height: 1.8;
}

.terms-meta {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 42px;
}

.terms-meta-item {
    display: flex;
    align-items: center;
    gap: 13px;
}

.meta-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    color: var(--terms-blue-2);
    font-size: 1.15rem;
}

.terms-meta-item small {
    display: block;
    margin-bottom: 4px;
    color: rgba(255,255,255,0.45);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.terms-meta-item strong {
    color: #fff;
    font-size: 0.9rem;
}

.terms-meta-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.13);
}


/* ============================================================
   HERO GRID
   ============================================================ */

.terms-hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
            linear-gradient(
                    rgba(255,255,255,0.08) 1px,
                    transparent 1px
            ),
            linear-gradient(
                    90deg,
                    rgba(255,255,255,0.08) 1px,
                    transparent 1px
            );
    background-size: 55px 55px;
    mask-image: linear-gradient(
            to right,
            black,
            transparent 85%
    );
    animation: termsGridMove 18s linear infinite;
}


/* ============================================================
   ORBITS
   ============================================================ */

.terms-orbit {
    position: absolute;
    border: 1px solid rgba(0,212,255,0.16);
    border-radius: 50%;
    pointer-events: none;
}

.terms-orbit-one {
    width: 650px;
    height: 650px;
    right: -240px;
    top: -160px;
    animation: orbitRotate 24s linear infinite;
}

.terms-orbit-two {
    width: 430px;
    height: 430px;
    right: -120px;
    top: -50px;
    border-color: rgba(122,92,255,0.18);
    animation: orbitRotateReverse 18s linear infinite;
}


/* ============================================================
   FLOATING SHAPES
   ============================================================ */

.terms-floating-shape {
    position: absolute;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.025);
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.shape-one {
    width: 80px;
    height: 80px;
    right: 17%;
    top: 23%;
    transform: rotate(28deg);
    animation: floatingShape 7s ease-in-out infinite;
}

.shape-two {
    width: 42px;
    height: 42px;
    right: 8%;
    bottom: 20%;
    border-radius: 50%;
    animation: floatingShape 5s ease-in-out infinite reverse;
}

.shape-three {
    width: 120px;
    height: 120px;
    right: 28%;
    bottom: -40px;
    transform: rotate(45deg);
    animation: floatingShape 9s ease-in-out infinite;
}


/* ============================================================
   SUMMARY
   ============================================================ */

.terms-summary-section {
    position: relative;
    z-index: 2;
    margin-top: -60px;
}

.terms-summary {
    display: grid;
    grid-template-columns: 75px 1fr;
    gap: 25px;
    align-items: center;
    padding: 34px 38px;
    border: 1px solid var(--terms-border);
    border-radius: 22px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 25px 70px rgba(7,17,31,0.11);
}

.summary-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background:
            linear-gradient(
                    135deg,
                    var(--terms-blue),
                    var(--terms-purple)
            );
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(0,180,216,0.2);
}

.summary-kicker,
.section-kicker,
.cta-kicker {
    display: block;
    margin-bottom: 9px;
    color: var(--terms-blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.summary-content h2 {
    margin: 0 0 9px;
    color: var(--terms-dark);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.summary-content p {
    max-width: 900px;
    margin: 0;
    color: var(--terms-muted);
    line-height: 1.8;
}


/* ============================================================
   MAIN LAYOUT
   ============================================================ */

.terms-main {
    padding: 90px 0 110px;
}

.terms-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 70px;
    align-items: start;
}


/* ============================================================
   SIDEBAR
   ============================================================ */

.terms-sidebar {
    position: sticky;
    top: 110px;
}

.terms-sidebar-inner {
    padding: 25px 18px;
    border: 1px solid var(--terms-border);
    border-radius: 20px;
    background: rgba(255,255,255,0.75);
    box-shadow: 0 12px 40px rgba(7,17,31,0.045);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px 17px;
    margin-bottom: 7px;
    border-bottom: 1px solid var(--terms-border);
    color: var(--terms-dark);
    font-size: 0.83rem;
    font-weight: 800;
}

.sidebar-title span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--terms-blue);
    box-shadow: 0 0 12px rgba(0,180,216,0.6);
}

.terms-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.terms-nav a {
    position: relative;
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--terms-muted);
    text-decoration: none;
    font-size: 0.78rem;
    line-height: 1.35;
    transition:
            color 0.25s ease,
            background 0.25s ease,
            transform 0.25s ease;
}

.terms-nav a:hover {
    color: var(--terms-dark);
    background: #edf7fa;
    transform: translateX(3px);
}

.terms-nav a.active {
    color: var(--terms-blue);
    background: rgba(0,180,216,0.08);
    font-weight: 700;
}

.terms-nav a.active::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 7px;
    bottom: 7px;
    width: 3px;
    border-radius: 5px;
    background: var(--terms-blue);
}


/* ============================================================
   CONTENT
   ============================================================ */

.terms-content {
    min-width: 0;
}

.terms-section {
    position: relative;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 25px;
    padding: 0 0 70px;
    margin-bottom: 65px;
    border-bottom: 1px solid var(--terms-border);
}

.terms-section:last-child {
    border-bottom: 0;
}

.section-number {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid #cfe1eb;
    border-radius: 14px;
    background: linear-gradient(
            135deg,
            #ffffff,
            #edf8fb
    );
    color: var(--terms-blue);
    font-size: 0.72rem;
    font-weight: 850;
    box-shadow: 0 10px 25px rgba(0,180,216,0.08);
}

.section-body {
    min-width: 0;
}

.section-body h2 {
    margin: 0 0 21px;
    color: var(--terms-dark);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.section-body h3 {
    margin: 30px 0 12px;
    color: var(--terms-dark);
    font-size: 1.08rem;
}

.section-body p {
    max-width: 900px;
    margin: 0 0 17px;
    color: var(--terms-muted);
    font-size: 0.98rem;
    line-height: 1.9;
}

.section-body p:last-child {
    margin-bottom: 0;
}


/* ============================================================
   LIST
   ============================================================ */

.terms-list {
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.terms-list li {
    position: relative;
    padding: 9px 0 9px 28px;
    color: var(--terms-muted);
    line-height: 1.7;
}

.terms-list li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 17px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--terms-blue);
    box-shadow: 0 0 0 5px rgba(0,180,216,0.08);
}


/* ============================================================
   NOTE / WARNING / SUCCESS
   ============================================================ */

.terms-note,
.terms-warning,
.terms-success {
    display: flex;
    gap: 15px;
    margin-top: 28px;
    padding: 19px 21px;
    border-radius: 15px;
    line-height: 1.7;
}

.terms-note {
    border: 1px solid #ccebf2;
    background: #effbfe;
    color: #486475;
}

.terms-warning {
    border: 1px solid #f1dfb6;
    background: #fffaf0;
    color: #725b2c;
}

.terms-success {
    border: 1px solid #ccefe2;
    background: #f1fcf7;
    color: #3e695a;
}

.terms-note strong,
.terms-warning strong,
.terms-success strong {
    color: var(--terms-dark);
}

.warning-icon,
.success-icon {
    flex: 0 0 31px;
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-weight: 800;
}

.warning-icon {
    background: #fff0c9;
    color: #b17b00;
}

.success-icon {
    background: #d9f8ea;
    color: #16946b;
}


/* ============================================================
   FEATURE GRID
   ============================================================ */

.terms-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.terms-feature {
    position: relative;
    padding: 25px;
    overflow: hidden;
    border: 1px solid var(--terms-border);
    border-radius: 18px;
    background: #fff;
    transition:
            transform 0.3s ease,
            box-shadow 0.3s ease,
            border-color 0.3s ease;
}

.terms-feature:hover {
    transform: translateY(-7px);
    border-color: rgba(0,180,216,0.35);
    box-shadow: var(--terms-shadow);
}

.terms-feature > span {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--terms-blue);
    font-size: 0.7rem;
    font-weight: 850;
}

.terms-feature h3 {
    margin: 0 0 9px;
}

.terms-feature p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.7;
}


/* ============================================================
   PROJECT TIMELINE
   ============================================================ */

.project-timeline {
    position: relative;
    margin-top: 38px;
    padding-left: 12px;
}

.project-timeline::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 15px;
    bottom: 15px;
    width: 1px;
    background:
            linear-gradient(
                    to bottom,
                    var(--terms-blue),
                    var(--terms-purple),
                    transparent
            );
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: relative;
    z-index: 2;
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 1px solid #bfe4ed;
    border-radius: 50%;
    background: #fff;
    color: var(--terms-blue);
    font-size: 0.65rem;
    font-weight: 800;
    box-shadow: 0 0 0 6px var(--terms-bg);
}

.timeline-item h3 {
    margin: 2px 0 6px;
}

.timeline-item p {
    margin: 0;
    font-size: 0.9rem;
}


/* ============================================================
   PAYMENT CARD
   ============================================================ */

.payment-card {
    margin: 30px 0;
    padding: 25px;
    border: 1px solid #d9e7ee;
    border-radius: 22px;
    background:
            linear-gradient(
                    135deg,
                    #ffffff,
                    #f2fbfd
            );
    box-shadow: 0 15px 40px rgba(0,180,216,0.07);
}

.payment-main {
    display: flex;
    align-items: center;
    gap: 25px;
}

.payment-percentage {
    flex: 0 0 105px;
    font-size: 3rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.07em;
    color: var(--terms-blue);
}

.payment-percentage span {
    font-size: 1.4rem;
}

.payment-main h3 {
    margin: 0 0 5px;
}

.payment-main p {
    margin: 0;
}

.payment-divider {
    height: 1px;
    margin: 24px 0;
    background: var(--terms-border);
}


/* ============================================================
   SOFTWARE LICENCE
   ============================================================ */

.software-license-section {
    padding: 45px 30px 70px;
    margin-left: -30px;
    margin-right: -30px;
    border-radius: 28px;
    background:
            radial-gradient(
                    circle at 100% 0%,
                    rgba(122,92,255,0.07),
                    transparent 35%
            ),
            #fff;
    border: 1px solid #e1e7ef;
    box-shadow: 0 20px 65px rgba(7,17,31,0.055);
}

.license-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
    margin-top: 30px;
}

.license-card {
    padding: 25px;
    border: 1px solid var(--terms-border);
    border-radius: 18px;
    background: #fafcff;
}

.license-card-icon {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    margin-bottom: 17px;
    border-radius: 10px;
    background: #edf8fb;
    color: var(--terms-blue);
    font-weight: 900;
}

.license-card h3 {
    margin: 0 0 14px;
}

.license-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.license-card li {
    position: relative;
    padding: 6px 0 6px 20px;
    color: var(--terms-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.license-card li::before {
    content: "•";
    position: absolute;
    left: 3px;
    color: var(--terms-blue);
}


/* ============================================================
   OWNERSHIP DIAGRAM
   ============================================================ */

.ownership-diagram {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: center;
    gap: 15px;
    margin-top: 32px;
}

.ownership-diagram > div:not(.ownership-arrow) {
    padding: 25px;
    border: 1px solid var(--terms-border);
    border-radius: 18px;
    background: #fff;
}

.ownership-diagram span {
    display: block;
    margin-bottom: 7px;
    color: var(--terms-blue);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.ownership-diagram strong {
    display: block;
    margin-bottom: 8px;
    color: var(--terms-dark);
}

.ownership-diagram small {
    display: block;
    color: var(--terms-muted);
    line-height: 1.6;
}

.ownership-arrow {
    text-align: center;
    color: var(--terms-purple);
    font-size: 2rem;
    font-weight: 900;
}


/* ============================================================
   THIRD PARTY
   ============================================================ */

.third-party-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 22px 0 28px;
}

.third-party-grid span {
    padding: 13px 10px;
    border: 1px solid var(--terms-border);
    border-radius: 11px;
    background: #fff;
    color: var(--terms-muted);
    font-size: 0.76rem;
    text-align: center;
}


/* ============================================================
   SUPPORT
   ============================================================ */

.support-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    margin-top: 25px;
}

.support-cards > div {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 20px;
    border: 1px solid var(--terms-border);
    border-radius: 15px;
    background: #fff;
}

.support-cards strong {
    color: var(--terms-dark);
}

.support-cards span {
    color: var(--terms-muted);
    font-size: 0.8rem;
    line-height: 1.6;
}


/* ============================================================
   LIABILITY
   ============================================================ */

.liability-box {
    display: flex;
    gap: 17px;
    align-items: flex-start;
    margin-top: 30px;
    padding: 23px;
    border: 1px solid #dcdff0;
    border-radius: 18px;
    background:
            linear-gradient(
                    135deg,
                    #fafaff,
                    #f5f5ff
            );
}

.liability-symbol {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    border-radius: 12px;
    background: #ece9ff;
    color: var(--terms-purple);
}

.liability-box strong {
    display: block;
    margin-bottom: 7px;
    color: var(--terms-dark);
}

.liability-box p {
    margin: 0;
}


/* ============================================================
   INLINE LINK
   ============================================================ */

.terms-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    color: var(--terms-blue);
    text-decoration: none;
    font-weight: 800;
}

.terms-inline-link span {
    transition: transform 0.25s ease;
}

.terms-inline-link:hover span {
    transform: translateX(5px);
}


/* ============================================================
   CONTACT
   ============================================================ */

.terms-contact-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 19px;
    border: 1px solid var(--terms-border);
    border-radius: 15px;
    background: #fff;
}

.contact-item-icon {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    flex: 0 0 35px;
    border-radius: 10px;
    background: #edf8fb;
    color: var(--terms-blue);
    font-weight: 800;
}

.contact-item small {
    display: block;
    margin-bottom: 4px;
    color: var(--terms-muted);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-item a,
.contact-item strong {
    color: var(--terms-dark);
    font-size: 0.78rem;
    word-break: break-word;
}

.contact-item a {
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--terms-blue);
}

.terms-final-note {
    margin-top: 30px;
    padding: 23px;
    border-radius: 17px;
    background: #f0f4f8;
}

.terms-final-note strong {
    color: var(--terms-dark);
}

.terms-final-note p {
    margin-top: 8px;
    font-size: 0.84rem;
}


/* ============================================================
   BOTTOM CTA
   ============================================================ */

.terms-bottom-cta {
    position: relative;
    overflow: hidden;
    padding: 110px 0;
    background:
            radial-gradient(
                    circle at 20% 50%,
                    rgba(0,212,255,0.16),
                    transparent 32%
            ),
            radial-gradient(
                    circle at 80% 50%,
                    rgba(122,92,255,0.17),
                    transparent 32%
            ),
            var(--terms-dark);
    color: #fff;
}

.terms-cta-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: auto;
    text-align: center;
}

.cta-kicker {
    color: var(--terms-blue-2);
}

.terms-cta-content h2 {
    margin: 0 auto 18px;
    font-size: clamp(2.3rem, 5vw, 4.7rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.terms-cta-content h2 span {
    background: linear-gradient(
            90deg,
            var(--terms-blue-2),
            #a28fff
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.terms-cta-content p {
    max-width: 690px;
    margin: 0 auto;
    color: rgba(255,255,255,0.62);
    line-height: 1.8;
}

.terms-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding: 15px 22px;
    border-radius: 12px;
    background: linear-gradient(
            90deg,
            var(--terms-blue),
            var(--terms-purple)
    );
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 14px 35px rgba(0,180,216,0.18);
    transition:
            transform 0.3s ease,
            box-shadow 0.3s ease;
}

.terms-cta-button span {
    font-size: 1.2rem;
    transition: transform 0.25s ease;
}

.terms-cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0,180,216,0.28);
}

.terms-cta-button:hover span {
    transform: translateX(5px);
}


/* ============================================================
   BACK TO TOP
   ============================================================ */

.terms-back-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 999;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(0,180,216,0.2);
    border-radius: 50%;
    background: rgba(7,17,31,0.9);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s ease;
}

.terms-back-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.terms-back-top:hover {
    background: var(--terms-blue);
}


/* ============================================================
   REVEAL ANIMATION
============================================================ */

.reveal-terms {
    opacity: 0;
    transform: translateY(35px);
    transition:
            opacity 0.75s ease,
            transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-terms.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   ANIMATIONS
============================================================ */

@keyframes termsPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.75;
    }

    50% {
        transform: scale(1.35);
        opacity: 1;
    }
}

@keyframes termsGridMove {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(55px, 55px);
    }
}

@keyframes orbitRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes orbitRotateReverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes floatingShape {
    0%, 100% {
        transform: translateY(0) rotate(25deg);
    }

    50% {
        transform: translateY(-22px) rotate(45deg);
    }
}


/* ============================================================
   LARGE LAPTOP / DESKTOP
============================================================ */

@media (min-width: 1600px) {

    .terms-container {
        width: min(1500px, 90%);
    }

    .terms-hero {
        min-height: 650px;
    }

    .terms-hero-content {
        width: min(1250px, 90%);
    }

    .terms-section {
        padding-bottom: 85px;
        margin-bottom: 80px;
    }

    .section-body p {
        font-size: 1.02rem;
    }
}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 1050px) {

    .terms-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 40px;
    }

    .terms-nav a {
        font-size: 0.73rem;
    }

    .terms-feature-grid {
        grid-template-columns: 1fr;
    }

    .third-party-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .support-cards {
        grid-template-columns: 1fr;
    }

    .terms-contact-card {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   TABLET / SMALL LAPTOP
============================================================ */

@media (max-width: 820px) {

    .terms-hero {
        min-height: 540px;
    }

    .terms-hero-content {
        padding-top: 100px;
    }

    .terms-layout {
        display: block;
    }

    .terms-sidebar {
        position: relative;
        top: auto;
        margin-bottom: 45px;
    }

    .terms-sidebar-inner {
        padding: 18px;
    }

    .terms-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .terms-summary {
        grid-template-columns: 55px 1fr;
        padding: 28px;
    }

    .terms-section {
        grid-template-columns: 50px minmax(0,1fr);
        gap: 18px;
    }

    .software-license-section {
        margin-left: 0;
        margin-right: 0;
    }

    .license-grid {
        grid-template-columns: 1fr;
    }

    .ownership-diagram {
        grid-template-columns: 1fr;
    }

    .ownership-arrow {
        transform: rotate(90deg);
    }
}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 600px) {

    .terms-container {
        width: 92%;
    }

    .terms-hero {
        min-height: 520px;
    }

    .terms-hero-content {
        width: 92%;
        padding: 100px 0 70px;
    }

    .terms-hero h1 {
        font-size: clamp(2.7rem, 15vw, 4.4rem);
    }

    .terms-hero-description {
        font-size: 0.92rem;
        line-height: 1.7;
    }

    .terms-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .terms-meta-divider {
        display: none;
    }

    .terms-summary-section {
        margin-top: -40px;
    }

    .terms-summary {
        grid-template-columns: 1fr;
        gap: 17px;
        padding: 24px;
        border-radius: 18px;
    }

    .summary-icon {
        width: 48px;
        height: 48px;
    }

    .terms-main {
        padding-top: 65px;
    }

    .terms-nav {
        grid-template-columns: 1fr;
    }

    .terms-section {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-bottom: 50px;
        margin-bottom: 50px;
    }

    .section-number {
        width: 42px;
        height: 42px;
    }

    .section-body h2 {
        font-size: 1.8rem;
    }

    .section-body p {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    .terms-feature-grid {
        gap: 12px;
    }

    .terms-feature {
        padding: 20px;
    }

    .payment-card {
        padding: 20px;
    }

    .payment-main {
        align-items: flex-start;
        gap: 16px;
    }

    .payment-percentage {
        flex-basis: 80px;
        font-size: 2.4rem;
    }

    .project-timeline {
        padding-left: 0;
    }

    .timeline-item {
        grid-template-columns: 43px 1fr;
        gap: 12px;
    }

    .project-timeline::before {
        left: 15px;
    }

    .timeline-dot {
        width: 30px;
        height: 30px;
    }

    .third-party-grid {
        grid-template-columns: 1fr 1fr;
    }

    .terms-contact-card {
        grid-template-columns: 1fr;
    }

    .terms-final-note {
        padding: 18px;
    }

    .terms-bottom-cta {
        padding: 80px 0;
    }

    .terms-cta-content h2 {
        font-size: 2.6rem;
    }

    .terms-back-top {
        right: 16px;
        bottom: 16px;
    }

    .terms-orbit-one {
        width: 400px;
        height: 400px;
        right: -250px;
    }

    .terms-orbit-two {
        width: 280px;
        height: 280px;
        right: -170px;
    }

    .terms-floating-shape {
        opacity: 0.55;
    }
}


/* ============================================================
   VERY SMALL MOBILE
============================================================ */

@media (max-width: 380px) {

    .terms-hero h1 {
        font-size: 2.6rem;
    }

    .third-party-grid {
        grid-template-columns: 1fr;
    }

    .payment-main {
        flex-direction: column;
    }

    .terms-meta-item {
        align-items: flex-start;
    }
}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    .terms-page *,
    .terms-page *::before,
    .terms-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-terms {
        opacity: 1;
        transform: none;
    }
}