/* ===== TERMS PAGE SPECIFIC STYLES ===== */

.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue));
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(36px, 6vw, 56px);
    margin-bottom: 16px;
    letter-spacing: -.01em;
}

.page-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.terms-content {
    padding: 80px 0;
    background: var(--white);
}

.terms-container {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.terms-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    height: fit-content;
}

.sticky-nav {
    background: var(--gray-50);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sticky-nav li {
    margin-bottom: 12px;
}

.sticky-nav li:last-child {
    margin-bottom: 0;
}

.sticky-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-500);
    transition: var(--transition);
    display: block;
}

.sticky-nav a:hover,
.sticky-nav a.active {
    color: var(--blue);
    padding-left: 8px;
}

.terms-text {
    flex-grow: 1;
    max-width: 800px;
}

.terms-text h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    color: var(--blue-dark);
    margin-top: 48px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 12px;
    scroll-margin-top: 60px;
}

.terms-text h2:first-child {
    margin-top: 0;
}

.terms-text p {
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 24px;
}

.terms-text ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

.terms-text ul li {
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 12px;
    list-style-type: disc;
}

.terms-text a {
    color: var(--blue);
    font-weight: 500;
    transition: var(--transition);
}

.terms-text a:hover {
    color: var(--blue-dark);
    text-decoration: underline;
}

@media (max-width: 991px) {
    .terms-container {
        flex-direction: column;
    }

    .terms-sidebar {
        width: 100%;
        position: static;
        height: auto;
    }

    .sticky-nav {
        max-height: none;
        overflow-y: visible;
    }
}