:root {
    /* Colors */
    --background-light: #f5f5f7;
    --background-secondary: #fbfbfd;
    --nav-background: rgba(255, 255, 255, 0.8);
    --nav-color: #1d1d1f;
    --nav-hover-color: #0066cc;
    --button-color: #0071e3;
    --button-hover-color: #0077ed;
    
    --text-color: #0066cc;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-tertiary: #424245;
    
    --card-background: rgba(255, 255, 255, 0.7);
    --card-background-solid: #ffffff;
    --border-color: rgba(0, 0, 0, 0.04);
    --divider-color: rgba(0, 0, 0, 0.08);
    
    /* Shadows */
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-strong: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-hero: 0 12px 40px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-xs: 12px;
    --font-sm: 14px;
    --font-base: 17px;
    --font-lg: 21px;
    --font-xl: 28px;
    --font-2xl: 32px;
    --font-3xl: 40px;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    
    /* Effects */
    --border-radius-sm: 8px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --backdrop-filter: blur(20px) saturate(180%);
    
    /* Fonts */
    --font-family-system: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    
    /* Layout */
    --sidebar-width: 240px;
    --content-max-width: 900px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-system);
    color: var(--text-primary);
    line-height: 1.47059;
    font-size: var(--font-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--background-light);
    letter-spacing: -0.022em;
}

/* Main Content Layout */
.main-content {
    padding-top: 140px;
    min-height: 100vh;
    background: var(--background-light);
}

.content-wrapper {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    position: relative;
}

/* Main Content Area - Centered */
.main-content-area {
    max-width: var(--content-max-width);
    margin: 0 auto;
    min-width: 0;
}

/* Sidebar Table of Contents - Fixed Right Side */
.sidebar-toc {
    width: var(--sidebar-width);
    position: fixed;
    top: 180px;
    left: calc(50vw + var(--content-max-width) / 2 + var(--spacing-xl));
    height: fit-content;
    z-index: 10;
}

.toc-container {
    background: transparent;
    border: none;
    padding: 0;
}

.toc-sidebar-title {
    font-family: var(--font-family-system);
    font-size: var(--font-xs);
    font-weight: 600;
    color: var(--text-primary);
    padding: 0 0 var(--spacing-md) 0;
    letter-spacing: -0.022em;
    line-height: 1.2;
    border-bottom: 1px solid var(--divider-color);
    margin-bottom: var(--spacing-md);
    background: transparent;
}

.toc-sidebar-nav {
    padding: 0;
    background: transparent;
    border-left: 1px solid var(--divider-color);
    position: relative;
}

.toc-sidebar-nav::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    height: 14px;
    width: 1px;
    background: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    z-index: 1;
}

.toc-sidebar-link {
    display: block;
    padding: var(--spacing-xs) 0 var(--spacing-xs) var(--spacing-lg);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    border-bottom: 1px solid transparent;
}

.toc-sidebar-link:hover {
    color: var(--text-primary);
}

.toc-sidebar-link.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* Remove the old static line - now using animated line */

.toc-icon {
    display: none;
}

.toc-text {
    font-size: var(--font-xs);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.4;
    display: block;
}

/* Hero Section - No Card */
.hero-section {
    text-align: center;
    padding: var(--spacing-2xl) 0;
    margin-bottom: var(--spacing-2xl);
}

.hero-title {
    font-family: var(--font-family-system);
    font-size: clamp(var(--font-xl), 5vw, var(--font-3xl));
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.003em;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
    line-height: 1.381;
}

.last-updated {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(0, 113, 227, 0.06);
    border: 1px solid rgba(0, 113, 227, 0.12);
    border-radius: 100px;
    color: var(--button-color);
    font-weight: 500;
    font-size: var(--font-sm);
    letter-spacing: -0.01em;
}

.last-updated i {
    font-size: 14px;
    opacity: 0.8;
}

/* Terms Content - No Cards */
.terms-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3xl);
}

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

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-family: var(--font-family-system);
    font-size: var(--font-xl);
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.003em;
    line-height: 1.2;
    color: var(--text-primary);
}

.section-content {
    padding: 0;
}

.section-content p {
    margin-bottom: var(--spacing-lg);
    line-height: 1.47059;
    color: var(--text-primary);
    font-size: var(--font-base);
    letter-spacing: -0.022em;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* Subsections */
.subsection {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--divider-color);
}

.subsection:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.subsection-title {
    font-family: var(--font-family-system);
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.022em;
    line-height: 1.2;
}

.important-notice, .liability-warning, .data-protection-info, .pricing-info, .contact-info {
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    margin: var(--spacing-lg) 0;
    border: 1px solid;
    background: transparent;
    position: relative;
}

.important-notice {
    border-color: rgba(255, 149, 0, 0.3);
    background: rgba(255, 149, 0, 0.04);
}

.liability-warning {
    border-color: rgba(255, 59, 48, 0.3);
    background: rgba(255, 59, 48, 0.04);
}

.data-protection-info {
    border-color: rgba(52, 199, 89, 0.3);
    background: rgba(52, 199, 89, 0.04);
}

.pricing-info {
    border-color: rgba(0, 113, 227, 0.3);
    background: rgba(0, 113, 227, 0.04);
}

.contact-info {
    border-color: rgba(142, 142, 147, 0.3);
    background: rgba(142, 142, 147, 0.04);
}

.notice-content h4, .warning-content h4, .data-content h4, .pricing-details h4, .contact-details h4 {
    font-family: var(--font-family-system);
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.022em;
    line-height: 1.2;
}

.important-notice .notice-content h4 {
    color: #bf5700;
}

.liability-warning .warning-content h4 {
    color: #d12b20;
}

.data-protection-info .data-content h4 {
    color: #047857;
}

.pricing-info .pricing-details h4 {
    color: #1e40af;
}

.contact-info .contact-details h4 {
    color: var(--text-primary);
}

.link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
}

.link:hover {
    color: var(--button-hover-color);
}

.link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--button-color);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.link:hover::after {
    width: 100%;
}

.closing-statement {
    padding: var(--spacing-3xl) 0;
    margin-top: var(--spacing-3xl);
    text-align: center;
}

.statement-content {
    margin-bottom: var(--spacing-xl);
}

.statement-content h3 {
    font-family: var(--font-family-system);
    font-size: var(--font-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    letter-spacing: -0.003em;
    line-height: 1.2;
}

.statement-content p {
    color: var(--text-secondary);
    line-height: 1.47059;
    letter-spacing: -0.022em;
}

.final-date {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(142, 142, 147, 0.08);
    border: 1px solid rgba(142, 142, 147, 0.16);
    border-radius: 100px;
    font-weight: 500;
    color: var(--text-tertiary);
    font-size: var(--font-sm);
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-wrapper {
        gap: var(--spacing-2xl);
    }
    
    .sidebar-toc {
        width: 200px;
    }
}

@media (max-width: 1024px) {
    .content-wrapper {
        flex-direction: column;
        gap: var(--spacing-xl);
    }
    
    .sidebar-toc {
        position: static;
        width: 100%;
        order: -1;
    }
    
    .toc-container {
        margin-bottom: var(--spacing-lg);
        padding: var(--spacing-lg);
        background: var(--card-background);
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius-lg);
        box-shadow: var(--shadow-medium);
    }
    
    .toc-sidebar-nav {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--spacing-xs);
        border-left: none;
        border-top: 1px solid var(--divider-color);
        padding-top: var(--spacing-md);
    }
    
    .toc-sidebar-link {
        padding: var(--spacing-sm);
        border-radius: var(--border-radius-sm);
        text-align: center;
        border-bottom: 1px solid var(--divider-color);
    }
    
    .toc-sidebar-nav::before {
        display: none;
    }
    
    .main-content-area {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 0 var(--spacing-md);
    }
    
    .hero-section {
        padding: var(--spacing-xl) 0;
    }
    
    .important-notice, .liability-warning, .data-protection-info, .pricing-info, .contact-info {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-lg);
    }
    
    .closing-statement {
        padding: var(--spacing-2xl) 0;
    }
    
    /* Hide ToC completely on mobile */
    .sidebar-toc {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding-top: 120px;
    }
    
    .hero-title {
        font-size: var(--font-xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-base);
    }
    
    .section-title {
        font-size: var(--font-lg);
    }
    
    .subsection-title {
        font-size: var(--font-base);
    }
    
    .toc-text {
        font-size: var(--font-xs);
    }
}

html {
    scroll-behavior: smooth;
}

.toc-sidebar-link:focus, .link:focus {
    outline: 2px solid var(--button-color);
    outline-offset: 2px;
    border-radius: var(--border-radius-sm);
}

@media print {
    .sidebar-toc {
        display: none;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    .hero-section, .terms-section {
        break-inside: avoid;
    }
    
    .terms-section {
        margin-bottom: var(--spacing-lg);
    }
}

::selection {
    background: rgba(0, 113, 227, 0.2);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(0, 113, 227, 0.2);
    color: var(--text-primary);
}

/* Remove old table-of-contents styles since we're using sidebar now */
.table-of-contents {
    display: none;
}

/* Hero Icon Styles */
.hero-icon {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.terms-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: var(--transition);
}

.terms-logo:hover {
    transform: scale(1.05);
}

/* PDF Download Section */
.pdf-download-section {
    margin-top: var(--spacing-3xl);
    margin-bottom: var(--spacing-3xl);
    padding: 0;
}

.download-container {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: var(--spacing-2xl);
    text-align: center;
    box-shadow: none;
}

.download-icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.document-icon {
    width: 48px;
    height: 48px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(199deg) brightness(98%) contrast(85%);
    opacity: 0.8;
}

.download-container h3 {
    font-family: var(--font-family-system);
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.022em;
    line-height: 1.2;
}

.download-description {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--spacing-xl);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.download-pdf-btn {
    background: rgba(0, 102, 204, 0.08);
    color: var(--text-color);
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family-system);
    font-size: var(--font-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    letter-spacing: -0.022em;
    min-width: auto;
    justify-content: center;
}

.download-pdf-btn:hover {
    background: rgba(0, 102, 204, 0.12);
    transform: none;
    box-shadow: none;
}

.download-pdf-btn:active {
    background: rgba(0, 102, 204, 0.16);
    transform: none;
    box-shadow: none;
}

.download-icon {
    width: 14px;
    height: 14px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(199deg) brightness(98%) contrast(85%);
    transition: var(--transition);
}

.download-pdf-btn:hover .download-icon {
    transform: none;
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
    .hero-icon {
        margin-bottom: var(--spacing-md);
    }
    
    .terms-logo {
        width: 60px;
        height: 60px;
    }
    
    .download-container {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
    
    .document-icon {
        width: 40px;
        height: 40px;
    }
    
    .download-container h3 {
        font-size: var(--font-base);
    }
    
    .download-pdf-btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-sm);
        min-width: auto;
    }
    
    .download-icon {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .terms-logo {
        width: 50px;
        height: 50px;
    }
    
    .download-container {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .document-icon {
        width: 36px;
        height: 36px;
    }
    
    .download-container h3 {
        font-size: var(--font-sm);
    }
    
    .download-description {
        font-size: var(--font-xs);
    }
    
    .download-pdf-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-xs);
        min-width: auto;
        gap: var(--spacing-xs);
    }
    
    .download-icon {
        width: 12px;
        height: 12px;
    }
}


