:root {
    --primary-purple: #6346f3;
    --accent-light-purple: #f3effe;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8f9fd;
    --border-light: #f1f5f9;
}

body {
    background-color: var(--bg-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    margin: 0;
}

/* Header Banner Section */
.terms-header {
    background: linear-gradient(135deg, #050518 0%, #120e38 100%);
    color: #ffffff;
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header-content {
    max-width: 650px;
}

.breadcrumb {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.breadcrumb span {
    color: #ffffff;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: white;
}

.last-updated {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: white;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.calendar-icon {
    width: 16px;
    height: 16px;
}

.header-description {
    color: #cbd5e1;
    font-size: 0.925rem;
    line-height: 1.6;
    margin: 0;
}

.header-graphic img {
    max-width: 280px;
    height: auto;
}

/* Main Body Layout */
.terms-body {
    max-width: 1100px;
    margin: 2.5rem auto 3rem;
    padding: 0 1.5rem;
}

.body-container {
    display: flex;
    gap: 2rem;
}

/* Left Sidebar Navigation */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.25rem;
}

.toc-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #475569;
    font-size: 0.85rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.toc-list li.active a, 
.toc-list a:hover {
    background-color: var(--accent-light-purple);
    color: var(--primary-purple);
    font-weight: 600;
}

.important-card {
    background-color: var(--accent-light-purple);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.important-card .icon-wrapper {
    background: #ffffff;
    color: var(--primary-purple);
    border-radius: 8px;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.important-card .icon-wrapper svg {
    width: 18px;
    height: 18px;
}

.important-card h5 {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    color: var(--text-dark);
}

.important-card p {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

/* Content Panel */
.content-area {
    flex-grow: 1;
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.terms-section {
    display: flex;
    gap: 1.25rem;
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-light);
}

.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-light-purple);
    color: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-icon svg {
    width: 20px;
    height: 20px;
}

.section-details h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.section-details p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.section-details a {
    color: var(--primary-purple);
    text-decoration: none;
}

.section-details a:hover {
    text-decoration: underline;
}

.email-badge {
    background-color: #f3effe;
    color: var(--primary-purple) !important;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Footer Statement */
.terms-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    color: #64748b;
    font-size: 0.85rem;
    text-align: center;
}

.terms-footer-note svg {
    width: 16px;
    height: 16px;
    color: #22c55e;
    flex-shrink: 0;
}

/* Responsive Styles */
@media (max-width: 868px) {
    .body-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .header-graphic img {
        max-width: 180px;
    }
}