:root {
    --primary: #0F172A;
    --primary-light: #1E293B;
    --accent: #10B981;
    --accent-dark: #059669;
    --text: #334155;
    --text-light: #64748B;
    --bg: #FAFAFA;
    --card: #FFFFFF;
    --border: #E2E8F0;
}

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

body {
    font-family: 'Inter Tight', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    color: var(--primary);
    font-weight: 400;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Terms Content */
.terms-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 24px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.back-link:hover {
    transform: translateX(-4px);
}

.back-link::before {
    content: '←';
    margin-right: 8px;
    font-size: 18px;
}

h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 48px;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 400;
    letter-spacing: -1px;
}

.last-updated {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--border);
}

h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 32px;
    color: var(--primary);
    margin-top: 56px;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 20px;
    color: var(--primary);
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 600;
}

p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text);
}

ul, ol {
    margin-bottom: 24px;
    padding-left: 32px;
    line-height: 1.8;
}

li {
    margin-bottom: 12px;
    color: var(--text);
}

strong {
    color: var(--primary);
    font-weight: 600;
}

.contact-box {
    background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 100%);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin: 32px 0;
}

.contact-box h3 {
    margin-top: 0;
    color: var(--primary);
}

.contact-box ul {
    list-style: none;
    padding-left: 0;
}

.contact-box li {
    margin-bottom: 8px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

.warning-box {
    background: #FEF3C7;
    border-left: 4px solid #F59E0B;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 4px;
}

.warning-box p {
    margin-bottom: 0;
    color: #92400E;
}

.info-box {
    background: #EFF6FF;
    border-left: 4px solid #3B82F6;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 4px;
}

.info-box p {
    margin-bottom: 0;
    color: #1E40AF;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    text-align: center;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
    padding: 0;
}

.footer-links a {
    color: white;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    .terms-content {
        padding: 40px 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}
