/* =========================================================
   CLICKIN LABS — TERMS OF USE
   File: public_html/pages/terms-of-use/terms-of-use.css
   MATCHED EXACTLY TO REFUND & CANCELLATION POLICY DESIGN SYSTEM
========================================================= */

/* =========================================================
   PAGE FOUNDATION
========================================================= */

.terms-page-body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background: var(--color-bg);
    color: var(--color-body);
    font-family: var(--font-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.terms-page-body *,
.terms-page-body *::before,
.terms-page-body *::after {
    box-sizing: border-box;
}

/* =========================================================
   HERO
========================================================= */

.terms-hero {
    position: relative;
    width: 100%;
    min-height: 300px;

    display: flex;
    align-items: flex-end;

    padding: 150px var(--container-padding-x) 60px;

    background: var(--color-bg);

    border-bottom: 1px solid var(--color-border);

    overflow: hidden;
}

/* ---------------------------------------------------------
   HERO AMBIENT LIGHT — same design values
--------------------------------------------------------- */

.terms-hero::before {
    content: "";
    position: absolute;

    width: 420px;
    height: 420px;

    top: -220px;
    left: 50%;

    transform: translateX(-50%);

    background: radial-gradient(
        circle,
        rgba(124, 92, 255, 0.16) 0%,
        rgba(124, 92, 255, 0.07) 32%,
        transparent 70%
    );

    pointer-events: none;
}

/* ---------------------------------------------------------
   HERO GRID — same design values
--------------------------------------------------------- */

.terms-hero::after {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            var(--color-border) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            var(--color-border) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    opacity: 0.16;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 75%
    );

    -webkit-mask-image: linear-gradient(
        to bottom,
        black,
        transparent 75%
    );

    pointer-events: none;
}

.terms-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.terms-eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    color: var(--color-accent);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.terms-hero h1 {
    margin: 0;
    max-width: 850px;

    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;

    color: var(--color-heading) !important;
}

.terms-hero-description {
    max-width: 680px;
    margin: 14px 0 0;

    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;

    color: var(--color-muted);
}

.terms-updated {
    display: block;
    margin-top: 12px;

    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;

    color: var(--color-muted);
}

/* =========================================================
   TERMS CONTENT
========================================================= */

.terms-content-wrapper {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 64px var(--container-padding-x) 90px;
}

#terms-of-use {
    position: relative;

    width: 100%;
    max-width: 920px;
    margin: 0 auto;

    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;

    color: var(--color-body);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------------------------------------------------------
   CONTINUOUS CONNECTOR LINE — same design values
--------------------------------------------------------- */

#terms-of-use::before {
    content: "";

    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 19px;

    width: 1px;

    background: var(--color-border);
}

/* =========================================================
   TERMS SECTION — same section system
========================================================= */

.terms-section {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 20px;

    padding: 28px 0;

    border-bottom: 1px solid var(--color-border);
}

.terms-section:first-child {
    padding-top: 0;
}

.terms-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;

    border-bottom: 0;
}

/* ---------------------------------------------------------
   SECTION NUMBER
--------------------------------------------------------- */

.terms-num {
    position: relative;
    z-index: 1;

    padding-top: 2px;

    color: var(--color-muted);

    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 600;

    font-variant-numeric: tabular-nums;

    letter-spacing: 0.02em;
}

.terms-num::before {
    content: "";

    position: absolute;
    z-index: -1;
    top: -4px;
    bottom: -4px;
    left: -6px;
    right: 0;

    background: var(--color-bg);
}

.terms-body {
    min-width: 0;
}

/* =========================================================
   HEADINGS
========================================================= */

.terms-body h2 {
    margin: 0 0 10px;

    font-family: var(--font-primary);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;

    letter-spacing: -0.01em;

    color: var(--color-heading);
}

/* =========================================================
   PARAGRAPHS
========================================================= */

.terms-body p {
    margin: 0 0 14px;
    max-width: 60ch;

    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;

    color: var(--color-body);
}

.terms-body p:last-child {
    margin-bottom: 0;
}

.terms-body strong {
    color: var(--color-heading);
    font-weight: 600;
}

/* =========================================================
   LISTS
========================================================= */

.terms-body ol,
.terms-body ul {
    margin: 0 0 16px;
    padding-left: 24px;
    color: var(--color-body);
}

.terms-body li {
    margin: 0 0 9px;
    padding-left: 5px;

    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;

    color: var(--color-body);
}

.terms-body li:last-child {
    margin-bottom: 0;
}

/* =========================================================
   LINKS
========================================================= */

.terms-body a {
    color: var(--color-accent);

    font-weight: 500;

    text-decoration: none;

    border-bottom: 1px solid
        color-mix(in srgb, var(--color-accent) 35%, transparent);

    transition: color 0.2s ease, border-color 0.2s ease;
}

.terms-body a:hover {
    color: var(--color-accent-hover);
    border-bottom-color: var(--color-accent-hover);
}

.terms-body a:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* =========================================================
   CONTACT
========================================================= */

.terms-contact {
    padding-bottom: 0;
    border-bottom: 0;
}

/* =========================================================
   DARK THEME REFINEMENT — same design values
========================================================= */

html[data-theme="dark"] .terms-hero::before {
    display: none;
}

html[data-theme="dark"] .terms-hero::after {
    background-size: 28px 28px;
    opacity: 0.10;
}

/* =========================================================
   LIGHT THEME REFINEMENT — same design values
========================================================= */

html[data-theme="light"] .terms-hero::before {
    background: radial-gradient(
        circle,
        rgba(124, 92, 255, 0.10) 0%,
        rgba(124, 92, 255, 0.04) 35%,
        transparent 70%
    );
}

html[data-theme="light"] .terms-hero::after {
    opacity: 0.10;
}

/* =========================================================
   MOBILE — same design values
========================================================= */

@media (max-width: 768px) {

    .terms-hero {
        min-height: 260px;
        padding: 120px var(--container-padding-x-mobile) 48px;
    }

    .terms-hero::before {
        width: 300px;
        height: 300px;
        top: -150px;
    }

    .terms-hero::after {
        background-size: 55px 55px;
        opacity: 0.12;
    }

    .terms-eyebrow {
        margin-bottom: 12px;
        font-size: 10px;
    }

    .terms-hero h1 {
        max-width: 100%;
        font-size: 30px;
        line-height: 1.15;
        letter-spacing: -0.02em;
    }

    .terms-hero-description {
        margin-top: 12px;
        font-size: 11px;
        line-height: 1.6;
    }

    .terms-updated {
        margin-top: 10px;
        font-size: 11px;
    }

    .terms-content-wrapper {
        padding: 40px var(--container-padding-x-mobile) 64px;
    }

    #terms-of-use {
        max-width: 100%;
        font-size: 14px;
        line-height: 1.7;
    }

    #terms-of-use::before {
        left: 13px;
    }

    .terms-section {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 14px;

        padding: 22px 0;
    }

    .terms-num {
        font-size: 10px;
    }

    .terms-body h2 {
        margin-bottom: 10px;
        font-size: 16.5px;
        line-height: 1.4;
    }

    .terms-body p {
        font-size: 14px;
        line-height: 1.7;
    }

    .terms-body ol,
    .terms-body ul {
        padding-left: 21px;
    }

    .terms-body li {
        font-size: 14px;
        line-height: 1.7;
    }
}

/* =========================================================
   SMALL MOBILE — same design values
========================================================= */

@media (max-width: 480px) {

    .terms-hero {
        min-height: 240px;
        padding: 110px var(--container-padding-x-mobile) 42px;
    }

    .terms-eyebrow {
        font-size: 9px;
    }

    .terms-hero h1 {
        font-size: 28px;
    }

    .terms-hero-description {
        font-size: 10px;
    }

    .terms-content-wrapper {
        padding: 34px var(--container-padding-x-mobile) 52px;
    }

    .terms-body h2 {
        font-size: 16px;
    }

    .terms-body p,
    .terms-body li {
        font-size: 13.5px;
        line-height: 1.72;
    }

    .terms-body ol,
    .terms-body ul {
        padding-left: 20px;
    }
}

/* =========================================================
   REDUCED MOTION / FOCUS SAFETY — same design values
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .terms-body a {
        transition: none;
    }
}
