/* ============================================================
   RENTIT TERMS OF SERVICE PAGE
   Builds on landingpage/css/home.css primitives.
   All colours come from theme.css (--home-*).
   ============================================================ */

/* =====================================================
   RENTAL RULES CALLOUT
   ===================================================== */
.terms-callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 720px;
    margin-top: 28px;
    padding: 16px 18px;
    background: var(--home-surface);
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
}

.terms-callout svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    color: var(--home-ink);
}

.terms-callout p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--home-ink-soft);
}

.terms-callout strong {
    color: var(--home-ink);
}

.terms-callout a {
    color: var(--home-ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* =====================================================
   LAYOUT: sticky table of contents + reading column
   ===================================================== */
.terms-section {
    padding-top: 56px;
}

.terms-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 72px;
    align-items: start;
}

.terms-toc {
    position: sticky;
    top: 96px;
}

.terms-toc h2 {
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--home-ink-faint);
}

.terms-toc ol {
    list-style: none;
    counter-reset: toc;
    border-left: 1px solid var(--home-line);
}

.terms-toc li {
    counter-increment: toc;
}

.terms-toc a {
    display: flex;
    gap: 8px;
    margin-left: -1px;
    padding: 7px 0 7px 14px;
    font-size: 14px;
    line-height: 1.4;
    color: var(--home-ink-soft);
    border-left: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.terms-toc a::before {
    content: counter(toc) '.';
    min-width: 20px;
    color: var(--home-ink-faint);
    font-variant-numeric: tabular-nums;
}

.terms-toc a:hover {
    color: var(--home-ink);
}

.terms-toc a[aria-current="true"] {
    color: var(--home-ink);
    font-weight: 600;
    border-left-color: var(--accent);
}

/* =====================================================
   READING COLUMN
   ===================================================== */
.terms-body {
    max-width: 68ch;
}

.terms-body section {
    scroll-margin-top: 96px;
}

.terms-body section + section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--home-line);
}

.terms-body h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--home-ink);
}

.terms-body h2 span {
    color: var(--home-ink-faint);
    font-variant-numeric: tabular-nums;
}

.terms-body h3 {
    margin-top: 24px;
    font-size: 16px;
    font-weight: 700;
    color: var(--home-ink);
}

.terms-body p,
.terms-body li {
    font-size: 16px;
    line-height: 1.75;
    color: var(--home-ink-soft);
}

.terms-body h2 + p,
.terms-body h3 + p,
.terms-body h3 + ul {
    margin-top: 10px;
}

.terms-body p + p,
.terms-body ul + p,
.terms-body p + ul {
    margin-top: 14px;
}

.terms-body ul {
    padding-left: 0;
}

.terms-body ul li {
    position: relative;
    padding-left: 20px;
}

.terms-body ul li + li {
    margin-top: 4px;
}

.terms-body ul li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.75em;
    width: 6px;
    height: 6px;
    background: var(--home-line-strong);
    border-radius: 50%;
}

.terms-contact {
    margin-top: 16px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .terms-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .terms-toc {
        position: static;
        padding: 18px 20px;
        background: var(--home-surface);
        border-radius: 12px;
    }

    .terms-toc ol {
        columns: 2;
        column-gap: 24px;
        border-left: none;
    }

    .terms-toc a {
        padding-left: 0;
        border-left: none;
        break-inside: avoid;
    }
}

@media (max-width: 768px) {
    .terms-section {
        padding-top: 40px;
    }

    .terms-body section + section {
        margin-top: 36px;
        padding-top: 36px;
    }

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

    .terms-body p,
    .terms-body li {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .terms-toc ol {
        columns: 1;
    }
}
