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

:root {
    --primary-purple: #D946EF;
    --light-purple: #F3E5F5;
    --bg-gradient-top: #FBF7FC;
    --bg-gradient-bottom: #FAF5FB;
    --text-primary: #1C1B1F;
    --text-secondary: #79747E;
    --text-light: #9E9AA3;
    --surface: #FFFFFF;
    --divider: #F0EBF1;
    --accent-blue: #2196F3;
    --warning-red: #F44336;
    --warning-bg: #FFEBEE;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, var(--bg-gradient-top) 0%, var(--bg-gradient-bottom) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid var(--divider);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    display: block;
    align-items: center;
    text-align: center;
}

.header-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-purple);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.3s;
}

.back-link:hover {
    background: var(--light-purple);
}

/* Main Content */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.terms-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.terms-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--light-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terms-icon .material-symbols-outlined {
    font-size: 3rem;
    color: var(--primary-purple);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.effective-date {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Important Notice Box */
.important-notice {
    background: linear-gradient(135deg, var(--warning-bg) 0%, var(--light-purple) 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 2px solid var(--warning-red);
}

.important-notice h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--warning-red);
}

.important-notice p {
    font-weight: 500;
    line-height: 1.8;
}

/* Content Sections */
.content-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

.content-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-section ul,
.content-section ol {
    margin: 1rem 0;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* Special Callouts */
.callout {
    background: var(--bg-gradient-top);
    border-left: 4px solid var(--primary-purple);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.callout-warning {
    border-left-color: var(--warning-red);
    background: var(--warning-bg);
}

.callout-info {
    border-left-color: var(--accent-blue);
    background: #E3F2FD;
}

/* Contact Section */
.contact-section {
    background: var(--light-purple);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.contact-section h2 {
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background: white;
    border-radius: 8px;
    transition: transform 0.3s;
}

.contact-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Table of Contents */
.toc {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toc h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc ol {
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Footer */
footer {
    background: white;
    border-top: 1px solid var(--divider);
    padding: 2rem 1rem;
    margin-top: 3rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

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

.footer-copyright {
    color: var(--text-light);
    font-size: 0.75rem;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .important-notice {
        padding: 1.5rem;
    }
}

@media print {

    .header,
    footer,
    .toc {
        display: none;
    }

    body {
        background: white;
    }

    .content-section {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}