.terms-page {
    background-color: var(--color-background);
}

.terms-hero {
    background-color: var(--color-charcoal);
    color: var(--color-surface);
    padding: var(--space-16) 0 var(--space-12);
    text-align: center;
}

.terms-hero .breadcrumb {
    margin-bottom: var(--space-8);
}

.terms-hero .breadcrumb ol {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    list-style: none;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.terms-hero .breadcrumb span {
    color: var(--color-primary-light);
}

.terms-title {
    font-family: var(--font-serif);
    font-size: var(--text-4xl);
    color: var(--color-surface);
    margin-bottom: var(--space-4);
    letter-spacing: var(--tracking-wide);
}

.terms-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.terms-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-16);
    padding-top: var(--space-16);
    padding-bottom: var(--space-24);
}

.terms-sidebar {
    position: sticky;
    top: var(--space-8);
    height: fit-content;
}

.terms-nav {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.terms-nav h2 {
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
    color: var(--color-charcoal);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border-light);
}

.terms-nav ul {
    list-style: none;
}

.terms-nav li {
    margin-bottom: var(--space-2);
}

.terms-nav a {
    display: block;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-base), transform var(--transition-base);
    border-left: 2px solid transparent;
    padding-left: var(--space-3);
    margin-left: calc(var(--space-3) * -1);
}

.terms-nav a:hover,
.terms-nav a.active {
    color: var(--color-primary);
    border-left-color: var(--color-primary);
}

.terms-content {
    max-width: 75ch;
}

.terms-section {
    margin-bottom: var(--space-12);
    scroll-margin-top: var(--space-24);
}

.terms-section h2 {
    font-family: var(--font-serif);
    font-size: var(--text-2xl);
    color: var(--color-charcoal);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

.terms-section p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    text-align: justify;
}

.terms-section a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.terms-section a:hover {
    color: var(--color-primary-hover);
}

.terms-footer {
    margin-top: var(--space-16);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.terms-footer p {
    margin-bottom: var(--space-3);
}

.terms-footer a {
    color: var(--color-primary);
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .terms-container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .terms-sidebar {
        position: relative;
        top: 0;
        order: -1;
    }
    
    .terms-nav {
        max-height: 300px;
        overflow-y: auto;
    }
}

@media (max-width: 768px) {
    .terms-hero {
        padding: var(--space-12) 0 var(--space-8);
    }
    
    .terms-title {
        font-size: var(--text-3xl);
    }
    
    .terms-section h2 {
        font-size: var(--text-xl);
    }
}