.dc-terms-field {
    margin: 20px 0;
    padding: 16px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #eaeaea;
}

.dc-terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.6;
    cursor: pointer;
}

.dc-terms-checkbox input {
    margin-top: 3px;
    flex-shrink: 0;
}

.dc-terms-link {
    background: none;
    border: none;
    color: #6366f1;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
}

.dc-terms-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dc-terms-modal[hidden] {
    display: none;
}

.dc-terms-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.dc-terms-modal__content {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    background: #fff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.dc-terms-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #eaeaea;
}

.dc-terms-modal__header h2 {
    margin: 0;
    font-size: 18px;
    color: #222;
}

.dc-terms-modal__close {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    border-radius: 8px;
}

.dc-terms-modal__body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.dc-terms-section {
    margin-bottom: 20px;
}

.dc-terms-section h3 {
    font-size: 15px;
    color: #222;
    margin: 0 0 8px;
    font-weight: 700;
}

.dc-terms-section p {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

.dc-terms-modal__footer {
    padding: 16px 24px;
    border-top: 1px solid #eaeaea;
    text-align: center;
}

/* موبایل */
@media (max-width: 600px) {
    .dc-terms-modal__content {
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .dc-terms-modal__header,
    .dc-terms-modal__body,
    .dc-terms-modal__footer {
        padding: 16px;
    }
}