.terms-hero {
    position: relative;
    min-height: 370px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    background: linear-gradient(90deg, rgba(20, 13, 29, .88), rgba(43, 25, 57, .75)), url('../images/banners/trams-condition-banner0.webp') center/cover;
}

.terms-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 30%, rgba(162, 130, 238, .28), transparent 31%);
}

.terms-hero .container { position: relative; z-index: 1; }

.terms-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .11);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.terms-hero h1 { color: #fff; font-size: clamp(2.35rem, 5vw, 4rem); margin: 18px 0 12px; }
.terms-hero p { max-width: 630px; margin: 0 auto; color: rgba(255,255,255,.82); }

.terms-shell { padding: 76px 0 96px; background: #f6f5fa; }
.terms-layout { display: grid; grid-template-columns: 255px minmax(0, 1fr); gap: 34px; align-items: start; }

.terms-nav {
    position: sticky;
    top: 24px;
    padding: 20px;
    border: 1px solid #e9e5ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(34, 24, 51, .05);
}

.terms-nav h2 { margin: 0 0 12px; color: #6c5a78; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; }
.terms-nav a { display: block; padding: 9px 10px; border-radius: 8px; color: #657080; font-size: .88rem; font-weight: 500; }
.terms-nav a:hover { color: var(--secondary-color); background: #f2eff8; }

.terms-content {
    padding: clamp(26px, 5vw, 54px);
    border: 1px solid #e9e5ef;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(34, 24, 51, .06);
}

.terms-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 40px;
    padding: 17px;
    border-left: 3px solid var(--primary-color);
    border-radius: 10px;
    background: #f4f0fb;
    color: #586273;
    font-size: .93rem;
    line-height: 1.65;
}

.terms-note i { margin-top: 4px; color: var(--secondary-color); }
.terms-section { scroll-margin-top: 32px; margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid #eceaf0; }
.terms-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.terms-section h2 { margin-bottom: 14px; color: var(--dark-color); font-size: clamp(1.35rem, 2.5vw, 1.7rem); }
.terms-section p, .terms-section li { color: #657080; line-height: 1.75; }
.terms-section p:last-child, .terms-section ul:last-child { margin-bottom: 0; }
.terms-section ul { margin-bottom: 0; padding-left: 20px; }
.terms-section li + li { margin-top: 7px; }
.terms-section a { color: var(--secondary-color); font-weight: 600; }

.terms-contact {
    padding: 22px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #5c3668, #7f5b91);
}
.terms-contact h3 { margin-bottom: 8px; color: #fff; font-size: 1.1rem; }
.terms-contact p { margin-bottom: 14px; color: rgba(255,255,255,.78); }
.terms-contact a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }

@media (max-width: 991px) {
    .terms-hero { min-height: 310px; }
    .terms-shell { padding: 55px 0 70px; }
    .terms-layout { display: block; }
    .terms-nav { position: static; margin-bottom: 22px; }
    .terms-nav a { display: inline-block; }
}

.footer-main { padding-top: 55px; }
