@import './global.css';

.terms-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 1.5rem;
    max-width: 850px;
    margin: 0 auto;
    width: 100%;
}

.terms-box {
    background: var(--bg-surface);
    border-radius: var(--border-radius-lg);
    padding: 3.5rem 3rem;
    box-shadow: var(--shadow-soft);
    border: 4px solid #ffffff;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.terms-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
}

.terms-box h2 {
    font-size: 2.2rem;
    color: var(--accent-primary);
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 800;
}

.terms-box h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 0.85rem;
    font-weight: 800;
    display: inline-block;
    border-left: 5px solid var(--accent-warm);
    padding-left: 12px;
    border-radius: 4px;
}

.terms-box h3:nth-of-type(even) {
    border-left-color: var(--accent-secondary);
}

.terms-box h3:nth-of-type(3n) {
    border-left-color: var(--accent-primary);
}

.terms-box p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.terms-box ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0 1.5rem 0;
    background: var(--bg-surface-elevated);
    border-radius: var(--border-radius-md);
    padding: 1.25rem 1.5rem;
    border: 2px dashed var(--border-color);
}

.terms-box li {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1.75rem;
    position: relative;
    font-weight: 600;
}

.terms-box li:last-child {
    margin-bottom: 0;
}

.terms-box li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: var(--accent-primary);
    font-size: 1.6rem;
    top: -3px;
    line-height: 1;
}

.terms-box ul:nth-of-type(even) li::before {
    color: var(--accent-warm);
}

@media (max-width: 600px) {
    .terms-container {
        padding: 1.5rem 1rem;
    }
    
    .terms-box {
        padding: 2.5rem 1.5rem;
    }

    .terms-box h2 {
        font-size: 1.75rem;
        margin-bottom: 1.75rem;
    }

    .terms-box h3 {
        font-size: 1.15rem;
        margin-top: 2rem;
    }
    
    .terms-box ul {
        padding: 1rem;
    }
}