/* ==========================================
   TERMS & CONDITIONS PAGE
========================================== */

/* HERO */

.tt-terms-hero {
    background: linear-gradient(
        135deg,
        var(--sand),
        var(--cream)
    );

    padding: clamp(80px, 10vw, 145px) 0
             clamp(64px, 7vw, 105px);

    overflow: hidden;
}

.tt-terms-hero-inner {
    max-width: 1050px;
}

.tt-terms-eyebrow,
.tt-terms-sidebar-label {
    font-family: var(--body);
    font-size: 0.76rem;
    letter-spacing: 0.19em;
    font-weight: 700;
    color: var(--terracotta);
    text-transform: uppercase;
}

.tt-terms-hero h1 {
    font-family: var(--heading);
    font-size: clamp(3rem, 6.7vw, 5.5rem);
    line-height: 1.13;
    color: var(--forest);
    margin: 16px 0 20px;
}

.tt-terms-hero h1 em {
    color: var(--terracotta);
    font-style: normal;
}

.tt-terms-wave {
    width: 85px;
    height: auto;
    margin: 0 0 22px;
}

.tt-terms-intro {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    max-width: 680px;
    color: var(--text-body);
    line-height: 1.85;
}

.tt-terms-date {
    margin-top: 26px;
    color: var(--sage);
    font-size: 0.9rem;
}

/* ==========================================
   PAGE LAYOUT
========================================== */

.tt-terms-layout {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    gap: clamp(28px, 5vw, 84px);

    padding-top: 72px;
    padding-bottom: 105px;

    align-items: start;
}

/* ==========================================
   SIDE NAVIGATION
========================================== */

.tt-terms-sidebar {
    position: sticky;
    top: 105px;

    border: 1px solid var(--border);
    border-radius: var(--radius-small);

    padding: 23px;
    background: var(--white);
}

.tt-terms-sidebar-label {
    margin-bottom: 15px;
}

.tt-terms-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tt-terms-sidebar nav a {
    font-size: 0.81rem;
    line-height: 1.4;
    padding: 9px 10px;
    border-radius: 6px;
    color: var(--forest);

    transition:
        background 0.2s,
        color 0.2s
}

.tt-terms-sidebar nav a:hover,
.tt-terms-sidebar nav a:focus-visible {
    background: var(--sand);
    color: var(--terracotta-dark);
}

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

.tt-terms-content {
    min-width: 0;
}

.tt-terms-note {
    background: var(--sand);
    border-left: 4px solid var(--terracotta);

    border-radius:
        0
        var(--radius-small)
        var(--radius-small)
        0;

    padding: 22px 26px;
    margin-bottom: 40px;
}

.tt-terms-note strong {
    color: var(--forest);
}

.tt-terms-note p {
    margin-top: 7px;
    color: var(--text-body);
    font-size: 0.93rem;
}

/* ==========================================
   INDIVIDUAL TERMS SECTIONS
========================================== */

.tt-terms-section {
    scroll-margin-top: 110px;
    padding: 30px 0 34px;
    border-bottom: 1px solid var(--border);
}

.tt-terms-section:first-of-type {
    padding-top: 0;
}

.tt-terms-section h2 {
    font-family: var(--heading);
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    line-height: 1.25;
    color: var(--forest);
    margin-bottom: 18px;

    display: flex;
    gap: 13px;
    align-items: baseline;
}

.tt-terms-section h2 span {
    font-family: var(--body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--terracotta);
    flex-shrink: 0;
}

.tt-terms-section ul {
    list-style: disc;
    padding-left: 23px;
    color: var(--text-body);
}

.tt-terms-section li {
    padding-left: 3px;
    margin-bottom: 12px;
    line-height: 1.8;
    font-size: 0.95rem;
}

.tt-terms-section li::marker {
    color: var(--terracotta);
}

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

.tt-terms-contact {
    margin-top: 50px;
    padding: clamp(24px, 4vw, 44px);
    border-radius: var(--radius);
    background: var(--sand);
}

.tt-terms-contact h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    color: var(--forest);
    margin: 10px 0;
}

.tt-terms-contact p:not(.tt-terms-eyebrow) {
    color: var(--text-body);
}

.tt-terms-button {
    display: inline-block;
    margin-top: 22px;
    background: var(--forest);
    color: #fff;

    padding: 12px 26px;
    border-radius: 8px;

    font-size: 0.92rem;
    font-weight: 600;

    transition: background 0.2s;
}

.tt-terms-button:hover,
.tt-terms-button:focus-visible {
    background: var(--sage);
    color: #fff;
}

.tt-terms-disclaimer {
    font-size: 0.78rem;
    color: var(--text-body);
    margin-top: 26px;
}

/* ==========================================
   SECTION 2 - SERVICES WE PROVIDE
=========================================== */
/* Main bullet list */
#section-2 .tt-services-terms-list {
    list-style: disc;
    padding-left: 23px;
    margin: 0;
}

/* Main list items */
#section-2 .tt-services-terms-list > li {
    padding-left: 8px;
    margin-bottom: 22px;
    line-height: 1.8;

}

/* Nested services list */
#section-2 .tt-services-terms-nested {
    padding-left: 50px;
    margin-top: 18px;
    line-height: 1.7;
}

/*Keep bullet colours consistent with site */
#section-2 li::marker {
    color: var(--terracotta);
}

/* ==========================================
   TABLETS
========================================== */

@media (max-width: 980px) {

    .tt-terms-layout {
        grid-template-columns: 1fr;
        padding-top: 45px;
    }

    .tt-terms-sidebar {
        position: static;
    }

    .tt-terms-sidebar nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 10px;
    }
}

/* ==========================================
   MOBILE PHONES
========================================== */

@media (max-width: 600px) {

    .tt-terms-hero {
        padding: 68px 0 56px;
    }

    .tt-terms-layout {
        padding-bottom: 70px;
    }

    .tt-terms-sidebar nav {
        grid-template-columns: 1fr;
    }

    .tt-terms-sidebar {
        padding: 18px;
    }

    .tt-terms-section {
        padding: 24px 0;
    }

    .tt-terms-section h2 {
        gap: 9px;
    }

    .tt-terms-note {
        padding: 18px;
    }
}

/* ==========================================
   ACCESSIBILITY
========================================== */

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

    .tt-terms-sidebar nav a,
    .tt-terms-button {
        transition: none;
    }
}
