/* =========================================================
   SCAD TECHNOLOGIES - TERMS OF USE
   ========================================================= */

.terms-section {
    position: relative;
    min-height: 100vh;
    padding: 150px 20px 100px;

    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(229, 35, 41, 0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 10% 80%,
            rgba(255, 255, 255, 0.025),
            transparent 25%
        ),
        #0F172A;

    color: #ffffff;
    overflow: hidden;
}

/* =========================================================
   TECHNICAL GRID BACKGROUND
   ========================================================= */

.terms-section::before {
    content: "";
    position: absolute;
    inset: 0;

    pointer-events: none;
    opacity: 0.18;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size: 60px 60px;
}

/* =========================================================
   RED GLOW
   ========================================================= */

.terms-section::after {
    content: "";

    position: absolute;
    top: 120px;
    right: -120px;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background: rgba(229, 35, 41, 0.08);
    filter: blur(80px);

    pointer-events: none;
}

/* =========================================================
   TERMS CONTAINER
   ========================================================= */

.terms-container {
    position: relative;
    z-index: 2;

    width: min(1000px, 100%);
    margin: 0 auto;
}

/* =========================================================
   TERMS TITLE
   ========================================================= */

.terms-container h1 {
    position: relative;

    margin: 0 0 45px;
    padding-left: 22px;

    font-size: clamp(36px, 5vw, 58px);
    line-height: 1;
    font-weight: 700;

    letter-spacing: -0.04em;
    text-transform: uppercase;

    color: #ffffff;

    white-space: nowrap;

    /* Right side -> original position */
    animation: termsTitleIn 1.2s ease-out forwards;
}

/* =========================================================
   TITLE RED LINE
   ========================================================= */

.terms-container h1::before {
    content: "";

    position: absolute;
    left: 0;
    top: 5%;

    width: 4px;
    height: 90%;

    background: #E52329;
}

/* =========================================================
   TITLE ENTRANCE ANIMATION
   ========================================================= */

@keyframes termsTitleIn {

    from {
        transform: translateX(-100vw);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }

}

/* =========================================================
   LAST UPDATED
   ========================================================= */

.terms-updated {
    margin: 18px 0 90px 24px;

    color: #9CA3AF;

    font-size: 11px;
    letter-spacing: 0.08em;

    text-transform: uppercase;
    font-style: italic;
}

/* =========================================================
   TERM HEADINGS
   ========================================================= */

.terms-container h2 {
    position: relative;

    margin: 0 0 14px;
    padding-left: 20px;

    color: #ffffff;

    font-size: 19px;
    line-height: 1.4;

    font-weight: 700;
    letter-spacing: 0.01em;

    transition: color 0.3s ease;
}

/* Red vertical line */
.terms-container h2::before {
    content: "";

    position: absolute;
    left: 0;
    top: 3px;

    width: 3px;
    height: calc(100% - 6px);

    background: #E52329;

    transition: background 0.3s ease;
}

/* =========================================================
   TERM CONTENT
   ========================================================= */

.terms-container p {
    margin: 0 0 42px;
    padding: 0 0 34px 20px;

    color: #AEB8C7;

    font-size: 14px;
    line-height: 1.9;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    transition:
        color 0.3s ease,
        border-color 0.3s ease;
}

/* =========================================================
   HOVER EFFECT
   ========================================================= */

.terms-container h2:hover {
    color: #E52329;
}

.terms-container h2:hover::before {
    background: #ffffff;
}

/* =========================================================
   IMPORTANT TEXT
   ========================================================= */

.terms-container p strong {
    color: #ffffff;
    font-weight: 700;
}

/* =========================================================
   LAST SECTION
   ========================================================= */

.terms-container p:last-child {
    border-bottom: none;
}

/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .terms-section {
        padding: 120px 18px 70px;
    }

    .terms-container h1 {
        font-size: clamp(34px, 10vw, 48px);
        padding-left: 17px;

        margin-bottom: 40px;
    }

    .terms-container h1::before {
        width: 3px;
    }

    .terms-updated {
        margin-left: 19px;
        margin-bottom: 60px;
    }

    .terms-container h2 {
        font-size: 17px;
        padding-left: 16px;
    }

    .terms-container p {
        padding-left: 16px;

        margin-bottom: 34px;
        padding-bottom: 27px;

        font-size: 13px;
        line-height: 1.8;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .terms-section {
        padding: 105px 15px 55px;
    }

    .terms-container h1 {
        font-size: 34px;
        padding-left: 15px;

        margin-bottom: 35px;
    }

    .terms-container h1::before {
        width: 3px;
    }

    .terms-updated {
        margin-left: 18px;
        margin-bottom: 50px;

        font-size: 9px;
    }

    .terms-container h2 {
        font-size: 16px;
        padding-left: 14px;
    }

    .terms-container p {
        padding-left: 14px;

        font-size: 12px;
        line-height: 1.8;
    }
}