/* ==============================
   TERMS PAGE
   ClearShine Auto Care
============================== */

.terms-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 74px;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 20%, rgba(216, 184, 106, 0.18), transparent 34%),
        linear-gradient(135deg, #05080b 0%, #11151b 52%, #05080b 100%);
}

.terms-hero::after {
    content: "";
    position: absolute;
    right: -160px;
    bottom: -180px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    border: 1px solid rgba(216, 184, 106, 0.18);
    background: rgba(216, 184, 106, 0.05);
}

.terms-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 980px;
}

.terms-label {
    margin: 0 0 18px;
    color: #d8b86a;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.22em;
}

.terms-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(52px, 7vw, 98px);
    font-weight: 900;
    line-height: 0.94;
    letter-spacing: -0.075em;
}

.terms-hero__lead {
    max-width: 780px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 21px;
    line-height: 1.55;
}

.terms-updated {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin: 32px 0 0;
    padding: 0 16px;
    border-radius: 999px;
    color: #11151b;
    background: linear-gradient(135deg, #c89b3c, #f0d486);
    font-size: 14px;
    font-weight: 900;
}

/* Page layout */

.terms-page {
    padding: 72px 0 96px;
    background: #f7f3ed;
}

.terms-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.terms-sidebar {
    position: sticky;
    top: calc(var(--header-height, 78px) + 24px);
    padding: 26px;
    border: 1px solid rgba(202, 168, 92, 0.24);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 44px rgba(17, 21, 27, 0.06);
}

.terms-sidebar h2 {
    margin: 0 0 18px;
    color: #11151b;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.terms-nav {
    display: grid;
    gap: 8px;
}

.terms-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #67615a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.terms-nav a:hover {
    color: #11151b;
    background: #f1eadf;
    transform: translateX(2px);
}

/* Content */

.terms-content {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.terms-card {
    position: relative;
    min-width: 0;
    padding: 36px 38px;
    border: 1px solid rgba(202, 168, 92, 0.24);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 44px rgba(17, 21, 27, 0.055);
    scroll-margin-top: calc(var(--header-height, 78px) + 28px);
}

.terms-card__number {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 50%;
    color: #11151b;
    background: linear-gradient(135deg, #c89b3c, #f0d486);
    font-size: 15px;
    font-weight: 900;
}

.terms-card h2 {
    margin: 0 0 18px;
    color: #11151b;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.terms-card p {
    margin: 0;
    color: #67615a;
    font-size: 17px;
    line-height: 1.74;
}

.terms-card p + p {
    margin-top: 18px;
}

.terms-card a {
    color: #a87924;
    font-weight: 900;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.terms-address {
    margin: 18px 0;
    padding: 18px 20px;
    border-left: 4px solid #caa85c;
    border-radius: 14px;
    color: #4f4a44;
    background: #f7f3ed;
    font-style: normal;
    line-height: 1.7;
}

.terms-address strong {
    color: #11151b;
}

/* Responsive */

@media (max-width: 1020px) {
    .terms-layout {
        grid-template-columns: 1fr;
    }

    .terms-sidebar {
        position: static;
    }

    .terms-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .terms-hero {
        padding: 68px 0 54px;
    }

    .terms-hero h1 {
        font-size: clamp(46px, 15vw, 72px);
        letter-spacing: -0.06em;
    }

    .terms-hero__lead {
        font-size: 18px;
    }

    .terms-page {
        padding: 46px 0 68px;
    }

    .terms-sidebar {
        padding: 22px;
        border-radius: 18px;
    }

    .terms-nav {
        grid-template-columns: 1fr;
    }

    .terms-card {
        padding: 28px 24px;
        border-radius: 18px;
    }

    .terms-card h2 {
        font-size: 30px;
    }

    .terms-card p {
        font-size: 16px;
    }

    .terms-card__number {
        width: 44px;
        height: 44px;
        margin-bottom: 18px;
    }
}

@media (max-width: 420px) {
    .terms-hero h1 {
        font-size: 42px;
    }

    .terms-card {
        padding: 24px 20px;
    }

    .terms-updated {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}