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

:root {
    --purple: #5E00FF;
    --blue: #0086FF;
    --bg-primary: #F2F2F2;
    --bg-secondary: #FFFFFF;
    --bg-card: #FAFAFA;
    --text-primary: #0A0A0A;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border: #E5E5E5;
    --border-light: #F0F0F0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Main Content */
.terms-main {
    padding-top: 5rem;
    min-height: 100vh;
}

.terms-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

/* Header */
.terms-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.terms-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--blue));
}

.terms-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.effective-date {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.intro-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Table of Contents */
.toc {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.toc h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.toc ol {
    list-style: none;
    counter-reset: toc-counter;
}

.toc li {
    counter-increment: toc-counter;
    margin-bottom: 0.75rem;
}

.toc li:before {
    content: counter(toc-counter) ".";
    font-weight: 600;
    color: var(--purple);
    margin-right: 0.5rem;
}

.toc a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.9375rem;
}

.toc a:hover {
    color: var(--purple);
}

/* Sections */
.terms-section {
    margin-bottom: 4rem;
}

.terms-section.animate {
    opacity: 0;
    transform: translateY(20px);
}

.terms-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.terms-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    scroll-margin-top: 6rem;
}

.section-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.section-content p {
    margin-bottom: 1.25rem;
}

/* Subsections */
.subsection {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.subsection h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Info Card */
.info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 0;
}

.info-row:not(:last-child) {
    border-bottom: 1px solid var(--border-light);
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.email-link {
    color: var(--purple);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.email-link:hover {
    opacity: 0.8;
}

/* Data Grid */
.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.data-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.data-card:hover {
    border-color: var(--purple);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(94, 0, 255, 0.1);
}

.data-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(94, 0, 255, 0.1), rgba(0, 134, 255, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--purple);
}

.data-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.data-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Feature List */
.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.feature-list li svg {
    flex-shrink: 0;
    color: var(--purple);
    margin-top: 0.25rem;
}

.feature-list li div {
    flex: 1;
}

/* Table */
.table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.data-table {
    width: 100%;
    background: var(--bg-secondary);
    border-collapse: collapse;
}

.data-table thead {
    background: var(--bg-card);
}

.data-table th {
    text-align: left;
    padding: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
}

.data-table td {
    padding: 1rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr:hover {
    background: var(--bg-card);
}

/* Note Card */
.note-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(94, 0, 255, 0.05), rgba(0, 134, 255, 0.05));
    border: 1px solid rgba(94, 0, 255, 0.2);
    border-radius: 12px;
    margin-top: 1.5rem;
}

.note-icon {
    flex-shrink: 0;
    color: var(--purple);
}

.note-card strong {
    color: var(--text-primary);
}

.note-card p {
    margin-bottom: 0;
}

/* Warning Card */
.warning-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 153, 0, 0.05);
    border: 1px solid rgba(255, 153, 0, 0.2);
    border-radius: 12px;
}

.warning-icon {
    flex-shrink: 0;
    color: #FF9900;
}

.warning-card strong {
    color: var(--text-primary);
}

.warning-card p {
    margin-bottom: 0;
}

/* Highlight Text */
.highlight-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--purple);
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(94, 0, 255, 0.05), rgba(0, 134, 255, 0.05));
    border-left: 3px solid var(--purple);
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

/* Rights Grid */
.rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.rights-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.rights-card:hover {
    border-color: var(--purple);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(94, 0, 255, 0.1);
}

.rights-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(94, 0, 255, 0.1), rgba(0, 134, 255, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--purple);
}

.rights-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.rights-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Contact Banner */
.contact-banner {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
}

.contact-banner p {
    margin-bottom: 0;
    font-weight: 500;
}

.contact-banner a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.contact-banner a:hover {
    opacity: 0.9;
}

/* Footer CTA */
.terms-footer-cta {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    margin-top: 4rem;
}

.terms-footer-cta h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.terms-footer-cta p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(94, 0, 255, 0.2);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(94, 0, 255, 0.3);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand .logo {
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--purple);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.footer-social {
    display: flex;
    gap: 2rem;
}

.footer-social a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: var(--purple);
}

/* Responsive Design */
@media (max-width: 768px) {
    .terms-container {
        padding: 2rem 1.5rem 4rem;
    }

    .terms-header h1 {
        font-size: 2rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .toc {
        padding: 1.5rem;
    }

    .terms-section h2 {
        font-size: 1.5rem;
    }

    .data-grid,
    .rights-grid {
        grid-template-columns: 1fr;
    }

    .table-container {
        overflow-x: scroll;
    }

    .data-table {
        font-size: 0.875rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem;
    }

    .terms-footer-cta {
        padding: 2rem 1.5rem;
    }

    .terms-footer-cta h3 {
        font-size: 1.5rem;
    }

    .terms-footer-cta p {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .terms-container {
        padding: 1.5rem 1rem 3rem;
    }

    .terms-header {
        padding-bottom: 1.5rem;
    }

    .terms-header h1 {
        font-size: 1.75rem;
    }

    .intro-text {
        font-size: 0.9375rem;
    }

    .terms-section {
        margin-bottom: 3rem;
    }

    .terms-section h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .section-content {
        font-size: 0.9375rem;
    }

    .toc {
        padding: 1.25rem;
    }

    .toc h2 {
        font-size: 1.125rem;
    }

    .toc a {
        font-size: 0.875rem;
    }

    .data-card,
    .rights-card {
        padding: 1.25rem;
    }

    .data-icon,
    .rights-icon {
        width: 40px;
        height: 40px;
    }

    .feature-list li {
        padding: 0.875rem;
    }

    .terms-footer-cta {
        padding: 1.5rem 1rem;
    }

    .terms-footer-cta h3 {
        font-size: 1.25rem;
    }

    .terms-footer-cta p {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }

    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}